R489 · Knowledge for agents › Docs-as-code and project memory

Instruction files cost more and fix little: the ETH AGENTS.md study behind a decision-map pitch

Read the original

instruction-files, context-engineering, harness-config, benchmarks, agent-behaviour, claim-checking, inference-cost

Barrie Hadfield (Mindset AI) argues on LinkedIn that markdown instruction files are requests, not rules, and that teams need a queried map of decisions instead. His evidence is an ETH Zurich study. That study is real and current (arXiv 2602.11988v3), but it found the 20%+ cost penalty for LLM-generated files. Developer-written files raised success slightly and cost up to 19%.

What the study measured

Context files do not reliably raise task success, and every kind tested makes the agent take more steps. Gloaguen, Mündler-Sasahara, Müller, Raychev and Vechev (ETH Zurich and LogicStar.ai), arXiv 2602.11988v3, 29 Sep 2026.

ConditionSuccess vs noneSteps vs noneCost vs none
LLM-generated-0.5 pts (SWE-bench, p=0.87), -2 pts (CTXbench, p=0.37); worse in 5 of 8 settings+2.45 / +3.92+20% / +23% (p<0.001%)
Developer-written+2.4 pts on average (p=0.21); better for every agent except Claude Code+3.34up to +19%

Developer files beat LLM-generated ones (p=0.038). The behavioural finding is the one the post repeats correctly: agents do follow the files. They run more tests, use the tools a file names (uv about 1.6 times per task when mentioned), and explore more. The repository overview, which 95-100% of generated files contain, did not shorten the path to the files that needed changing; GPT-5.1 mini took longer.

The authors' own advice is narrower than the post's: omit LLM-generated files for now, and keep human-written files to what the README does not already say, such as non-standard conventions and non-functional requirements. Limits: Python only, success rate is the only quality measure, and sections after 4.2 are not covered here in detail.

Where the post overstates

The post says that with the files "success didn't improve and costs rose more than 20%". That is the LLM-generated result. For the hand-written files most teams mean when they say CLAUDE.md, the study found a small, non-significant gain and a cost rise of up to 19%. "Mostly, they don't" help is fair; "they don't help and cost 20%" applies only to generated files.

The four failure reasons check out against Anthropic's memory docs, with one exception:

The post's line that agents follow instructions and "just made them work harder" matches the paper's behavioural section.

The prescription: a map of decisions

The proposal is a retrieval-and-drift design, offered with no measurement. The agent asks for the decisions that govern the change it is making, receives only those, and when code and a decision disagree it flags the conflict for the decision's owner to resolve.

The ETH study supports the premise only indirectly. It shows that always-loaded, undifferentiated context costs steps without improving success. It does not test scoped retrieval of decisions, and the authors' recommendation (keep files minimal, evaluate before adopting) is compatible with the post's design but does not establish it.

The post's critique of hooks is the sharper idea: a hook can enforce "don't touch this file" but cannot carry "we moved to Okta, and here's why", and it fires only after the agent has gone the wrong way. That splits the problem in two. Enforceable rules belong in gates; rationale needs retrieval at the moment of the change. R424 builds the first half; R199 is a close relative of the second.

The author's page lists Mindset AI and the post names no product, so read the prescription as a position, not a result. A commenter linked MotleyAI/living-architecture (OpenSpec docs from PRs, TDD against them, a LikeC4 code model); it is not covered here.

Failure modes and review checklist

Failure modes this entry and the study point to:

Review checklist:

  1. Does every line say something the README and the code do not? Delete overviews.

  2. Is each must-hold rule enforced by a hook, permission rule or CI gate, with the prose kept only for the why?

  3. Has anyone measured the file: same tasks, with and without, success and cost?

  4. Is each decision tied to the code it governs, so a change to one flags the other?

  5. Is there a periodic audit (for Claude Code, /doctor prompt-audit) for dead references and contradictions?

Sources

Connections

See R489 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.