Claude Code memory for a team: what reaches everyone's agents

Claude Code memory, auto memory and nine memory options sorted by who they reach, plus a test of what your teammates' agents remember in any tool.

By Scott Strang

Last updated

The short answer. Claude Code remembers in two ways: CLAUDE.md files you write, which reach teammates when committed to the repo, and auto memory, notes Claude keeps on your machine that no teammate sees (in our test, not even the same person's Codex). For a team, keep what's settled in one AGENTS.md, which Codex, Cursor, Copilot and Claude Code read (Claude Code only when no CLAUDE.md sits in that folder or above), and add a shared memory store such as Mem0 or agentmemory for what agents learn; GitHub Copilot Memory shares repository facts, but only inside Copilot. None of these hears a decision made in a meeting or a chat thread unless someone types it in.

"Memory" here means what the agent remembers between sessions, not RAM.

Claude Code memory is CLAUDE.md plus auto memory, and only the one you commit reaches a teammate

Claude Code's docs say "CLAUDE.md files and auto memory carry knowledge across sessions", and both load at the start of every session:

CLAUDE.md (and AGENTS.md)Auto memory

Keeping the repo's CLAUDE.md right across a team and its tools is its own guide: CLAUDE.md and AGENTS.md: keeping them right for a whole team.

Auto memory adds up fast. On our own team, one person's auto memory for one repo held 149 notes after five weeks, and its index had reached 24,612 bytes, just under the 25KB that loads each session. Index lines past that limit aren't loaded at session start. All of it stayed on one laptop, so a new teammate's agent starts with none of it.

Three things sound like team memory and aren't. Agent teams coordinate several Claude Code sessions on one task; they're experimental and off by default. Claude Code Projects (a 2026 beta) share memory between your own threads, but "A project belongs to one user." And a team memory flag that Mem0 describes from leaked Claude Code source isn't in Anthropic's Claude Code docs, and the changelog's only mention is a 2.1.172 fix for "mounted team memory stores" in remote sessions, so don't plan around it. Anthropic's repo has an open feature request, "Shared Team Memory for Claude Code" (#38536, opened March 2026), with no reply from Anthropic as of Nov 20, 2026.

Pick by your situation

  • You're one person on Claude Code. Start with built-in auto memory plus CLAUDE.md. Auto memory is on already. Add a plugin only when you notice the agent forgetting, and switch to a team setup below the day a second person joins the repo.
  • You switch between Claude Code, Codex and Cursor yourself. Start with one AGENTS.md, then claude-mem or agentmemory if you want what the agent saw to follow you between tools. Built-in memories don't cross tools.
  • Your team is all on GitHub Copilot. Start with Copilot Memory. Repository facts are shared with collaborators already, and by default expire after 90 days unless Copilot upvotes them again (owners can set 7 to 180 days).
  • Your team mixes Claude Code, Codex and Cursor. Start with AGENTS.md in every repo, then add one shared store every tool on your team can reach: Mem0, supermemory or agentmemory (Mosaic too, once you've checked its pricing and data handling). Then see what none of them hold.

Nine agent memory options, and which ones reach the whole team

OptionWhat it isBuilt forWhere memory livesShared across people?Shared across tools?SetupCost

Checked against each vendor's own docs, README or launch page on Nov 20, 2026; the supermemory, Mem0 project access, Copilot expiry and Claude Code session sharing rows were re-read on Nov 23, 2026. Prices are entry points only; see each vendor's page for current plans. We re-check every quarter and the week a vendor ships something big.

The shared ones keep private and team memory apart. Mem0 sorts each memory into shared project knowledge or a personal preference. agentmemory keeps shared and private memory in separate namespaces. supermemory tags what it captures on its own as personal. Copilot keeps your preferences to you and repository facts to the repo. Two built-ins say they keep secrets out: Copilot rejects them, and Codex redacts them from the memories it writes.

Not in the table: Letta and Zep have shared memory too, but Letta is its own agent harness rather than memory for Claude Code or Codex, and Zep is an enterprise context platform. The MCP reference memory server keeps a local file; its docs say a network filesystem that doesn't support exclusive file creation can't share the file safely. Cursor's Memories page now redirects to Rules: Cursor shares through rules, either .cursor/rules in the repo or Team Rules set by admins. Windsurf became Devin Desktop on June 2, 2026, and its replacement uses rules and skills instead of memories. Mem0's OpenMemory was sunset in 2026. How each store searches its memory (keywords or meaning) is out of scope here.

Best for, and when to skip it

Plain files: instructions you write, in the repo. Best for: any team that wants rules every teammate's agent reads, reviewed like code. Skip it if: you want the agent to remember what happened last Tuesday. A file holds only what someone wrote down. Source: Claude Code memory docs

Claude Code auto memory: notes Claude keeps for you. Best for: one developer on Claude Code who wants fewer repeated corrections, with nothing to install. Skip it if: a teammate, a second clone of the repo or another tool needs the same notes. Source: Claude Code memory docs

Codex memories: context Codex carries between your sessions. Best for: one developer who lives in Codex. Skip it if: you need team guidance. OpenAI's docs say to "keep required team guidance in AGENTS.md". Source: Codex memories

GitHub Copilot Memory: facts Copilot learns about a repo. Best for: a team that works in Copilot's agents and code review. Skip it if: part of the team uses Claude Code or Codex. The memory stays inside Copilot, and by default facts expire after 90 days unless Copilot upvotes them again. Source: Copilot Memory

claude-mem: a note-taking agent beside yours. Best for: a developer who wants recall across several agents, stored on their own machine. Skip it if: the team needs to share it today. The shared workspace is still a pilot. Source: claude-mem

Mem0: one hosted memory pool per repo. Best for: a team that wants each person's agent reading the same project memory. Skip it if: you can't send code context to a hosted service, or your tool has no Mem0 plugin. Source: Mem0 for Claude Code

supermemory: hosted memory, one space per repo. Best for: a small team on Claude Code, Codex and OpenCode. Skip it if: you can't send code context to a hosted service. Its MCP server is hosted only; self-hosted supermemory doesn't include it. Source: supermemory MCP and claude-supermemory

agentmemory: a memory server you run. Best for: a team that wants shared memory on its own server, across many agents. Skip it if: nobody wants to run and secure a server. Source: agentmemory

Mosaic: every agent session in one shared place. Best for: a team that wants every session searchable by every teammate's agent. Skip it if: you need published pricing and data-handling details first. Source: Mosaic launch

Most memory reaches one person; a few reach the team, and fewer reach every tool

On Monday, one teammate's agent learns "the staging database resets every Monday at 06:00 UTC." Here's whose agent knows it on Tuesday.

OptionYou, next sessionTeammate, same toolTeammate, other tool

Built from each vendor's docs, read Nov 20, 2026 (rows noted above re-read Nov 23); "tested" cells from our own runs below.

So a team can share what agents learn, if it picks a shared store every tool on the team can reach.

We tested it: auto memory didn't reach a second clone or the same person's Codex

The memory reach test: put one fact in a committed AGENTS.md and another in Claude Code's auto memory, then ask each agent which facts it can see, without using any tools (Claude Code with its tools disabled, Codex read-only and told not to run commands). We ran it on Nov 20, 2026, with Claude Code 2.1.283 and Codex CLI 0.146.0.

Who asksSees the AGENTS.md factSees the auto memory fact

The docs say auto memory isn't shared across machines; our run shows it isn't shared with a second clone or with Codex either. Each setup ran once, and each result is the agent's own report, not a dump of its prompt.

The team test is a simulated handoff: one decision is recorded, then a teammate who wasn't there asks about it from a different tool in a fresh session. We ran it on Nov 23, 2026, on one laptop, one run per setup, so read it as a demonstration, not a benchmark. The two people were two clones of one small repo. Claude Code 2.1.283 played the person who made the decision, and Codex CLI 0.146.0 (read-only, no approvals) played the teammate, with agentmemory 0.9.33 as the shared store. The decision was "/v1/orders is removed on Dec 1; use /v2/orders", and Codex was asked, "Can our client keep calling /v1/orders after December? Answer from what this repo and your configured tools tell you; say where you found it."

SetupDid the teammate's agent know the decision?

Two caveats. Both agents used one agentmemory server with one team ID and one user ID, so the run shows a store reaching a second tool, not that separate people's accounts and permissions work. And we wrote the AGENTS.md lines in the first and third setups ourselves as a repo convention. In the second setup, Codex did have the agentmemory tools: a separate check in the same clone called its search and got the decision back.

In this run, the shared store only helped once AGENTS.md told the agent to look in it. We didn't run the team test on Mem0, supermemory or Mosaic; their rows above come from their docs.

To see what reaches your team on your own setup, run the audit prompt at the end of this page.

Team memory has three layers, and memory tools fill only one

LayerWhat's in itWhat fills it

An agent can't know the third layer until someone moves it into one of the first two. Without any new tool:

  • Write decisions where agents read. Keep a short decision log in the repo, with a date and what it applies to, and link it from AGENTS.md. (A decision log people and agents both use)
  • Close the meeting with one line in the log. Whoever ran it writes the decisions down the same day. If that's a PM or founder who never opens the repo, an engineer commits them. (How meeting decisions reach every agent)
  • Say what you're working on before your agent starts. A line in the team channel with the files you'll touch saves two agents from building the same thing.

Where SageOx helps

SageOx is a tool-agnostic context layer for a team's people and agents, not an agent and not another memory store: keep your memory plugin for what agents learn. SageOx covers two parts of the third layer, meetings and what teammates' agents are doing, and puts them in front of every session.

  • Meeting decisions land where agents can read them. Record a planning or customer call in the web app or the desktop app. Discussions (your recorded meetings) are transcribed, and their decisions go into Team Context: one shared repo of the team's decisions, conventions and transcripts that any teammate's agent can read.
  • Every session starts with it. ox agent prime loads Team Context, team rules and prior work into a coding session at start and after /clear or /compact, in Claude Code, Codex and other coding agents. Chat assistants get the team's conventions and recent decisions over MCP, so a PM working in Claude starts from the same decisions.
  • Agents see what teammates' agents are doing. Murmurs are short work-in-progress notes that SageOx shows in teammates' running sessions.

The session that drafted this guide started with 8 team rules and 18 work-in-progress notes from other agent sessions: 17 from sessions the author was running and one from a teammate's. One said a related guide was being drafted at the same time. Checked Nov 20, 2026.

See how every agent starts with the team's context →

Have your agent check what reaches your team

Paste this into Claude Code or Codex at the root of a repo. It reads and reports; it changes nothing.

Audit where agent memory for this repo lives, and who it reaches. Don't edit, move or delete anything.
1. List every place an agent keeps instructions or memory for this repo, with its size:
   AGENTS.md, CLAUDE.md, CLAUDE.local.md, .claude/rules/, .cursor/rules/,
   .github/copilot-instructions.md; Claude Code's auto memory folder for this repo (the folder
   under ~/.claude/projects/ named after this repo's absolute path with / and . turned into -,
   then /memory/; in a git worktree it's the main checkout's folder; if unsure, run /memory in
   Claude Code); Codex memories (~/.codex/memories/ or memories_v2/, and whether
   [features] memories is on in ~/.codex/config.toml); and any memory server or plugin in
   .mcp.json, ~/.claude.json, ~/.codex/config.toml or the installed plugins.
2. For each one, say who it reaches: only me on this machine, everyone who pulls the repo,
   or everyone with access to a hosted service. Say which tools read it.
3. Read the auto memory and any local memory store. List every note that is a team decision
   or a fact a teammate would need, not a personal preference. For each, say where it should
   live so every teammate's agent gets it (AGENTS.md, a decision log in the repo, or the
   team's shared store). Leave personal preferences where they are.
4. Show the result as one table: place, who it reaches, which tools, and what should move.

If the table shows decisions that live only in meetings or chat, start with How to make meeting decisions visible to your whole team, and its agents.

Questions

Does Claude Code have memory across sessions? Yes: it loads your CLAUDE.md files and the start of its auto memory (MEMORY.md, first 200 lines or 25KB) at the beginning of every session. Auto memory is on by default and stays on your machine.

Is Claude Code's memory the same as its context window? No. The context window is what the model holds during one session; memory is what loads into it at the start of the next: your CLAUDE.md files and the first 200 lines or 25KB of auto memory.

Does Codex have memory? Yes, but it's off by default, stored on your machine, and separate from ChatGPT's memory. OpenAI's docs say to keep team guidance in AGENTS.md.

Does Cursor still have memories? Cursor's Memories page now redirects to its Rules docs. Cursor shares through rules: .cursor/rules in the repo, or Team Rules that admins set on Team and Enterprise plans.

Can I share a Claude Code session with a teammate? Partly. Claude Code's docs say you can share a cloud session or a Remote Control session with a link so other people can read the conversation: on Team and Enterprise plans, members of your claude.ai organization; on Max, Ultra and Pro, anyone with the link who's signed in to claude.ai. That gives a teammate the transcript, which can include keys, tokens and connector results, not a memory their agent carries into its next session. Claude Code Projects can't be shared: "A project belongs to one user." To carry what a session learned to teammates' agents, put it in a file, a shared memory store or a shared context layer. (Share sessions, re-read Nov 23, 2026)

Sources

All read Nov 20, 2026, except the pages noted as re-read Nov 23, 2026: Claude Code share sessions, supermemory MCP, Mem0 organizations and projects and the Copilot Memory page.

Tests: the Nov 20, 2026 memory reach test used Claude Code 2.1.283 and Codex CLI 0.146.0. The Nov 23, 2026 team test used the same versions plus agentmemory 0.9.33, on one laptop with a simulated teammate, one run per setup. Cursor, Mem0, supermemory, Mosaic and the other stores were not tested.

More on agent context for teams