Your agent remembers the project because everything is written in files
Between sessions an agent remembers only what is in the project. So the rules, the knowledge and the history live in files: the agent reads them at the start of work and updates them after every step.
If there are many documents, an LLM wiki or RAG joins the wiki. That is the “Long-term memory” choice in the setup.
Files and what they do
@AGENTS.md, so Claude Code loads the same rules.The cycle after every step
- 1An entry at the end of LOG.md
- 2A wiki page if there is new stable knowledge
- 3New statuses in tasks.md
- 4HANDOFF.md before a pause
- 5A commit of the working state
The loop comes alive here: the step the agent is doing right now lights up.
An agent can write “done” while nothing works. The protocol asks for one scenario from start to finish and three checks: a normal case, an edge case and a wrong input. The agent says what it ran and what it saw.
First aid: symptom and remedy
LOG.md and HANDOFF.md: decisions are written down and read at the start
A plan before code and clear boundaries in AGENTS.md
One scenario and three checks before “done”
A knowledge map, narrow reading and a fresh session for each task
A skill, at level 2
A read ban for .env and, at level 3, a hook
The reviewer role, and at level 3 a reviewer subagent
A long-task brief with stop conditions, at level 4
Levels: add a layer when it treats a real problem
One agent, rules, wiki and log. Enough for most projects.
Adds an architecture page and turns repeated procedures into skills.
A reviewer subagent and a critics-and-judge pass for important changes.
Long tasks with a brief, stop conditions and reports by checked results.
Levels 3 and 4 open for those who support turboboy. Test mode: open to everyone for now. Support turboboy