Agents obey stale instruction files over code 90% of the time — one sentence fixes it
rohanpaul_ai · x · 2026-12-07
A Georgia Tech and CU Boulder paper quantifies a subtle failure: coding agents like Claude Code and Codex CLI follow outdated instruction files (CLAUDE.md / AGENTS.md) even when they explicitly notice the conflict with the actual code.
- 40 Python projects were built where the instruction file contradicts the codebase's conventions; 320 runs total.
- Without a fix, 90.1% of agent choices followed the stale file. Claude Code flagged the conflict in 79/80 runs and still obeyed it; Codex CLI rewrote working code in 20/80 runs, breaking tests in 17.
- Adding one line to the user-level instruction file — "when docs and code disagree, follow the code" — raised code-following from 4.2% to 91.4%, eliminated rewrites, and pushed test pass rate from 89.4% to 100%.
The authors attribute the behavior to input framing: instruction files arrive as instructions while code arrives as tool output, which models are trained to rank lower.
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
- Vercel board coordinates agents across local and cloud; real split is on-board vs off-board — cramforce · 2026-12-07
- 100% local AI companion on Jetson Thor: vibe-coded with QwenImage 2.1 and LTX-2.5 — KIKAItachi · 2026-12-07