arXiv: coding agents follow stale instruction files 90% of the time; one sentence fixes it
rohanpaul_ai · x · 2026-12-07
arXiv paper "Stale Instruction Files Override the Code in Coding Agents: A One-Sentence Fix" (Xiaonan Xu, Wenjing Wu) measures how coding agents obey outdated CLAUDE.md/AGENTS.md files over real code.
- Method: 40 Python projects where the instruction file contradicts the codebase's conventions; Claude Code and Codex CLI completed tasks with and without a fix sentence across 320 runs.
- Results: Without the fix, 90.1% of choices followed the stale file. Claude Code flagged the conflict in 79/80 runs yet still obeyed it; Codex CLI rewrote working code in 20/80 runs, failing tests in 17. With "when docs and code disagree, follow the code," code-following jumped from 4.2% to 91.4%, rewrites stopped, and test pass rate rose from 89.4% to 100%.
- Attribution: instruction files enter the model as instructions; code enters as tool output, which models are trained to rank lower.
Practical takeaway: add the sentence to your user-level CLAUDE.md or AGENTS.md and clean up stale lines from the conflicts agents report.
More from coding & agent
- 18 papers on organizing AI agent teams: structure, delegation, coordination, oversight — TheTuringPost · 2026-12-07
- Snorkel AI brings five agent papers to NeurIPS, from long-horizon work to code degradation — ajratner · 2026-12-07
- Hamel Husain amplifies 'learn to eval' alongside Nadella's Two Frontiers of Intelligence — HamelHusain · 2026-12-07
- Factory for chores, workshop for craft: the right mental model for AI coding agents — brandongalang · 2026-12-07
- Agents obey stale instruction files over code 90% of the time — one sentence fixes it — rohanpaul_ai · 2026-12-07
- Vercel board coordinates agents across local and cloud; real split is on-board vs off-board — cramforce · 2026-12-07