KnowledgeCoding agent
Project memory (AGENTS.md)
A file in the repo that tells every agent how this project works.
What it is
A markdown file (AGENTS.md, CLAUDE.md) with build and test commands, conventions and no-go areas, loaded at the start of every session.
When to use it
- Any repo agents work in more than once
When to skip it
- Turning it into a 2,000-line manual: it costs context on every turn
Why (the trade-off)
Each session starts with no memory of your conventions. A short file fixes that for free.
Where it sits
Knowledge layer, at the top of the context.
What it needs first
- Agent loopit's loaded into every session
What can be added to it
- builds on itSkills loaded on demandSkills loaded on demand needs it: it extends the project's always-loaded instructions
Effect of adding it
- cost —
- latency —
- reliability ↑
- safety ↑
Risks it handles
- Fixes the wrong thing · partial
- Rewrites far more than asked · partial
Learn first (AI Engineering)
Sources
depth 4+1 production note with numbers.