Georgia Tech paper finds stale CLAUDE.md files override code
A one-line addition eliminates most failures, meaning agent misbehaviour here is a configuration problem rather than a model limitation. Developers running Claude Code or Codex CLI on long-lived codebases should audit their instruction files today and add the conflict-resolution sentence. The 40-project, 320-run benchmark also gives teams a concrete way to test their own agent configs before trusting them in production.
A paper from Georgia Tech and CU Boulder researchers shows that coding agents systematically obey outdated instruction files such as CLAUDE.md and AGENTS.md instead of the actual code. Because these files are written once and rarely maintained, an agent may read "use print" while every module in the codebase uses logging, then follow the stale instruction anyway.
The researchers built 40 Python projects where the instruction file and the code deliberately disagree, and ran Claude Code and Codex CLI 320 times. In half the runs they added a single sentence to the instruction file: "when docs and code disagree, follow the code." Without it, 90.1% of agent choices followed the stale file, and Codex CLI rewrote working code in 20 of 80 runs. With the sentence, 91.4% of choices followed the code, tests passed in all 160 runs, up from 89.4%.
The practical fix is cheap: add that one sentence to your user-level CLAUDE.md or AGENTS.md, and use the conflicts the agent reports to clean up stale lines. It shows that prompt-level instructions can be a maintenance liability when the underlying code evolves faster than the docs.
New Georgia Tech and CU Boulder paper finds that coding agents obey outdated instruction files over the real code.
And 1 added sentence fixes it (" when docs and code disagree, follow the code.").
Files like CLAUDE.md and AGENTS.md are written once and rarely updated, while the code keeps changing. So an agent may read "use print" in the file while every module uses logging.
They built 40 Python projects where the instruction file and the code disagree, and ran Claude Code and Codex CLI 320 times. Half the runs added 1 sentence to the user's own file: when docs and code disagree, follow the code.
Without the sentence, 90.1% of the agents' choices followed the stale file, and Codex CLI rewrote working code in 20 of 80 runs. With it, 91.4% of choices followed the code, and tests passed in all 160 runs, up from 89.4%.
Add that sentence to your user-level CLAUDE.md or AGENTS.md, and use the conflicts the agent reports to fix the stale lines.
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Claude Code, Codex CLI, CLAUDE.md, AGENTS.md.
Source attribution: curated from rohanpaul_ai (@rohanpaul_ai).