What Scion Teaches a Git Shop Running 173 Agents
Anthropic's engineering team published how they built Scion, an in-house version control system, after their monorepo went from 2,500 to 30,000 merges a day. The core idea is simple: agents are always online, so the server should do the heavy lifting and clients should hold almost nothing.
We run the same kind of workload at a smaller scale. AitherOS is one monorepo of 42,863 tracked files. In the last 30 days it took 5,707 commits, about 190 a day. Most of them came from agents. The awgit op-log has recorded 173 distinct actors writing to the same checkout on the same machine.
The verdict: at our scale, keep git and add the server side. Scion's principles carry over without a new VCS. Three pieces close most of the distance.
What we already do the Scion way
| Scion | AitherOS |
|---|---|
| A changeset lists changed files plus content-addressed blobs | awgit capture records every commit as an EditOp with node-level changes, backed by a content-addressed body store |
| Server answers blame, history and merge-base | awgraph, the code graph and repowise answer structural questions over MCP |
| Commits created server-side, with no shared-index race | awgit blob-commit --base <sha> builds a commit from exact paths without touching the shared index |
| No global merge lock; fix conflicts after merge | post-merge gates, with agents resolving node-level conflicts |
| "Superfans" that watch one component | Pulse, health reapers and routines that page through decision cards |
One thing Scion does not need, and we do: leases. Scion gives every agent its own
sandbox. We run dozens of sessions in one working tree, so awgit lease acquire tells
every other session which files are taken. The op-log shows it working: 76.3% of
4,079 captured ops were leased, and it has caught 4,450 node-level collisions where two
distinct sessions touched the same function. Git alone sees those as clean text merges.
The three pieces that close the gap
1. Derived data that stays fresh
Scion computes blame, path history and commit-graph skip lists as derived data, updated per changeset. Git has the same structures built in: the commit-graph file with changed-path Bloom filters, and the multi-pack index. They only help when they are current. Ours is 276 packs and 4.9 GB, and a path-history query takes 2.8 seconds.
The fix runs on a schedule:
- write the commit-graph with
--changed-pathsso path history and blame skip commits that never touched the file - keep one multi-pack index and repack geometrically
- a checker that fails when the graph is more than a day old, so a stale index is a red gate and not a slow afternoon
2. Ask the repository, don't check it out
Scion's biggest win was that most jobs never need a working copy. We have 477 git worktrees on one host, and many of them exist only to answer a question or run one test.
The fix is to serve awgit's queries from awnode over MCP and HTTP: diff, blame, path
history, merge-base, node-level merge preview and file-at-revision. A review agent or
CI step asks the node instead of creating a worktree. When a job really does need files,
awgit worktree creates a sparse, blob-filtered checkout of only the directories it
names, backed by the host's shared object store. Worktrees older than their session are
snapshotted to a ref and reaped.
3. Coordination that survives a second machine
Today the lease registry and op-log are local to the host. That works because every agent is on one box. The next step is several boxes, and Scion's rule applies: shared state must be content-addressed or it must be a compare-and-swap on one row.
- The op-log is already content-addressed, so
awgit syncships ops and bodies as deltas, and nodes on AitherNet exchange them through the gateway. - Leases go through the gateway, the one serialization point, so a lease taken on one node is visible on every node.
- Every commit is captured by a post-commit hook, so op-log coverage reaches 100% of
commits, and
blob-commitrefuses unleased paths, so lease adoption reaches 100% too. - Next, object fetches follow Scion's tiering: a node daemon, then a regional cache, then the origin. All of them answer the same request for a specific immutable object. awrtifact already moves byte-verified blobs between nodes.
Shipped the same day
All three pieces are live in awgit and on the AitherOS gateway:
- Fresh derived data. The commit-graph now carries changed-path filters and git maintenance refreshes it hourly. A host gate fails when it goes stale. Path history dropped from 2.84 seconds to 0.145 seconds.
- Ask, don't check out.
vcs_blame,vcs_path_log,vcs_diff,vcs_file_at,vcs_merge_baseandvcs_merge_previewanswer over MCP from a read-only mount of the repository's history.awgit worktree new --sparsecreates a checkout of only the named directories, andawgit worktree reapclears old ones. - Coordination that replicates.
blob-committakes a lease on every path it commits and refuses paths another agent holds. Each commit is captured into the op-log, andawgit capture --rangebackfills squash-merged trunk commits on a schedule.vcs_sync_exportandvcs_sync_importmove op-log deltas between nodes through the gateway, andAWGIT_LEASE_URLpoints any node's leases at it.
What to do with this
If your agents write to a git monorepo, don't migrate off git. Do three things:
- Keep git's derived data current, and make staleness a failing check.
- Put a query API in front of the repository so agents ask instead of cloning.
- Make coordination explicit with leases and an op-log, and design both to replicate from the start.
Scion is the right answer at 30,000 merges a day. At 190 a day, with 173 agents in one tree, the same principles fit on top of the git you already run.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.