Skip to main content
Greg Bond

Why we killed STATE.md and routed 3 coding agents straight to live native authorities

Claude Code, Codex, and Antigravity used to start every session by reading hand-synced `STATE.md`, `MEMORY.md`, and per-agent summary files that went stale within about 48 hours. Now all three share one 18-line lessons file capped at 30 lines and read current truth from the system that owns each job.

Nov 28, 2026, AI Systems

Memory of judgment is not the same as memory of facts.

Judgment changes slowly. Delete a layer before patching it. Check native tools before writing custom glue. Never put client data in a personal repo. Those hold for months. They belong in a short file every agent reads at the start of every session.

Facts change hourly. Who I last talked to. What a client's weekly numbers did. Which issue is blocked. Those already have an owner, and the owner is always more current than any copy.

So we split them. One lessons file for judgment. Live reads for facts.

5. What it looks like now

All three agents share one lessons file. It is 18 lines today and capped at 30. A new lesson has to replace or tighten an existing line, not append. That cap is the whole mechanism. When the file cannot grow, a passing remark never becomes a permanent rule.

Everything else is read live, per job, from one authority:

  • Recall (meetings, screens, chats across devices): Screenpipe, through its local MCP.
  • Relationships and how each person likes to communicate: Twenty CRM, through its native MCP. Durable preferences live once as linked notes on the person record.
  • Client analytics: BigQuery, read-only, with each client in its own dataset.
  • Code, issues, and living plans: private Git on Forgejo. If an agent wants to know what is blocked, it reads the issue labels.
  • Mail, calendar, and docs: Google Workspace, through the native connectors.

The rule underneath is short. Ephemeral context never gets written into a markdown state file. Durable decisions get recorded once, in the authority that owns them.

What got deleted: the per-agent memory files, the cross-agent sync scripts, the recap regeneration, and the disagreement checker. None of it was replaced. The live reads made it pointless.

6. The real trade-offs

This is not free, and it is not finished.

Auth is now the maintenance. Five live authorities means five connectors that can expire, disconnect, or change scopes. When the Screenpipe MCP is still connecting at session start, the agent has no recall at all, where a stale STATE.md would at least have returned something. I think a visible gap beats a confident wrong answer. That is a judgment call, not a free win.

A missing hit is not a missing fact. An agent that searches Screenpipe and finds nothing will sometimes conclude the thing never happened. Native search is an index. The lessons file now says so, and agents are told to follow the source reference rather than trust an empty result.

Boundaries got stricter, not looser. Work and personal data now sit one MCP call apart. My personal CRM only gets metadata from work mail: who, when, which thread. Never client email bodies, never raw client numbers. That rule lives in the lessons file because the cost of getting it wrong once is permanent.

Reads cost more than file opens. A live query takes seconds and sometimes tokens. Opening a markdown file is instant. For most jobs the trade is fine. For high-frequency loops it is still being tuned.

Honest state: the five authorities are live and all three agents route to them. The Forgejo side is mid-cutover to a new runner box, so issue reads are live while some deployment automation around them is still moving.

7. The harder questions

How many of your agent's context files describe the world as it was two days ago? Which of them hold judgment, and which hold facts that already live somewhere better? If you deleted every agent state file tomorrow, what would your agents lose that they could not read live?

8. Practical next steps if you run more than one agent

  1. Sort every context file into judgment or facts. Judgment stays. Facts get a pointer to their owner.
  2. Pick one authority per job. Two sources for the same fact is how mirrors start again.
  3. Cap the shared lessons file. 30 lines forces replacement over accumulation.
  4. Treat empty search results as unknown, not false. Write that into the lessons file on day one.
  5. Decide your work and personal boundary before you connect the MCPs, not after the first leak.