Governance
An agent context file is not documentation, it is a decision
An ETH Zurich study measures what AGENTS.md files actually do: no gain in task success, over 20% more cost. What the Knowledge Backbone and the Living ADR answer to that result.
The practice settled in within a year: a context file goes at the root of the repository, AGENTS.md or a vendor equivalent, meant to explain the project to the agent. The files grow, absorbing conventions, history and advice, and nobody measures what they produce.
A study from the SRI lab at ETH Zurich, Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?, presented at the ICLR 2026 workshop on memory for agentic systems, measured it: no gain in task success rates, and over 20% more inference cost. The agents read the file, follow it, explore more, and end up in the same place, more expensively. This is workshop work, on a limited set of agents and repositories: the result does not close the question, it forbids presenting the context file as a self-evident good practice.
Why the result is no architectural surprise
A context file accumulated over ten months shows the three defects the framework attributes to any ungoverned source of truth:
- Duplication. It repeats what the code, the tests and the tooling already express, and the two versions diverge at the first change.
- Contradiction. It holds rules written in different contexts, which the agent applies all at once, with no hierarchy and no dates.
- Silent expiry. A convention that was dropped but stayed written is worse than none: it points the agent at a state of the system that no longer exists. That is exactly the defect the Living ADR was designed to make visible.
The TEAF reading: a projection, not a source
A context file is not documentation. It carries invariants, prohibitions and boundaries, which is the material of architecture decisions. In the framework that material has a single home, the Knowledge Backbone, and everything an agent reads is only a generated projection of it.
The resulting rule is operational and can be checked in one review pass: an invariant that exists only in an AGENTS.md does not exist. It will vanish at the next rewrite of the file, and nobody will know it has gone. Recorded as a decision, with its status and its review triggers, it outlives the file, and the file can simply point to it. This follows directly from what we wrote on decision memory for agents.
What stays in the file, and what leaves
The sorting test is the same as for a person joining the team: whatever they could not infer from an hour of reading the code, and whose absence is expensive.
- Stays: the exact build, test and verification commands, including those that must not be run; non-negotiable invariants; prohibitions with their reason, since a prohibition without a motive gets worked around; module boundaries; and pointers to the rest.
- Leaves: project history, tutorials, full architecture descriptions and anything the tooling already enforces. That material does not disappear, it moves behind a search or a tool and the agent fetches it when it serves. This is the access model described in the Knowledge Backbone exposed through MCP.
Measurements published by agentic tool vendors point the same way: Cursor reports a 46.9% drop in total agent tokens by loading only tool names first and their descriptions on demand. That figure comes from the vendor and has not been independently reproduced; its direction is consistent with the ETH study, and that is all we take from it.
How to settle it in your own context
Published results depend on repositories, agents and models, so the useful question is not "should we have a context file" but "what does mine change". The protocol takes half a day: twenty tasks representative of your repository, run with and without the file, two columns recorded, success rate and cost. That eval set is the minimal form of Observation over an agentic arrangement: without it the team decides on impressions, and the decision is neither traceable nor reviewable.
Once that set exists, the context file stops being a matter of opinion. It becomes what it should always have been: a measured projection of a set of decisions, revised when the measurement degrades.
Sources
Related reading
Does this challenge sound familiar?
A first conversation to assess it together, at no cost.