2026-11-26 15:39 UTC

Anthropic reports moving its monorepo to in-house source control as merge volume surged

state: significantheat: mediumuncertainty: mediumrelevance: highanthropic-engineering source-control agent-infrastructure developer-toolsAnthropic

What is this?

Anthropic’s October 13, 2026 engineering post describes Scion, an internal source-control system built for its large monorepo and agent-assisted development. The post says daily merged changes grew from about 2,500 in May to over 30,000 in September, making source control a development bottleneck; Anthropic says it migrated to the in-house system in five months. The linked article could not be retrieved in the supplied evidence, so details beyond the official search snippet are supported mainly by subsequent reporting and discussion. Scion is described by secondary sources as closed-source; claims that it is a broadly applicable Git replacement are not established. Newer first-party evidence from November 25 concerns a separate project: Anthropic says Claude-assisted work helped migrate its Messages API from Python to Rust, with production shadowing, human review and other verification loops. That post does not establish a direct connection to Scion.

Why it matters

This is a consequential example of AI-assisted software changing not just how code is written, but the infrastructure around producing and integrating it. If agent-driven change volume keeps rising, repositories, CI and review workflows may need to be redesigned—and the benefits may accrue first to labs with the engineering capacity and model access to build bespoke systems. The reported merge counts show throughput, not code quality or delivered value; Anthropic’s newer API-migration account underscores that verification and human judgment remain important constraints.

Current assessment

Anthropic’s first-party October post, as summarized in the supplied search result, says its merges per day grew more than tenfold, source control became its biggest development bottleneck, and it migrated to an in-house VCS in five months. Secondary coverage identifies the system as Scion and reports more than 30,000 daily merged changes in September versus about 2,500 in May. DevOps.com’s search snippet attributes to the system 200-times-lower CPU and memory use than the previous Git-mirroring infrastructure, checkout times reduced from minutes to seconds, and 25% of CI CPU capacity freed; these are secondary-reported performance claims, not independently verified here. Pragmatic Engineer says Scion is closed-source and that Anthropic shared high-level design principles and data structures, not code. The source post itself was unavailable in the supplied fetch, and social and forum discussion raises unresolved questions about code quality, review burden, centralization, monorepo strategy and whether merge volume measures useful output. These objections are discussion, not demonstrated failures. Material newer evidence: Anthropic’s November 25 first-party post on migrating its Messages API to Rust says Claude wrote an initial core-path version in about a week, while the hard problem was verifying parity with a changing live service. Anthropic describes privacy-preserving production shadowing, fast sandbox checks, human review gates and recorded agent lessons; it reports about 70% less CPU per request and about 20% lower median time to first token after the migration. Those are company-reported outcomes from a separate project, not evidence about Scion’s performance. Together the accounts support tracking a broader shift: as code generation gets cheaper, verification, integration and infrastructure can become limiting factors. The available evidence does not show that Scion is available to other organizations or that agent-scale VCS redesign is generally necessary.

Measured heat

now 0 pts/hpeak 4 pts/hcomments 0/hpeers p34momentum: steady3 platformsage 1082h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-25 19:33⭐ origin directly observedMigrating Our Messages API to Rust
WalterSobchak on hacker news
—
10-12 13:00first on blog (echo) · published · +-1062.5hAnthropic details its redesign of source control infrastructure to support agent-assisted development at scale.
Anthropic Engineering
—
10-13 15:49first on hacker news · published · +-1035.7hRedesigning Source Control at Anthropic
Philpax
—
10-13 22:47first on r/ClaudeAI · published · +-1028.8hRedesigning source control at Anthropic
Key-Cranberry6537
—
10-14 04:18first on r/artificial · published · +-1023.2hAnthropic says coding is no longer the bottleneck. Its monorepo hit 30,000+ merges in a day.
nian2326076
—
10-13 15:49amplified on hacker news 👑hn.story.50073633
Philpax
peak 898 · 1010 comments · 64% of case engagement
10-13 21:46amplified on hacker newshn.story.50079329
gafoor
peak 7 · 0 comments · 0% of case engagement
10-13 22:47amplified on r/ClaudeAIreddit.post.1x5b5ek
Key-Cranberry6537
peak 887 · 170 comments · 20% of case engagement
10-14 04:18amplified on r/artificialreddit.post.1x5htw8
nian2326076
peak 408 · 215 comments · 12% of case engagement
10-14 10:14amplified on hacker newshn.story.50085180
vc14
peak 2 · 1 comments · 0% of case engagement
10-14 12:11amplified on hacker newshn.story.50086422
itvision
peak 4 · 0 comments · 0% of case engagement
10 more amplifiers in ainews.case_chain
10-13 16:21our radar first saw it · +-1035.2hdiscovery anchor: hn.story.50073633—
10-13 22:26reached heat=high · +-1029.1h · via ledger——

