A context file (AGENTS.md, CLAUDE.md, or a CONTEXT.md you maintain yourself) is read at the start of every agent session, so it behaves like code that runs before anything else. The open AGENTS.md format exists precisely to hold "the extra, sometimes detailed context coding agents need: build steps, tests, and conventions" separately from the human-facing README the AGENTS.md project. Claude Code loads its memory files at the start of every conversation and treats them "as context, not enforced configuration" the Claude Code memory docs. That combination is the whole problem: the file is authoritative by convention, unenforced by machinery, and read every single time.
That last property is what makes staleness expensive. Matt Pocock's guide points out that every token in an AGENTS.md file is loaded on every request regardless of relevance, and quotes the "instruction budget" idea that frontier reasoning models follow roughly 150 to 200 instructions with reasonable consistency the AGENTS.md guide on aihero.dev. An obsolete line does not sit idle. It competes for attention with the lines that still matter. Pocock also describes staleness as poisoning context, with documented file paths as the worst offender because paths change constantly the same guide.
There is a second cost that is easy to miss. Addy Osmani summarizes two 2026 studies on generated versus hand-written context files and concludes that a good mental model is to treat AGENTS.md as "a living list of codebase smells you haven't fixed yet, not a permanent configuration," adding that auto-generated files hurt performance and inflate cost by duplicating what agents can already discover Osmani's write-up. Both papers point the same way: content the agent can rediscover by reading the repository is pure overhead, and only non-discoverable content earns its place.
So the maintenance question is not "how do we keep everything in the file up to date." It is "how do we keep the small set of non-discoverable facts correct, and delete the rest." The rest of this article is a system for doing that.



