Project memory
AI coding sessions forget everything when they end. AgentFlow’s answer is a small, explicit project memory that lives inside the repository, so any tool and any session can resume from the same recorded state.
Canonical memory
Canonical Memory is the official project state: .agentflow/state/,
.agentflow/docs/project-plan.md and the runbook/. It has one writer. In
Team Mode that writer is the Orchestrator; workers (developer, tester,
deployer) never update it - they only write their task’s ## Result. In
Single Mode the session maintains memory itself. One writer is what keeps
parallel sessions from overwriting each other’s conclusions.
The state files
handoff.md- a short transfer note for the next session: the goal, verified state with where each fact was checked, files in flight, failed attempts and open problems. Kept to one or two screens.current-step.md- only the next practical action.session-log.md- chronological work history; finished handoff history moves here.known-issues.md- failed attempts, dead ends, false hypotheses and constraints, dated, with when to look again. New sessions are expected not to repeat paths already recorded here.decisions.md- decisions that change future work: why, and what was rejected.tasks.md- the Task Ledger, one row per task, edited only throughpython .agentflow/tools/ledger.pyso status transitions stay valid.
Planning levels
Three levels link to each other without copying each other. The plan
(docs/project-plan.md) holds the roadmap - stages with exit criteria, a
horizon of weeks. The ledger holds tasks - who does which piece, a horizon of
hours. current-step.md holds now - exactly what happens next. The handoff
is a one-session snapshot that links to all three.
The runbook
runbook/ stores verified steps only: exact commands or UI actions, the
expected result of each step, links to screenshots and the final check. No
hypotheses and no secrets - it is the human-facing record of how to repeat
something that is confirmed to work.
Handoffs between sessions and tools
Because memory is plain Markdown inside the repo, a session in one tool can
hand off to a session in another. Entry points (AGENTS.md, CLAUDE.md,
.claude/commands/) are thin pointers into the protocol, so rules that must
survive a tool change live in project memory - never only in one tool’s
private memory. When a session ends, the memory update writes what was done,
what is next and what not to retry; the next session reads the handoff, the
plan, the current step and the ledger, and continues from recorded state
rather than from a chat transcript.