← all articles

How to update CLAUDE.md when it's out of date and Claude keeps following old rules

Your CLAUDE.md still describes last month's project, and Claude Code keeps working from it.

Get back to where you were after a crash · silent preview · watch with transcript →

To update CLAUDE.md, run /doctor prompt-audit to find outdated or conflicting lines, then open the file with /memory and fix them. For the decisions that changed outside the repo, ReMynd's Claude switch lets Claude Code search your screen history, so it can look up what you read in a Slack thread or a shared doc after you installed ReMynd.

Anthropic's docs say the audit requires Claude Code v2.1.283 or later, and that nothing in your files changes until you ask Claude to apply its proposed edits.

CLAUDE.md out of date because the real decisions happened in Slack threads and docs? Let Claude Code search what you saw. Download the ReMynd desktop app

Why does CLAUDE.md go stale in the first place?

In our view, CLAUDE.md goes stale because the things that changed are often things Claude can't see. Anthropic's best practices say Claude starts every task by reading your code and finds your file layout and conventions there. What it can't find is the information that was never in the repo, like a decision your team made in a meeting. We think that's the part of CLAUDE.md that goes stale fastest, because nobody writes it down when it changes.

Diagram: four steps to fix a stale CLAUDE.md, audit with /doctor prompt-audit, edit with /memory, keep it short, and add decisions that were never in the repo using what you saw on screen

Illustration made for this post: audit, edit, trim, then add what changed outside the repo.

The 4 pillars of a CLAUDE.md that stays current

A CLAUDE.md stays current when you audit it, edit it, keep it short and add what the repo can't show.

  • Audit it. Anthropic's memory docs say /doctor prompt-audit looks for problems such as instructions written for older models, references to files or commands that don't exist, and files that contradict each other.
  • Edit it where it lives. /memory lists your CLAUDE.md, CLAUDE.local.md and other memory file locations, and selecting a file opens it in your editor. You can also ask Claude directly, like "add this to CLAUDE.md".
  • Keep it short. The docs say to target under 200 lines per CLAUDE.md file, because longer files consume more context and reduce adherence. Instructions that matter for only part of the codebase belong in path-scoped rules.
  • Add what the repo can't show. The best practices list decisions that aren't in the repo and anything you've had to correct twice already as things the file should hold.

Which tool fixes which kind of stale?

Each kind of stale CLAUDE.md has its own fix in Claude Code. Each row comes from Anthropic's docs as of December 2026, except the ReMynd row.

SymptomWhat to run or doSource
Old commands, missing files, contradictions/doctor prompt-audit, then ask Claude to apply the edits you agree withAnthropic memory docs
You don't know which files loaded/context all, then check the list under Memory filesAnthropic memory docs
You want a fresh pass on an existing file/init, which suggests improvements rather than overwriting itAnthropic memory docs
The file is too longTrim it, or move part-only instructions into path-scoped rulesAnthropic memory docs
Claude makes the same mistake a second timeAdd the correction to CLAUDE.mdAnthropic memory docs
A decision changed in Slack, a call or a docAsk Claude Code to search your screen history, then write the line yourselfReMynd's Claude Code page

How do I update an out of date CLAUDE.md?

Use this simple decision path, in order:

  1. Check what loaded. Run /context all and look under Memory files. If a file is missing there, Claude can't see it.
  2. Run the audit. Run /doctor prompt-audit. You get a report of findings with proposed edits.
  3. Apply what you agree with. Ask Claude to apply those edits. Nothing changes until you do.
  4. Edit by hand. Run /memory, open the file, and delete lines that no longer match how the project works.
  5. Trim. Get under the line target above. Move rules for one part of the codebase into path-scoped rules.
  6. Add this week's decisions. If ReMynd was running, ask Claude Code something like "search ReMynd for what we decided about deploys in Slack this week", then write that decision into CLAUDE.md yourself.
  7. Re-check. Start a new session and run /context all again.

How does ReMynd help with CLAUDE.md?

ReMynd records your computer screen, makes it searchable, and keeps the searchable index on your computer. Its Claude Code page has the setup on a Mac:

  1. Download ReMynd for Mac, grant screen-recording permission, and let it run. There is nothing to search until it has been recording. Apple's guide says that permission lives in System Settings under Privacy & Security, Screen & System Audio Recording.
  2. In ReMynd, open Settings → Integrations and turn on Claude Code.
  3. In a terminal, run ~/.local/bin/remynd help.
  4. Ask Claude Code about something you saw, like a stack trace, a config value, or a page you had open.

That page calls it context at the moment you ask, not a copy of your screen that Claude keeps. CLAUDE.md is still the file you own.

What are the limits?

  • ReMynd's Claude Code page describes searching and reading your history, not writing CLAUDE.md. You write the lines.
  • ReMynd captures only what is on your screen, starting from install. It cannot recover past work, and it cannot see background or cloud agents. Text recognition reads the window you're working in, not the ones behind it.
  • Claude Code does not get ReMynd's MCP server automatically. It gets the ReMynd command and a skill, and the CLI page has the steps to add the helper yourself.
  • Claude Code uses Anthropic's model under your account, so what it retrieves may be sent to that model, the same way anything you paste into it would be.
  • Anthropic's docs say CLAUDE.md is context, not enforced configuration. To block an action regardless of what Claude decides, they point to a PreToolUse hook instead.
  • These steps match Anthropic's docs on the date above. The audit needs the version above, and it's unavailable while the bundled /claude-api skill is turned off.
  • On a Mac, ReMynd needs Apple silicon and macOS 15 or later. ReMynd also runs on Windows 11 (x64 or arm64).

The short version

Audit, edit, trim, then add the decisions that never made it into the repo. If the same repo also has an AGENTS.md for Codex, AGENTS.md vs CLAUDE.md covers which file each agent reads by default. If Claude keeps proposing a fix you already ruled out, read Claude Code keeps suggesting the fix I already tried.

Tired of CLAUDE.md lagging behind decisions made in Slack threads and docs? Let Claude Code search what you saw. Download the ReMynd desktop app

Get back to where you were after a crash · 0:38 · watch with transcript →

common questions

How do I update CLAUDE.md in Claude Code? +
Run /memory in a session and select the file to open it in your editor, or ask Claude directly, like "add this to CLAUDE.md". Anthropic's docs say that if a CLAUDE.md already exists, /init suggests improvements rather than overwriting it.
How do I find outdated instructions in CLAUDE.md? +
Run /doctor prompt-audit. Anthropic's docs say Claude looks for problems such as instructions written for older models, references to files or commands that don't exist, and files that contradict each other, and nothing in your files changes until you ask Claude to apply the proposed edits. It requires Claude Code v2.1.283 or later.
Why does Claude ignore part of my CLAUDE.md? +
Anthropic's docs say CLAUDE.md is context, not enforced configuration, and that if two instructions contradict each other, Claude may pick one arbitrarily. Run /context all to check the file loaded, then remove outdated or conflicting lines.
How long should CLAUDE.md be? +
Anthropic's docs say to target under 200 lines per CLAUDE.md file, because longer files consume more context and reduce adherence. Move instructions that matter for only part of the codebase into path-scoped rules.
Can ReMynd help keep CLAUDE.md current? +
ReMynd's Claude Code page says the ReMynd command searches and reads your history, and calls that context at the moment you ask, not a copy of your screen that Claude keeps. So if a decision was in the window you were working in after you installed ReMynd, Claude Code can search for it, and you decide what goes into CLAUDE.md.