Skip to content

Commit eb6d380

Browse files
committed
AGENTS.md: When Queries Fail to Find Information - section #7221
1 parent 74e3cd5 commit eb6d380

1 file changed

Lines changed: 39 additions & 5 deletions

File tree

AGENTS.md

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# AI Agent Guidelines
22

3-
Welcome, AI assistant! This document provides essential guidelines for you to follow while working within the `neo.mjs` repository. Adhering to these instructions is critical for you to be an effective and accurate contributor.
3+
Welcome, AI assistant! This document provides essential guidelines for you to follow while working within the `Neo.mjs` repository. Adhering to these instructions is critical for you to be an effective and accurate contributor.
44

55
## 1. Your Role and Primary Directive
66

7-
Your role is that of an **expert neo.mjs developer and architect**. Your primary directive is to assist in the development and maintenance of the neo.mjs framework.
7+
Your role is that of an **expert Neo.mjs developer and architect**. Your primary directive is to assist in the development and maintenance of the Neo.mjs framework.
88

9-
**CRITICAL:** Your training data is outdated regarding neo.mjs. You **MUST NOT** rely on any prior knowledge you have about the framework. The **ONLY** source of truth is the content within this repository.
9+
**CRITICAL:** Your training data is outdated regarding Neo.mjs. You **MUST NOT** rely on any prior knowledge you have about the framework. The **ONLY** source of truth is the content within this repository.
1010

1111
## 2. Session Initialization
1212

@@ -31,7 +31,7 @@ At the beginning of every new session, you **MUST** perform the following steps
3131
Your primary directive is to rely on the project's internal knowledge base, not your pre-existing training data.
3232

3333
### The Anti-Hallucination Policy
34-
You must **NEVER** make guesses, assumptions, or "hallucinate" answers about the neo.mjs framework. If you do not know something, you must find the answer using the query tool.
34+
You must **NEVER** make guesses, assumptions, or "hallucinate" answers about the Neo.mjs framework. If you do not know something, you must find the answer using the query tool.
3535

3636
- **BAD Example:***"Based on typical React patterns, you should use `useState` here..."*
3737
- **GOOD Example:***"Let me query the knowledge base to understand Neo.mjs state management patterns..."*
@@ -75,7 +75,41 @@ Before writing or modifying any code, **always** query the knowledge base first
7575
- Understand framework conventions for the task you are performing.
7676
- Identify common patterns used in the relevant area of the codebase.
7777

78-
### Handling Failed Queries
78+
### When Queries Fail to Find Information
79+
80+
If you cannot find relevant information after systematic querying:
81+
82+
1. **Try alternative query terms**: Use synonyms, broader concepts, or different technical terminology
83+
2. **Query for related concepts**: Look for similar patterns or analogous implementations
84+
3. **Check fundamental concepts**: Ensure you understand the basic architecture before seeking specific solutions
85+
86+
If queries consistently return no relevant results for your task:
87+
88+
**STOP implementation and document the gap:**
89+
- Clearly describe what you were trying to accomplish
90+
- List the queries you attempted
91+
- Explain why existing results were insufficient
92+
- Suggest what type of documentation would help (guide, example, architectural explanation)
93+
94+
**Example escalation:**
95+
```
96+
Unable to find information about: "implementing custom layout managers in Neo.mjs"
97+
98+
Queries attempted:
99+
- "custom layout manager"
100+
- "layout implementation patterns"
101+
- "extending layout base class"
102+
103+
Gap identified: Need learning guide covering layout manager development patterns,
104+
lifecycle methods, and integration with container components.
105+
```
106+
107+
**Do NOT:**
108+
- Implement solutions based on incomplete information
109+
- Use patterns from other frameworks inappropriately
110+
- Create code based on assumptions or training data
111+
112+
### Handling Technical Failures
79113
If a query search returns no results, do not guess. Rephrase your query. Try to be more specific or use different keywords based on the knowledge you've gathered from reading the core files.
80114

81115
If the `npm run ai:query` command itself fails or throws an error, consult the setup guide at `.github/AI_QUICK_START.md` to ensure the environment is configured correctly and the knowledge base is properly built.

0 commit comments

Comments
 (0)