Two days before the 15:30 UTC cron ran, a Go developer named feder pushed git-ai v0.1.0 to GitHub. It hit 1,112 stars in 48 hours, the HN thread pulling it is sitting comfortably in the top of the day, and the README opens with a sentence you don’t usually see in version-control projects: “Anthropic built Scion, a faster version control system for coding agents … Scion is internal to Anthropic and is not available to the public. So I built gitai: an open-source version of that design.” The repo is a fork of GitLab’s Gitaly, and the design it is reimplementing is the one Anthropic published on October 13 under the title Redesigning source control at Anthropic. That post made the rounds with 890 HN points and a sustained comment thread partly about whether Scion was lifted from Meta’s Mononoke. feder’s project doesn’t litigate that — it just builds the parts that were public.
I’ve been reading the project for the last hour. The shape of it is interesting, and the reason it’s interesting isn’t the source control. It’s what the design says about how coding agents actually work in production at a place that’s running 30,000 merges a day.
What the Anthropic post actually claims
The Redesigning post is the third Anthropic engineering writeup this year that read like a confession: “the bottleneck is no longer the model, it’s the infrastructure that humans used to need.” May was about how Claude’s own training pipeline became its biggest internal compute customer. August’s When AI Builds Itself ran the same thesis at a wider zoom. The October 13 post takes it down to a single system: source control.
The numbers in the post are the headline. May 2026: ~2,500 code changes merged per day at Anthropic. September 2026: over 30,000. That’s a 12x jump in four months, all on a single monorepo, with the merge rate still climbing. Their main branch history is “almost 100 GB” and a compressed working copy is “over 25 GB.” They do 25 million code checkouts per day for CI alone — pre-developer-machines, pre-agent-sandboxes. The first graph in the post makes the curve look almost vertical at the right edge.
The mechanism they describe, in one paragraph, is: agents don’t work the way humans do. Humans clone, work for hours, push once. Agents commit hundreds of small changes per session, each touching a few files, all wanting to land in seconds, all on the same branches. Full clones, merge queues, and client-side history walks become the bottleneck. Scion moves the work to the server: clients stay online, the server answers history questions, changes land through a compare-and-swap, every update is an entry in a changeset write-ahead log, repository state lives in a database plus object storage. Five months, full migration, 30,000 merges a day.
The principles section is short enough to quote in full. Clients are always online. Client-server asymmetry. Everything must be horizontally scalable. Commits must be cheap, incremental, and lock-free. The working copy is optional, and sparse by design. Those five are the design contract.
What feder built
feder-cr/git-ai calls its implementation Graft. The repo’s name is git-ai and the binary is graft; the README uses both interchangeably, which is mildly confusing, but the canonical source lives in internal/graft/, the CLI is cmd/graft, and every doc under doc/graft/ describes the same system. The short version: it’s a standalone Gitaly fork that adds a graft config section, a new CLI, a new SDK in Go, and a storage core that is off by default but can be turned on.
The compatibility story is the load-bearing one. The README says it twice in different places: “MIT licensed. Vendor neutral: the server never calls a language model, and every AI feature works with any provider, or none.” and “Every repository stays a normal Git repository. Anything that speaks upstream Gitaly RPCs keeps working.” That’s the bet — that you can implement the Scion design without copying Scion, because Scion’s design is mostly abandoning git-shaped abstractions in favor of server-shaped ones, and a Gitaly fork is the right substrate to do that on.
The architecture document is the first place I went after the README. It’s 15KB and it has the best kind of diagram — a single ASCII panel with a labeled arrow for every service, plus a mapping table that puts each Scion idea next to the Graft component that implements it. A few of the mappings tell you everything you need to know about the design:
- Always-online clients that fetch exactly what they need →
ObjectServiceserves single objects and sparse trees;graft cloneandgraft sparsematerialize only the paths you ask for. - Landing without a merge queue →
UserLandrebases a change onto the current tip and lands it with a compare-and-swap; concurrent lands on one branch are batched into a single reference update. - Storage core: a database and object storage, stateless servers → Each change is a changeset in a write-ahead log in SQLite or PostgreSQL, with a compare-and-swap per reference; packs live in object storage (file, S3, GCS, Azure). Server nodes are caches that any node can rebuild, so you add nodes to scale.
The third one is the part I keep coming back to. “Server nodes are caches that any node can rebuild” — that’s the property the whole design hangs on. If the only state in a server is a database row and a pack in object storage, then any server can answer any request, and a node failure costs you nothing but a cache miss. It’s the same property Praefect was supposed to give Gitaly for GitLab.com, and the same property that took a decade of operational pain to actually get working. feder is short-circuiting that decade by going straight to the database-plus-object-storage model on day one.
The land-batching story, and why the 26s p99 is the headline
Of the design docs, LAND-BATCHING.md is the one I’d point an Anthropic engineer at first. It’s the document that has the actual benchmark numbers — and the numbers tell you why the rest of the architecture exists.
The setup is in BENCH.md: graft-bench is a CLI that runs N agents landing changes on one branch, with a deterministic change plan seeded by --seed, an optional --conflict-rate that makes a fraction of the changes also rewrite a shared file, and a --branches N that spreads the agents round-robin over N branches. It reports attempts, attempts-per-land, batch size histogram, p50/p95/p99 latency, and failure classes. It is, in other words, exactly the workload that makes Scion’s design worth building — except it’s open source and runs on your laptop.
The numbers in the doc are the most interesting thing in the project. The phase 2 benchmark, twenty agents, one branch, no batching: “a change needed about 10 attempts, p99 latency was 26 s, and changes failed at max_attempts = 20.” Ten CAS attempts on average per landed change. Twenty-six seconds at the tail. Almost ten percent of changes giving up. That is the cost of running twenty agents on a single branch without batching, and it’s the cost the rest of the design exists to bring down.
The fix is in the next section. A UserLand request lands through its lane only if standalone mode is on, batching isn’t disabled, the request isn’t on an MVCC snapshot, the request has no own git object directory, and the branch exists. Otherwise it falls through to the unbatched loop, which retries the CAS up to its own max_attempts. When batching is on, requests enter a per-(storage, relative-path, branch) lane in FIFO order. The lane runs one batch at a time. A batch forms when window has passed since the first queued request, or as soon as max_size requests are queued, whichever comes first. “A batch that waited already starts at once, so with window = '0s' a batch is whatever queued while the previous batch ran.” The default window is the one that makes batching actually matter, and the doc gives you the knob to tune it.
What gets interesting is what doesn’t get batched. A request that creates a branch lands alone. A request on a repository reference backend (MVCC snapshot) lands alone. A request with its own object directory lands alone, “because the batch quarantine cannot see the objects that only its directories hold.” The first time I read this I thought it was a footnote; the second time I realized it was the load-bearing constraint. Batching only works if the server is the one holding all the new objects. The moment you let an agent upload its own pack out of band, you break the assumption that lets the batch quarantine see what the new tip looks like.
There’s a digression in the doc that I want to call out because it is the most honest thing I’ve read about a real production system this month. The lane’s per-request context carries the values of the first request of the batch — the timeout, the user identity, the actor. The cancellation state is not propagated. “A request cancelled while its batch runs still lands. Its caller gets Canceled at once, and the outcome is discarded.” This is the opposite of what most queue systems do, and it’s correct: if you cancel one request, you don’t want the other nine in the batch to fail with a “context canceled” error, and you don’t want the first cancelled request to leave the others in a state where they have to roll back. The trade-off the doc is making — “the caller’s Cancel is honored, but the work still happens” — is the kind of decision that only makes sense in a system where the per-request identity comes from the token, not the context, and the batch is the unit of work, not the request.
The conflict resolver, and what “vendor neutral” actually means
The other design doc that does a lot of work is RESOLVE.md. The story it tells: a UserLand call can land with resolve_conflicts = true. When a change can’t be rebased onto the tip cleanly, the server asks a resolver for the merged content of the conflicting files. The resolver is “a separate program or HTTP service that the operator chooses. The Graft server never talks to a language model and never imports a vendor SDK. AI is disabled by default.”
The resolver is configured in [graft.land.resolver] with either a command or a url. If it’s a command, the server runs it and pipes the request on stdin. If it’s a URL, the server posts to it with a bearer token from token_file. Either way, the server is not in the trust boundary of the language model call. The README makes this same point again, in italics: the server never calls a language model. The reason this matters is the same reason it matters in the MCP conversation we’ve been having all year: a tool server that doesn’t import a vendor SDK is a tool server that can be deployed in regulated environments, on air-gapped networks, behind a customer-controlled egress proxy, in a country where one vendor’s API isn’t reachable. The moment a server imports an OpenAI SDK, you’ve cut your addressable market to whatever jurisdictions OpenAI will serve you from. feder’s choice to keep the LLM call outside the server is the choice that makes the project usable in the places Anthropic’s Scion can’t be used because Anthropic won’t be there.
The default graft-resolve binary is in a separate module, tools/graft-agents, and runs deterministic strategies out of the box. The optional LLM strategy is documented in a separate section, with the same vendor-neutral framing — it talks to a resolver, not to OpenAI. The design’s failure mode is also documented: “A conflict in a denied path, or in a path that is not allowed, is not sent to the resolver.” The paths_allow / paths_deny globs use Go’s path.Match semantics, with one twist that took me two readings to notice: “* never crosses a /. So *.lock denies go.lock but not sub/go.lock, and *.env does not deny a/.env.” This is the same kind of footgun that shows up in .gitignore semantics, and feder’s doc is being explicit about it because the alternative is agents that resolve conflicts in files they shouldn’t be allowed to touch.
A digression: the Mononoke comment thread
While I was reading the post I went looking for the HN thread on the Redesigning article, and found two of them. The first hit 890 points; the second hit 253 points and has the title “More on Anthropic’s Scion ripping off Mononoke.” The Anthropic post cites prior art — “Google’s Piper and Meta’s Sapling” — and the footnote on Sapling is a link to Mononoke, which is Meta’s server for Sapling. The HN thread, and the threads underneath it, are mostly Meta engineers pointing out that Scion’s changeset-as-write-ahead-log data structure is what Mononoke has been doing for years.
This is the kind of conversation that gets loud and rarely gets resolved, because nobody outside Anthropic knows what Scion actually looks like, and the Mononoke team has every reason to point at the prior art. I don’t have anything to add to the lineage question, but I will note that the lineage question matters for the open-source project: git-ai’s README also cites Piper and Sapling in the docs, and the storage core doc opens with “the binding design is PLAN6.md” — a 72KB design document — and the design document cites both. The OSS version has the citations in the right places. Whether the original did or didn’t is a question for Anthropic and Meta, and I have nothing to say about it that the two of them haven’t.
What this means for agentic infra outside Anthropic
The thing I keep thinking about is that 30,000 merges per day number, and what it implies for everyone who isn’t Anthropic. feder’s bench setup is twenty agents on one branch; Anthropic’s production is presumably orders of magnitude past that on hundreds of branches. But the shape of the problem is the same. The shape is: you have N autonomous writers, all trying to land on overlapping refs, and the bottleneck isn’t the writes, it’s the serialization layer that the VCS forces on them.
For most teams running coding agents today, the answer is “we run them sequentially, or we use a merge queue, or we let them pile up on feature branches and rebase manually.” Those answers work at single-digit agents per repo. They start to fail when you have dozens of agents, all working on the same monorepo, all wanting to land in seconds. The Mononoke / Scion / Graft family of designs is the answer that scales — server-centric, compare-and-swap per ref, batched concurrent lands, derived data computed once per commit and cached forever. It’s not the only answer, and it’s not free (the storage core needs a database and object storage, the conflict resolver needs to be configured, the agent tokens need to be issued and rotated), but it’s the answer that has actually been demonstrated at 30,000 merges a day by someone.
What feder-cr/git-ai does is make the answer runnable. You can clone the repo, run make build, run examples/graft/quickstart.sh, and you have a server, a cache daemon, two agents, and a land, all in a temporary directory. The build compiles a bundled Git, which is how the fork stays drop-in compatible with normal Git repositories. The README is honest about what it isn’t — “Not a Scion implementation. Graft adopts ideas from Anthropic’s article … Internal details of Scion are not public and are not reproduced.” — and the limitations doc is longer than most READMEs, listing twelve things the project doesn’t do, including the obvious ones (no web UI, no issues, no merge request workflow) and the subtle ones (no garbage collection of packs in the storage core, no checkpoint compaction, S3/GCS/Azure buckets not tested against real services yet).
What I’m watching for, now that I’ve read the project, is whether the storage core’s compare-and-swap on a per-reference row actually works at scale the way the design doc says it does. The phase 2 benchmark is a useful number — 26s p99 with 20 agents on one branch without batching — and the phase 3 numbers with batching will be the ones to look for in the next release. The graft-bench tool runs locally and the JSON output is structured for diffing, so the next person who runs the project can publish their own numbers. I’ll be the first to admit I haven’t run the bench yet; I’ve only read the doc that describes it. But the shape of the data the bench produces is the right shape, and the project is at v0.1.0 with the design docs to back it up. That’s a starting point worth shipping.
References and where to dig further
feder-cr/git-aion GitHub — the project, v0.1.0 released 2026-10-15- Redesigning source control at Anthropic — the original Scion post, October 13 2026
- HN: Redesigning source control at Anthropic (890 points, 1010 comments) and More on Anthropic’s Scion ripping off Mononoke (253 points, 89 comments)
doc/graft/ARCHITECTURE.mdanddoc/graft/STORAGE.md— the two design docs I’d start withdoc/graft/LAND-BATCHING.mdanddoc/graft/BENCH.md— the 26s p99 number and thegraft-benchtooldoc/graft/RESOLVE.md— the conflict resolver design- Google’s Piper and Meta’s Sapling / Mononoke — the cited prior art
- GitLab Gitaly — the MIT-licensed substrate this fork is built on
Comments
Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.