Evidence (17) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnRedesigning Source Control at AnthropicPhilpax8981010
🟧 echo.blogAnthropic details its redesign of source control infrastructure to support agent-assisted development at scale.Anthropic Engineering——
🟧 hnOpen source Scion – Anthropic's Git alternative in open sourcegafoor70
🟠 redditRedesigning source control at Anthropic
ClaudeAI
Key-Cranberry6537882169
🟠 redditAnthropic says coding is no longer the bottleneck. Its monorepo hit 30,000+ merges in a day.
artificial
nian2326076408215
🟧 hnShow HN: Graft – open-source source control for agent-scale monoreposvc1421
🟧 hnAnthropic reinvents source control as Claude floods the world with codeitvision40
🟧 hnAnthropic Merges 30k Changes a Day, and It Showsvincent_s20
🟧 hnRedesigning Source Control at Anthropichn9zmdcaou3141
🟧 hnShow HN: Scalable source control in Rust, inspired by Anthropic's Scionadrianchifor10
🟧 hnAnthropic redesigned source-control for AI agentsAelthorim52
🟠 redditWhy Anthropic Had to Abandon Git for AI Agents
ClaudeAI
Capatain_CV04
🟧 hnAnthropic wrote about replacing Git for their monoreponvmdbljstm20
🟧 hnAnthropic builds its own source control systemnico21
🟧 hnAnthropic replaced Git with Scion after scaling to 30k daily commitsusmanhussainbas10
🟧 hnAnthropic Threw Away Gitejboy22
🟧 hn ⭐Migrating Our Messages API to Rust
Retrieved article excerpt

Open article · Retrieved 2026-11-25T20:23:16.809615+00:00

### 01Why migrate?

# Migrating our Messages API to Rust

Migrating our Messages API to Rust

Published
:   Nov 25, 2026

