Skip to content

Commit aad3e16

Browse files
committed
#7220 session maintenance
1 parent 76fa445 commit aad3e16

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ Your primary directive is to rely on the project's internal knowledge base, not
2525
### The Anti-Hallucination Policy
2626
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.
2727

28+
- **BAD Example:***"Based on typical React patterns, you should use `useState` here..."*
29+
- **GOOD Example:***"Let me query the knowledge base to understand Neo.mjs state management patterns..."*
30+
2831
### The Query Command
2932
Your most important tool is the local AI knowledge base. To use it, execute the following shell command:
3033
```bash
@@ -71,6 +74,11 @@ If a query fails or returns no results, do not guess. Rephrase your query. Try t
7174
Integrate the query tool into your development process.
7275

7376
1. **Understand the Task & Query:** For any new task (e.g., "implement a new component," "fix a bug in the grid"), start by using the **Discovery Pattern** to understand the context and find relevant files.
74-
2. **Analyze Existing Code:** Read the top 1-3 files returned by your queries. Pay close attention to the code style, architecture, and existing patterns. Your goal is to make your changes fit in seamlessly.
77+
2. **Analyze Existing Code:** Read the top 1-3 files returned by your queries. When reading, focus on understanding the existing class structure, method signatures, configuration patterns, and overall architecture. Your goal is to make your changes fit in seamlessly.
7578
3. **Implement Changes:** Write or modify the code, strictly adhering to the conventions you observed.
7679
4. **Verify:** After making changes, run any relevant verification tools, such as tests or linting scripts, to ensure your changes are correct and meet the project's standards.
80+
81+
## 5. Session Maintenance
82+
Your initialization is a snapshot in time. The codebase can change. If you pull new changes from the repository, you should consider re-running your initialization steps (reading `structure.json`, `Neo.mjs`, and `core/Base.mjs`) to ensure your understanding is up-to-date.
83+
84+
Furthermore, after pulling changes, the local knowledge base may be out of sync. You should run `npm run ai:build-kb` to re-embed the latest changes into the database.

0 commit comments

Comments
 (0)