Blog//Snow Lee/Updated /.md

How to share context between your team's AI agents

Between teammates' machines, context travels as files. In Claude Code, a committed CLAUDE.md, .claude/rules/ and project skills reach every teammate through git, while auto memory, CLAUDE.local.md and session transcripts stay on the machine that wrote them, and cross-session messaging only reaches your own sessions. So put shared context in files: commit the project rules, write a handoff note for work in progress, and keep notes that people outside engineering also edit in a folder that syncs to every machine.

Short answer

Table: what reaches a teammate's machine in Claude Code. Project CLAUDE.md and .claude/rules: yes, through version control when committed. Project skills in .claude/skills: yes, committed with the project. CLAUDE.local.md: no, personal and gitignored. Auto memory: no, machine-local, not shared across machines or cloud. Session transcripts: no, stored under ~/.claude/projects on your machine. Cross-session messages: your own sessions only, plain text, never files. A handoff file in a shared place: yes, committed or in a synced folder. Source: Claude Code docs on memory, skills, sessions and cross-session messaging, checked Nov 9, 2026.

Teams that run AI agents on several laptops hit the same wall. One person's agent knows the pricing rationale, another's knows the migration plan, and neither knows what the other knows. The context exists. It's trapped on whichever laptop produced it.

The rule that explains most of it: between teammates' machines, context travels as files. Claude Code's personal memory (auto memory, CLAUDE.local.md, transcripts) stays on one machine, so anything you want a teammate's agent to know has to end up in a file that reaches their disk, through git or through a folder that syncs. The table above shows which parts of Claude Code do that, checked against Anthropic's documentation on November 9, 2026.

What in Claude Code reaches a teammate's machine?

From the Claude Code memory docs:

So for two people on two laptops, the built-in path is the committed project files. Everything else has to be written down somewhere both machines can read.

Where should shared context live?

Illustration: three places team context can live. The code repository reaches everyone who pulls (project CLAUDE.md or AGENTS.md, path-scoped rules, build commands, changes through commits). A synced folder reaches every teammate's disk (decisions, research, customer notes, handoff notes, editable without git, per-file history). One person's machine reaches only that machine (auto memory, CLAUDE.local.md, session transcripts, user settings in ~/.claude).

Pick the place by who needs the context:

You can connect the first two. Claude Code reads CLAUDE.md files from an extra folder if you add it with --add-dir and set CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1, for example CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 claude --add-dir ../team-context. A CLAUDE.md can also pull in another file with @path/to/file; an import that points outside your working directory asks for approval the first time.

How do I hand off work to a teammate's agent?

Write the state of the work into a file, put it where their agent will read it, and tell them its name. A good handoff note is short and covers four things:

Ask your agent to write it before you stop ("Write handoff/search-rewrite.md: done, left, decisions and why, next step. Under 40 lines."), and your teammate starts with "Read handoff/search-rewrite.md and continue." Unlike a conversation, the note is reviewable, stays on disk after compaction, and works whichever agent your teammate uses.

Where the note lives decides how it travels. Committed to a branch, the teammate gets it on their next pull. In a synced folder, it is on their disk without a commit.

When the agents are services, not people's sessions, look at the Agent2Agent (A2A) protocol. It is an open protocol for agents built on different frameworks to delegate tasks and exchange information, originally developed by Google and now under the Linux Foundation. Its own docs say it is "Not a sub-agent or tool-call protocol" and not a replacement for MCP. It fits best when a deployed agent hands a task to another deployed agent. For a teammate picking up where your coding session stopped, a written note is the simpler tool.

What does a shared folder actually buy you?

The agent-facing part is that reads need no MCP server or API: the files are on disk, and the agent opens them with the same file tools it uses on code. An agent that can read a folder can also write to it, so the summary your agent produced at 2pm can be on your colleague's disk before their next session starts.

The human-facing part matters just as much. Someone outside engineering can open the folder on their Mac or Linux machine (or upload in the web app), drop in a PDF and fix a paragraph, and the same content reaches every agent on the team.

The part people underestimate is versioning. Shared context goes stale. Over time, the question becomes less "what does this document say" and more "is this still true, and who changed it." Per-file history with names and times turns an old wiki into something you can check.

What's the catch?

How BearDrive handles this

BearDrive is our answer to this problem: you mount a folder with bdrive init, and it stays in sync across every device and teammate through a hub. It is open source (AGPL-3.0). On the points above:

Questions

How do I share context between Claude Code sessions on different teammates' machines?
Through files that reach both machines. Commit the project CLAUDE.md, .claude/rules/ and .claude/skills/ for code context. For work in progress and notes outside the code, write a handoff file and keep it in the repo or in a folder that syncs to every teammate. Auto memory, CLAUDE.local.md and session transcripts stay on the machine that made them.
Can teammates share Claude Code's auto memory?
Not by default. Anthropic's docs call auto memory machine-local: it isn't shared across machines or cloud environments. You can move it with the autoMemoryDirectory setting, but it holds notes Claude took from one person's corrections. For context the whole team should rely on, a file someone wrote on purpose is clearer.
How can one AI agent hand off work to another teammate's agent?
Have the first agent write a short handoff note (done, left, decisions and why, next step) where the second agent will read it: a committed branch or a synced folder. When the agents run as services, the open A2A protocol defines how one agent delegates a task to another.
Can two AI agents share the same memory?
Yes, if the memory is files rather than a vendor's internal store. Coding agents read plain files from the working directory, so a folder that syncs to each machine gives Claude Code, Codex and others the same files to read with no integration between the agents.
Do I need an MCP server to give an agent shared context?
No. MCP is the right answer when the data lives in a system the agent can't reach, such as a database, a ticket tracker or an API. For markdown and documents, files on disk are simpler, work offline and need no server running.

BearDrive keeps a folder in sync across every teammate and every agent.

Start freeMore posts