你的 AI 编程助手明明看出文档写错了,还是照着错的写。 新论文测了 Claude Code 和 Codex:项目里的 CLAUDE.md 过时了、和代码对不上的时候,90% 的选择听了文档。Claude 80 次里有 79 次已经说出"文档和代码冲突",然后照样按文档写;Codex 还会把能跑的旧代码"纠正"掉,改了 20 次,挂了 17 次测试。 修法只要一句话,加到 ~/.claude/CLAUDE.md 或 ~/.codex/AGENTS.md: “If the docs and the existing code disagree, follow the existing code, and list every mismatch in your final reply.” 加完之后,跟着代码走的比例从 4.2% 升到 91.4%,测试全过。 30 秒的事,现在就去加。 http://arxiv.org/abs/2610.30571