Partly. The CLAUDE.md you commit is shared with everyone who clones the repository, but auto memory, the notes Claude writes for itself as it works, stays on the machine where it was written and no teammate sees it.
We checked this in Claude Code 2.1.331 on 25 November 2026. A fact Claude saved in one clone of a repository was unknown to a session in a second clone of the same repository on the same laptop, while both sessions read the committed CLAUDE.md.
What Claude Code shares, as of 25 November 2026:
| What | Where it lives | Who writes it | Shared with your team? |
|---|---|---|---|
| Project instructions | ./CLAUDE.md or ./.claude/CLAUDE.md | You and your team | Yes, through git |
| Project rules | .claude/rules/ | You and your team | Yes, through git |
| AGENTS.md | AGENTS.md, read when there is no CLAUDE.md or CLAUDE.local.md | You and your team | Yes, through git |
| Local instructions | ./CLAUDE.local.md, kept out of git | You | No. Only you, in that one worktree |
| User instructions | ~/.claude/CLAUDE.md | You | No. Only you, in every project |
| Managed instructions | A system folder your IT team deploys to, such as /etc/claude-code/CLAUDE.md | Your organisation | Yes, with everyone on the machines it is deployed to |
| Auto memory | ~/.claude/projects/<project>/memory/ | Claude | No. It stays on your machine |
From Anthropic’s Claude Code memory documentation, read in full on 25 November 2026.
What does Claude Code share with your team?
Everything you write into a file in the repository. Claude Code reads the project CLAUDE.md at the start of every session, and Anthropic’s docs describe it as team instructions that reach teammates through source control. Files it imports with @path come along when they are in the repository too, and so do rules in .claude/rules/, which can be scoped to paths so they load only when Claude works on matching files.
If your repository already has an AGENTS.md for other coding tools, Claude Code 2.1.277 and later reads it as the project instructions when there is no CLAUDE.md or CLAUDE.local.md in the working folder or above it. When both exist, it reads only CLAUDE.md, unless that file imports @AGENTS.md or you change the Project instructions setting in /config.
An organisation can also deploy one managed CLAUDE.md to every developer’s machine with MDM or Group Policy. It applies in every repository, and developers can’t exclude it.
What stays on your machine?
Auto memory, and the instruction files that are yours alone.
Auto memory is on by default. As Claude works, it saves notes of four kinds: who you are and how you like to work, corrections you give it, project context it can’t get from the code, and where to find things outside the project. It skips what the code or your CLAUDE.md already says. Each repository gets one folder at ~/.claude/projects/<project>/memory/, with a MEMORY.md index whose first 200 lines or 25KB load at the start of every session. Anthropic’s docs say auto memory is machine-local, and that its files are not shared across machines or cloud environments.
Worktrees are the one way to share it on a single machine. All worktrees of one git repository use the same auto memory folder, so a session in a worktree knows what a session in the main checkout saved.
CLAUDE.local.md and ~/.claude/CLAUDE.md are yours alone as well. The first holds your notes for one project and belongs in .gitignore. The second applies to every project you open.
What did we see when we tested it?
We ran this on 25 November 2026, in Claude Code 2.1.331 on Windows, from the command line, with our own user settings left out so auto memory was at its default.
- We made a new repository with a two-line
CLAUDE.md, “We deploy on Fridays.” and “Release steps: @docs/release.md”, wheredocs/release.mdsays to runmake release-koala. We committed both files. - A new session, asked what day we deploy and what command cuts a release, answered “We deploy on Fridays, and
make release-koalacuts a release.” The imported file loaded with theCLAUDE.md. - We told Claude: “Remember this for future sessions: the staging database is called wombat-staging-7.” It wrote two files into its memory folder, outside the repository: a one-line
MEMORY.mdindex andstaging-database-name.md.git statusin the repository showed nothing to commit. - A new session in the same checkout knew the staging database’s name. So did a session in a
git worktreeof that checkout. - We cloned the repository into a second folder on the same laptop, the way a teammate gets it. A session there, asked the staging database’s name, answered “I do not know.” Asked what day we deploy, it answered “Fridays.”
So a teammate’s Claude Code gets everything in the committed files and nothing from your auto memory. In our test even a second clone on the same laptop started with an empty memory: Claude Code made a separate project folder, with its own memory, for each clone.
When is a committed CLAUDE.md enough?
For most of what every agent on a team needs to know, it is the better answer. Build and test commands, coding standards, where things live and rules that always apply belong in a file that is reviewed like code. Anthropic’s advice is to add a line when Claude makes the same mistake twice, or when a new teammate would need the same context, and to keep each file under 200 lines.
Two limits are worth knowing. Claude Code treats CLAUDE.md as context, not enforced configuration, so a rule that must always hold belongs in a hook or a permission setting. And the file changes only when someone edits it and the change is merged. Our guide on keeping CLAUDE.md in sync across a team covers the habits that keep it current.
How do you share the rest?
Three ways, cheapest first:
- Write it into the shared file. When Claude learns something the whole team needs, ask it to “add this to CLAUDE.md” instead of asking it to remember. Anthropic’s docs say a request to remember goes to auto memory, while naming
CLAUDE.mdedits the file. Then commit the change. - Import one personal file into every checkout. For your own notes across worktrees, the docs suggest importing a file from your home folder, such as
@~/.claude/my-project-instructions.md. It keeps your notes in one place, and it doesn’t reach anyone else. - Use a memory every agent on the team reads. For what changes from week to week, such as decisions, who is working on what and facts the team keeps checking, a shared memory server connected over MCP gives every teammate’s agent the same answer without anyone opening a pull request.
Where does KoalaFix fit?
KoalaFix is the third way: 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. It works in Claude Code, Codex, Cursor, Claude, ChatGPT, OpenCode, GitHub Copilot and any MCP client, so teammates who use different tools read the same memory.
In Claude Code it takes one command, claude mcp add --transport http koalafix https://mcp.koalafix.com/mcp, then a sign-in from /mcp. Connect Claude Code has the full steps.
Keep your CLAUDE.md either way. It holds the rules, reviewed like code. Team memory holds what moves.
Related pages:
- How to keep CLAUDE.md in sync across a team: what belongs in the file, and three free fixes.
- How to give Claude Code, Cursor and Codex one shared team memory: when your team uses more than one tool.
- KoalaFix for Claude Code: setup, and what Claude Code sends.
KoalaFix is opening soon. Join the waitlist to get in on launch day.