CopybookSearch

Rules

Outdated CLAUDE.md and AGENTS.md review

Agents follow an outdated CLAUDE.md over your code: its old instructions identified, and a rule that puts code first.

216 saves on X, as of

Free

Copybook Pro No daily limit on your agent’s lookups, and a line-by-line review of your rules file.
Add to your agent
Posted
Views on X
11K
Star on GitHub
Prompt
Read this paper and review my project's CLAUDE.md and AGENTS.md against the existing code. Identify instructions the code no longer follows.

For each issue, quote the original instruction, explain its potential impact, and suggest the smallest change needed. List any proposals involving safety, permission boundaries, or reduced verification separately for me to decide. Show me the recommendations first. Don't modify anything yet.

Use it

Send the prompt and the paper’s link to Claude Code, and add the rule to ~/.claude/CLAUDE.md.

In your agent

Add to your agent
Claude CodeClaude app
How to add Copybook

Vox on X

Researchers published a paper on why Claude Code and Codex keep getting misled by outdated CLAUDE.md and AGENTS.md files. You can ask Claude Code to use it to review the old rules in your project.

Your code moved from print to logging long ago, but CLAUDE.md still says “Use print() for progress messages”. You ask Claude Code to add a feature, and it writes in its reply that the two don’t match, then uses print anyway. That’s an example from the paper: across 40 projects like this, it happened in 79 of 80 runs.

In 441 company repos, 73.8% of AI config files like CLAUDE.md were committed once and never touched again. Yours is probably one of them.

Send this prompt and the paper’s link to Claude Code: https://arxiv.org/abs/2610.30571

Then add the paper’s one sentence to your global ~/.claude/CLAUDE.md (for Codex, ~/.codex/AGENTS.md). In the paper, it moved the agents from following the existing code 4.2% of the time to 91.4%, and every test passed.

Global CLAUDE.md rule
When a repository's documentation and its existing code disagree, follow the conventions used in the existing code, and in your final reply point out each inconsistency you found between the documentation and the code.

Part of the guide CLAUDE.md examples to paste into Claude Code

What you get

  • Each outdated instruction quoted with its potential impact and the smallest change, before edits.

Doesn't fit with

  • DESIGN.md from sites you like: This tip has agents follow existing code over docs; that one has every page follow a new DESIGN.md.
  • 5 design prompts: This tip has agents follow existing code over docs; that one saves a DESIGN.md every page follows.

Add Copybook to your agent, then ask it next time. Set it up