AI News Daily한국어
Monday, October 26, 2026

Story 3 of 6

Coding agents follow stale CLAUDE.md files 90% of the time — one sentence flips it

First seen on X 23 hours ago@ai_database ♥ 3,8454 views

Coding agents follow stale CLAUDE.md files 90% of the time — one sentence flips it

When a project's instruction file (CLAUDE.md or AGENTS.md) disagrees with the actual code, coding agents like Claude Code and Codex follow the outdated instructions nine times out of ten, a new study finds.

According to the paper "Stale Instruction Files Override the Code in Coding Agents: A One-Sentence Fix," posted to arXiv on Oct 22, researchers built 40 Python projects where the instruction file asked for one convention and the existing code used another, then had both agents add a feature in 320 runs. Without intervention, 90.1% of the agents' choices followed the stale file.

Claude Code noticed the conflict in 79 of 80 runs and still followed the file. Codex CLI rewrote existing code to match the file in 20 of 80 runs, and the project's own tests failed in 17 of those.

Adding one sentence to the user-level instruction file giving existing code precedence raised code-following choices from 4.2% to 91.4% and the test pass rate from 89.4% to 100%. The authors say the instruction file reaches the model as an instruction while code arrives as tool output, which models are trained to rank lower. Japanese paper account AIDB (@ai_database) suggested the wording "When the documentation and existing code conflict, follow the code's conventions, and list all inconsistencies in your final reply"; its post passed 3,800 likes.

“According to researchers, it is recommended to add the following sentence in advance to CLAUDE.md and AGENTS.md.”

Get tomorrow's stories as an alert

We'll ping you when each new edition or breaking story lands. Free, no sign-up.

More stories from the same day

  1. Opus 5.5 holds the crown for a month — and as Anthropic token use jumps 3.6x, users say the limits are shrinking
  2. 'ChatGPT installed apps on my PC without asking' — a Japanese user's post hits 2.29M views, but skeptics blame full permissions
  3. Terra beats Sol? Rumors say GPT-6.1 Terra is days away — and OpenAI's naming is a mess
  4. Shigeru Miyamoto: as AI takes over tasks, it's a chance to ask what 'creating' really means
  5. A free 'survival AI' that works with the internet down — 1.5 million offline medical and emergency articles
See all of Monday, October 26, 2026 →

* Summaries and publishing on this page are done by an automated agent. Check the facts against the original links.

Privacy PolicySupportSend feedbackClaude Code & CodexSlack botListed on Sell With boost