Team
:   [Engineering](https://www.anthropic.com/engineering)

Many problems have a *generator–verifier* gap: it’s often far easier to verify that a solution is correct than to come up with one. Sudoku is a classic example. It’s simple to check the solution (just count the numbers in each row, column, and box), but finding that solution can take a long time. Many ambitious Claude projects have relied on this gap: formalizing [proofs](https://alpo.ge/remark.pdf) in mathematics or [migrating](https://bun.com/blog/bun-in-rust) large, well-tested codebases are tasks Claude can take on as long as it has a reliable way to verify its work.

But as Claude has become more capable, it’s begun to take on projects in live systems, where generating the work is easier than verifying it. In these systems, users often rely on edge cases and quirks that [fall outside the test suite](https://github.blog/2016-02-03-scientist/), and it’s hard to write [a definition of “correct” that covers everything](https://www.anthropic.com/research/formal-verification). Without a reliable way to check Claude’s work, the migration of a live system is hard to trust—however quickly Claude can generate the code for it.

We ran into this problem when we migrated our [Messages API](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) from Python to Rust. This API is the primary way that customers—as well as our own apps, like Claude Code and Cowork—reach Claude. From early 2024 to fall 2026, API traffic grew roughly 1,800 times. Rust would allow us to use far less CPU per request. Claude wrote a first version of the API’s core request path in about a week. But building trust in the migration required us to find a way to verify that our Rust API was at parity with our production API. This proved hard for several reasons, including that the Python API continued changing throughout the migration, so parity was a moving target; Claude can reply nondeterministically to the same request, so a difference between two outputs didn’t necessarily mean a bug; and we couldn't read customer requests, so we weren't able to easily see where the two versions diverged.

In this post, we share how we turned the production Messages API itself into a verifier—and how that helped us test the new Rust version on production traffic, find where it differed, and automatically dispatch agents to fix those differences. This allowed us to ship an API on Rust that uses about 70% less CPU per request and cuts median time to first token by about 20% without ever taking the service offline or freezing feature development.

## Why migrate?

We built the Messages API in 2023 and wrote it in Python, which was widely used internally for much of our research code. At first, it was simple. The Messages API passed requests to the model and sent back what the model wrote. (One engineer at the time called it “basically a request forwarder.”) But as the Messages API became more capable and deeply integrated with our codebases, it also developed shared dependencies with Python libraries that were owned by our research and inference teams, which made it hard to move. If we ever wanted to move to another language, it would mean building logging, metrics, and tools all over again.

This calculus gradually began to change. By late 2025, every Messages API request had to be validated, converted into the prompt, tokenized, and screened by our safety classifiers. As each reply arrived, the stream of tokens had to be sorted into text, thinking, and tool calls, and Python added overhead to every one of those steps each time it created an object, freed memory, or handed its work to the next task. Traffic eventually grew far beyond what the initial Python service was built for (Figure 1), and we quickly needed to find a way to make the service much more efficient.

Bar chart of API requests per day by month, from January 2024 to October 2026. Bars are barely visible through 2024, rise gradually in 2025, and climb steeply in 2026 to their highest point in October.

The monthly average of API requests per day on our own platform, including our own use.

### Incremental or all at once?

Full rewrites of large production systems are often approached cautiously, for at least two reasons. First, there is no guarantee that test suites cover 100% of production code behavior, and rewriting it is risky. Second, the sheer effort required often makes such work intractable. (In 2024, after one of our engineers suggested migrating to Go or Rust, another temporarily settled the question: “*We are not rewriting the API in go or rust!*”)

The standard advice if you’re looking for performance gains is thus to rewrite only the parts that are slowing the system down, so that’s where we started. In Rust, we rewrote the code that parses a model’s output and called it from Python. This reduced the API’s CPU usage by about 8% to 10%. However, incremental solutions often incur added complexity, and it’s important to make sure that incremental improvements justify those costs. In our case, the gains didn’t justify the added complexity. Each token now crossed between Python and Rust three times (Figure 2), creating new sources of overhead.

Two diagrams of the request path. In the partial rewrite (March 2026), Rust receives and parses tokens while Python does the other steps, so each token crosses between languages three times. In the full rewrite (September 2026), Python hands over the request and Rust does every other step around the model.

After the incremental rewrite, each token of a reply crossed between Python and Rust three times.

As Claude became increasingly capable, we began to question whether the usual reasons to avoid a full migration still held. The effort required to undertake the project was dropping fast: by May 2026, Claude was writing [more than 80% of the code Anthropic merged](https://www.anthropic.com/institute/recursive-self-improvement). We wondered if Claude could now help us write code that would empirically capture every behavior and fix in the production system. But the question became: how could we verify that the behavior of our migration was correct? Verification, not generation, had become the bottleneck.

## How we verified the migration

### General approaches

To verify the migration, we first needed to define what “correct” meant. You can do this in a few ways (Figure 3). If you’re lucky, you can simply write a rule. A [theorem in mathematics](https://claude.dev/blog/safely-scaling-multi-agent-teams-with-fable-5-2/) is a precise statement, and a proof assistant (like Lean) can check each step of a proof against a fixed set of rules. Other times—and more frequently in software engineering—you define “correct” with a set of examples, like tests. For instance, when [Bun moved](https://bun.com/blog/bun-in-rust) from Zig to Rust, its test suite was written in TypeScript, so the same tests could judge both versions. In our case, neither approach was sufficient, so we used the existing system as an oracle to test parity during the migration. In this case, our existing system (the Messages API) kept changing. We were releasing new models and shipping new features regularly, which made the definition of “correct” a moving target.

Three rows, each sending a signal to a Claude agent. A rule, like Lean for proofs, is all written down and flags a step that doesn’t follow. Examples, like Bun’s test suite, are partly written down and flag a failing test. An existing system, like our Python service, has no answers written down, so you build a checker that flags where the two differ.

Three common sources of “correctness.”

### Tests

Tests were the easiest place for us to start, since we already had an existing set of about 700 integration tests. However, two problems limited our ability to trust them to verify the correctness of a migration as high stakes as this (Figure 4).

**The tests were coupled to the Python implementation.** An integration test sends a request, then checks the reply and what was sent to other services. Our tests ran the Python API inside the test’s process and mocked services, like billing and rate limiting, in Python’s memory. The tests had to change along with the code, and Claude helped with both. Now, a “pass” could mean that the code was right, or that the test had been changed in a way that let wrong code through. We saw this happen: when we audited the ported tests, we found more than 100 weakened assertions.

**The tests were incomplete.** The Messages API has dozens of features, and there are far too many configurations to test them exhaustively. Just 20 binary options make over a million combinations—that translates to 12 days of tests at a second each, for one model, before we even vary the prompts inside them. In practice, engineers test a subset that tries to approximate production, but that process inevitably misses cases. Some projects, like Bun, have an independent suite that’s extensive enough to judge a rewrite. Many production services don’t; what counts as correct depends as much on how they behave as on what’s in their tests or documentation.

Two panels. Left, tests coupled to the legacy implementation: a Python test is ported to a Rust test that Claude also wrote, which checks a smaller area and misses differences. Right, incomplete tests: a few small clusters of checked cases in a large grid of feature combinations, with many missed differences outside them.

A ported test may check less than the original (dashed), and tests cover only the combinations someone thought of.

### Detecting parity with production

Production data is sometimes “[the only true test](https://github.blog/2016-02-03-scientist/)” that new code behaves like the old code. Running requests through old and new code and comparing the results is often called *shadowing*. To understand what we needed to compare, it helps to walk through what happens to a single request on the Messages API (Figure 5). The API validates each request, converts it into a prompt a model can read (the prompt for inference), tokenizes it, and runs it through safety classifiers. A model then writes a reply, one token at a time. On the output side, the API sorts those tokens into text, thinking, and tool calls, streams them to the customer, and counts usage for limits and billing.

Flow diagram of a request. The input path accepts or rejects it, resolves settings, and builds the prompt; about a quarter of inputs matched at first. Claude runs once. The output path sorts the reply, streams it, and counts usage. Examples of differences include a rejected field, a 1M limit read as 200K, a missing tool description, stripped newlines, and missing usage fields. The risk designed against is a copy counted twice.

The Messages API’s input and output paths. Filled dots are examples of differences we found between Python and Rust. The hollow dot is a risk we had to prevent.

The migration covered both the input and output paths. Some differences were obvious, such as when the Rust API rejected a request that Python had accepted. But many were subtle. For instance, if the Rust API left out part of a prompt, the request would still succeed and the model would still answer, though sometimes with minor differences.

Our Rust API passed about 98% of its tests in April, yet only about a quarter of inputs matched on production traffic (Figure 6). The gap came partly from cases in production traffic that our tests didn’t cover. For example, when Python writes JSON tool calls, it escapes certain characters (e.g., an emoji) by replacing them with text codes. Rust wrote those characters as is, so the two prompts differed by a few bytes. Production also weighted bugs differently. In a test suite, each case counts once, but in live traffic, a bug will show
WalterSobchak268

Interpretation history

Decision trace