Four repos, four CLAUDE.md files, and only one loads at a time. Here is how teams share context between them.

November 28, 2026

Friday afternoon, and a small team's setup session is going well. One engineer wires the shared agent context into the frontend repo: a CLAUDE.md in the repo root, a symlink pointing at shared/agents.md on their own machine, absolute path and all. They run a query. The context loads. The answers come back shaped by the conventions the team wrote down. Done. Weekend.

Monday morning, another engineer clones the repo on Linux. The path inside the symlink points at a directory that exists on the original laptop and nowhere else. The agent runs anyway. It resolves whatever CLAUDE.md it can find, which amounts to almost nothing, and answers with none of the shared context behind them. No error, no warning, no log line. The clone goes unnoticed for days. Days of agent runs shaped by nothing, no signal that anything was wrong.

The file was there, the context was not.

The constraint, conceded: one CLAUDE.md loads at a time

Claude Code loads one CLAUDE.md per directory level, resolved at invocation time. That is documented behavior, and it reads like a design choice: the file next to your code is the context your agent gets. For a single repo and a single engineer, this is close to ideal. Local, fast, versioned alongside the code it describes.

Four repos with four CLAUDE.md files share nothing by default, though. Each file loads alone. So the question stops being how to route context around the loader. The loader does exactly what it was built to do. The question becomes how to keep shared context consistent across multiple repos and engineers.

The fixes teams reach for first: symlinks, a shared markdown repo, submodules

The first thing most teams try is a symlink. Each repo's CLAUDE.md becomes a pointer to one shared file, so an edit to the shared source shows up in every repo that points at it. One source, many readers.

The next is a shared markdown repository. All the agent context lives in a dedicated repo; engineers copy or clone it, and each repo's CLAUDE.md tells the agent where to look. The repo gives the shared file a home, a history, and an owner.

The last is a git submodule. The shared context rides along as a pinned submodule inside each consuming repo, versioned with the code that depends on it. A checkout brings the context with it, at a revision the repo's history can name.

All three share one shape: a canonical file, plus some arrangement for getting it in front of the agent.

Where each fix holds and where it drifts

The symlink holds on one machine. It is the fastest thing that works, and on that machine it keeps working. Where it drifts is the clone: an absolute path is a promise about a filesystem the next machine never made, and path conventions differ between operating systems besides. CI environments often skip the checkout steps that would make the target exist at all. The failure stays silent precisely because the loader is well behaved. Missing context is a valid state.

The shared repo holds as a source of truth. Everyone knows where the canonical file lives. What it requires is pull discipline: every engineer has to remember to fetch updates, and nothing checks whether they did. The file drifts because the update cadence is enforced by nobody.

The submodule holds on version pinning. Each repo names the exact revision of shared context it was tested against, and that is genuinely useful. What it costs is submodule discipline, the init and update steps everyone forgets once and then scripts around. And the context remains a file, read-only from the agent's side. When an agent session produces something worth keeping, the write goes nowhere shared.

That last observation is the seam. Symlinks, shared repos, and submodules all solve distribution. None of them enforce the write path: who updates the shared source, when, and with what review. Context decays in a shared repo for the same reason it decays everywhere else, because nothing routes what an agent learned back to the canonical copy. The copies drift, and each repo gradually describes a team that no longer exists.

Putting the shared context in one substrate both people and agents read and write

Put shared decisions in one company-wide substrate people and agents read and write, instead of markdown copies that drift across repos.

The mechanism difference is the write path. When the shared context lives somewhere both humans and agents can write to, an agent's session findings have a destination, and a human's review of them has a place to happen. Distribution stops being a file-copying problem and becomes a lookup, the same one for every repo. SynthWeave is one such substrate: a company-wide context substrate of snips, bases, and projects with hybrid search, readable and writable by both people and AI agents from the same place.

The reason to name it is functional. The failure modes above are write-path failures, and a substrate is a write path.

What a shared substrate does not fix

A substrate does not write your decisions for you. Every team using one still has to decide what is worth sharing, what stays local to a repo, and when the shared layer needs updating. The substrate gives that decision one home; it does not make the decision. That work was always the hard part, and it stays the hard part.

A substrate does not replace per-repo CLAUDE.md files, either. Directory-level context, the stuff specific to one repo's build and test commands, still belongs next to that repo's code. The two layers coexist: local files for local instructions, shared substrate for decisions that span repos. Teams that delete their local files lose local speed and gain nothing.

And a substrate does not keep itself current. Shared context is only as fresh as the last human or agent who deliberately updated it. If nobody maintains the shared layer, it decays in exactly the way the shared-repo markdown did, in a different format. The substrate makes maintenance possible in one place. Maintenance remains a habit someone has to keep.

None of these limits has a rebuttal waiting offstage. They are the current edges of the approach, listed here because you would find each one soon enough on your own.

Back to the Monday-morning clone. With a symlink, the failure looks the same as before: the target path is missing, the agent loads nothing, and nobody hears about it. What changes is what the fresh clone reaches for. The repo's CLAUDE.md still carries the local instructions, and the shared context arrives by lookup into a substrate that takes no space on anyone's disk. The conventions, the decisions, the accumulated session notes are all present on the first query, and the agent answers with the team's context behind it.

The symlink still fails the way symlinks fail, and the team stops depending on it.

← All writing