How to keep CLAUDE.md in sync across a team.

Guide · updated 25 November 2026

Contents

A CLAUDE.md goes stale because it only changes when someone edits it and the change is merged, so a decision made in a session doesn’t reach it until someone writes it down. To keep a team in sync, keep the file short and reviewed for the rules that rarely change, and put what changes from week to week in a memory every agent reads.

Say Harry agrees with his Claude Code agent on Monday that the team deploys on Fridays, not Thursdays. The CLAUDE.md still says Thursdays until someone opens a pull request. On Tuesday, Oliver’s agent reads the old line and plans a Thursday deploy.

Why does a CLAUDE.md go stale?

CLAUDE.md is a file your team writes by hand. Claude Code reads it at the start of every session, and a project’s file is shared through version control. That makes it dependable for rules and slow for anything that moves. Every change needs someone to notice, edit the file and get the edit merged.

Auto memory doesn’t close the gap. It holds notes Claude writes for itself, and Claude Code keeps them in a folder on your own machine, one per repository. What Harry’s Claude learned on Monday isn’t in Oliver’s.

How CLAUDE.md and auto memory work is from Anthropic’s Claude Code documentation, read on 25 November 2026.

What belongs in CLAUDE.md or AGENTS.md?

Facts an agent should hold in every session, which change rarely enough to be reviewed like code:

  • Build, test and lint commands.
  • Coding standards and naming conventions.
  • Where things live in the project.
  • Rules that always apply, such as “run the tests before you commit”.

Anthropic’s advice is to add a line when Claude makes the same mistake a second time, or when a new teammate would need the same context. Write each line so it can be checked. “Deploy with make release” is a rule an agent can follow. “Deploy carefully” is not.

What doesn’t belong there?

  • What changes from week to week. This week’s decisions, who’s working on what, and facts that keep moving, such as the deploy day or the staging address. By the time the edit is merged, the next change is due.
  • Personal preferences. Claude Code reads a CLAUDE.local.md that you keep out of git, and a file in your home folder that applies to every project.
  • Long procedures, and rules for one corner of the codebase. Anthropic’s docs set a target of under 200 lines per file, because longer files are followed less reliably. Move the rest into rules scoped to a path, or into skills.
  • Secrets. The file sits in your repository, so treat it like code.

What are the free fixes?

Three habits cost nothing and fix most of the drift in the file itself.

How do you share one rules file between Claude Code, Cursor and Codex?

Keep the shared rules in AGENTS.md, an open format that Codex and Cursor both read. Recent versions of Claude Code read it too when the repository has no CLAUDE.md. If you need lines only for Claude, import the shared file from a CLAUDE.md and add them underneath:

@AGENTS.md

## Claude Code
Ask before changing anything under infra/.

Then there is one place to edit, and no second copy to forget.

How do you keep CLAUDE.md short?

Writing @ and a path, such as @docs/deploy.md, pulls that file into CLAUDE.md, so the deploy steps can live beside the deploy scripts. Imports tidy a long file, but Anthropic’s docs note that they don’t make it any cheaper to load. For rules that matter in one part of the codebase, use rules scoped to a path, which load only when Claude works on matching files.

How often should a team review it?

Every time the thing it describes changes: edit the file in the same pull request. When a code review catches something an agent should have known, add the line then. And read the whole file on a schedule. In recent versions of Claude Code, /doctor prompt-audit asks Claude to look for outdated or conflicting instructions and propose edits.

Where do the free fixes stop?

They keep the file tidy. They don’t make it current. A decision still has to be noticed, written down and merged before the next agent reads it, and few people stop mid-task to open a pull request for “we deploy on Fridays now”.

A rules file is also a request, not a guarantee. Anthropic’s docs describe CLAUDE.md as context that Claude tries to follow, not configuration that is enforced.

What keeps week-to-week decisions in sync?

A memory that agents write to as they work, and that every agent on the team reads. Here are the three side by side.

CLAUDE.mdAuto memoryKoalaFix
Written byYou and your team, by handClaude, as you workEvery teammate’s agents, as they work
Seen byAnyone with the repositoryOnly Claude Code on your machineYour whole team, in Claude Code, Codex, Cursor or any MCP client
ChangesWhen someone edits it and the change is mergedWhenever Claude saves a noteAs soon as a decision is saved. The newest replaces the old
Best forBuild commands, standards and rulesWhat Claude learns about how you workDecisions, who’s working on what, and the facts your team checks

KoalaFix is the third column: a hosted MCP server that gives every agent on your team one shared memory. Agents save team decisions as they’re made, without being told to, and the newest decision replaces the old one.

When Harry’s agent saves “deploy on Fridays, not Thursdays”, Oliver’s agent finds it the next time it searches team memory, whether he works in Claude Code, Cursor or Codex. Nobody edits a file.

Keep both. CLAUDE.md or AGENTS.md holds the rules, reviewed like code. Team memory holds what changes from week to week: decisions, who’s working on what, and the facts your team checks. You can also export team memory as an AGENTS.md block when you want a snapshot in the repository.

Related pages:

KoalaFix is invite-only for now. Join the waitlist to get in on launch day.