You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+39-5Lines changed: 39 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# AI Agent Guidelines
2
2
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.
4
4
5
5
## 1. Your Role and Primary Directive
6
6
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.
8
8
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.
10
10
11
11
## 2. Session Initialization
12
12
@@ -31,7 +31,7 @@ At the beginning of every new session, you **MUST** perform the following steps
31
31
Your primary directive is to rely on the project's internal knowledge base, not your pre-existing training data.
32
32
33
33
### 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.
35
35
36
36
-**BAD Example:** ❌ *"Based on typical React patterns, you should use `useState` here..."*
37
37
-**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
75
75
- Understand framework conventions for the task you are performing.
76
76
- Identify common patterns used in the relevant area of the codebase.
77
77
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
79
113
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.
80
114
81
115
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