24 lines
1.1 KiB
Markdown
24 lines
1.1 KiB
Markdown
# AGENTS.md
|
|
|
|
- Project/folder name: `pos`
|
|
|
|
MEMORY.md, and every other file you can create under `.agent` folder in this project are yours to manage. Use them to capture and store current state, what's been built, etc.
|
|
|
|
## 1. Required sequence before any real work
|
|
|
|
Before writing code, writing documentation, or answering a question about the codebase, always do this in order:
|
|
|
|
1. **Read memories** — check `.agent/memories/` and any relevant memory files it points to.
|
|
2. **Understand the codebase** — use tools to gather whatever context the task needs.
|
|
3. **Then act** — write code, write docs, or form your answer.
|
|
|
|
Never skip step 1 or go straight to editing files. The memories capture decisions, constraints, and context that are not visible in the code.
|
|
|
|
## 2. Memory management
|
|
|
|
You SHALL manage your own memories, other than using relevant code exploration tools. For this, create your memories under `.agent/memories/` folder, and use MEMORY.md as an entrypoint. Structure:
|
|
|
|
* `.agent/MEMORY.md` - entrypoint
|
|
* `.agent/memories/` - folder
|
|
* `.agent/memories/foo.md` - create as much as you need, index back at `MEMORY.md`
|