Five developers, five Claudes: how a team shares what the agents learned
Published · Updated
Share what a teammate's agent would trip over, keep what is about you on your own machine, and put the shared part through pull-request review like code. The mechanism is a plain folder of short notes in the repo that CLAUDE.md points to. It is dull, and a team can review and trust it.
Claude Code's auto memory is machine-local, and the feature request for shared team memory, anthropics/claude-code#38536, was open on 10 November 2026 with 14 reactions and 32 comments.
What the problem looks like
The request in #38536 describes the pattern: a teammate spends an hour with Claude Code working out a fix or a decision, and then that reasoning evaporates. Nobody else's agent ever sees it. In the words of one r/ClaudeAI poster, quoted secondhand and not checked against the thread, everyone has their own "context in their head", and the agents inherit the same split.
Each developer's auto memory is local. The Claude Code docs say the files are not shared across machines (docs checked 2026-11-10), so even your own laptop and your own build server do not share them. Five developers produce five unrelated memory folders, each partly right.
What goes in the shared folder
Sort every candidate note with one question: would a different developer's agent make a mistake without it? If yes, it is shared. If it is about how one person likes to work, it is not.
Shared notes are things like the Stripe webhook that arrives twice, the migration that must run before the deploy and never after, or the module that looks dead and is not. These are facts about the codebase that survive any one person. Personal notes are your preferred test runner flags, your editor, or how terse you want answers to be. Those go in CLAUDE.local.md, which Claude Code reads next to CLAUDE.md and which you add to .gitignore yourself, as the docs say.
The layout, tested in a scratch Git repo:
CLAUDE.md
docs/agent-notes/README.md
docs/agent-notes/stripe-webhooks.md
docs/agent-notes/old-queue.md
scripts/stale-notes
.gitignore
CLAUDE.md stays short, with two lines about the folder:
Read `docs/agent-notes/README.md` before touching payments, auth or migrations.
When you learn something a teammate's agent would trip over, propose a note there in the pull request, do not write it to personal memory.
Each note starts with front matter that records a verification date and an owner:
---
verified: 2026-11-03
owner: payments
---
Stripe sends `invoice.paid` more than once. Key idempotency on `event.id`, never on the invoice id.
Use an owner: field and not a CODEOWNERS entry, because a note needs a person to ask, and the owner is whoever last confirmed it.
Who reviews it
A note is a claim about the code, so the reviewer is whoever knows that part of the code. The note goes in the same pull request as the change that taught you the lesson, which is when the facts are fresh and the diff gives the reviewer something to check it against.
The agent can draft the note. A person approves it. An agent should not merge its own notes. A line that is slightly wrong is worse than no line, because it is loaded as an instruction every time. A commenter in HN thread 49508317 makes the same point about memory in general: one bad line affects everything after it. Review is the filter.
The failure that gets teams
The problem teams report most is stale and misplaced context. One r/ClaudeAI poster, again secondhand, said a shared memory "got messy fast" with stale context from sibling projects. The same complaint shows up in github/copilot-cli#1719, where repository-wide memories load for every user, and the example given is a joke footer that was stored as a repo-wide memory and could not be deleted. That issue is open and is one report, so read it as an illustration of the risk and not a measurement.
Three habits keep a notes folder from going the same way.
First, scope by folder. If your repo is a monorepo with services that do not share rules, give each service its own notes folder and its own CLAUDE.md pointer, so one team's gotchas do not load into another's sessions.
Second, date every note and treat an old date as a question. A 90-day cutoff works, and the script below lists anything older. A note past the cutoff is not wrong, it is unconfirmed, so the owner either re-verifies it or deletes it.
Third, delete freely. A deleted note is still in Git history.
The sweep
This script prints notes whose verified: date is older than a cutoff, 90 days by default. It handles both macOS and GNU date.
#!/bin/sh
days=${1:-90}
cutoff=$(date -v-"$days"d +%Y-%m-%d 2>/dev/null || date -d "-$days days" +%Y-%m-%d)
for f in docs/agent-notes/*.md; do
case "$f" in */README.md) continue;; esac
v=$(sed -n 's/^verified: *//p' "$f" | head -1)
if [ -z "$v" ] || [ "$v" \< "$cutoff" ]; then echo "$f verified: ${v:-never}"; fi
done
In the scratch repo it printed one line, docs/agent-notes/old-queue.md verified: 2026-05-01, and printed nothing with a 400-day cutoff. A note with no verified: line is reported as never. Run it in CI on a schedule or just before each release.
Other shared surfaces
If part of the team uses Codex, put the pointer in AGENTS.md too, and see where Codex stores sessions for what that tool keeps locally. For onboarding a new person, notes tell them what is true today, and the sessions behind them tell them how you got there, which onboarding engineers with agent history covers. The guides index lists the rest.
Sealkeep
Sealkeep team mode shares sessions at project scope, with individually wrapped project keys, so a teammate can search what another person's agent did on a project. sealkeep team shows who is active and sealkeep now "doing X" --project P posts what you are working on. It does not curate facts or decide what is true, so a reviewed notes folder is still the right home for rules. Team costs $9 per seat per month, and its encryption is unaudited.
FAQ
Does the agent read all the notes every session?
Only the README, if CLAUDE.md points at it and the README is an index. It opens a note when the task touches that area, which is why the one-line summaries in the index matter.
Can I just commit my auto memory folder?
You can, but it mixes personal and shared content, and nobody reviewed it. A separate notes folder is easier to review.
What about .claude/rules?
Path-scoped rules are a good home for shared instructions that apply to one directory. Notes with a verification date suit facts that go out of date, and rules suit conventions that do not.
How many notes before it gets unwieldy?
Past about thirty, the README should become an index grouped by area, so the agent reads the index and opens only the relevant files.