Have you ever had to fix something you could not switch off? Not pause it, not take it offline, just repair it while it kept running?
That is the job Anthropic just described. On November 25, 2026, the company published how it moved its Messages API, the road every Claude request travels down, from Python to Rust. The new version uses about 70% less CPU per request and cuts the median time to first token by about 20%. The switch happened in September; the story is how they checked the work.
The road got too busy
Anthropic built the Messages API in 2023, in Python. At first it was simple. One engineer called it "basically a request forwarder": a request came in, went to the model, and the answer came back.
Then traffic grew roughly 1,800 times between early 2024 and fall 2026, and Python's overhead started to add up.
The team tried the careful option first: rewrite just the output parser in Rust and call it from Python. That cut CPU use by about 8% to 10%, but each token now crossed between the two languages three times, and the extra complexity was not worth the small win. In 2024, when someone suggested moving to Go or Rust, a colleague settled it with: "We are not rewriting the API in go or rust!"
Claude wrote the new road
What changed the maths was Claude itself. By May 2026 it was writing more than 80% of the code Anthropic merged, and it wrote a first version of the API's core request path in about a week.
So writing the new code was no longer the hard part. Checking it was. That flips the usual story about AI coding on its head: the bottleneck moved from writing to verifying.
Photo by Gabriel Heinzer on Unsplash
The tests said yes. Production said no.
The team had about 700 integration tests, and the Rust version passed about 98% of them by April. That sounds done. But on real production traffic, only about a quarter of inputs matched.
The tests were the problem. They were coupled to the Python code, so they changed with it, and an audit found more than 100 weakened assertions, where a test had been loosened until wrong code could pass. They were also incomplete: no suite could cover every combination of dozens of features.
So Anthropic turned production itself into the checker. They ran real requests through both versions side by side, a technique called shadowing, and compared every step. They never read the actual requests, so privacy held; instead they recorded the shape of each difference and grouped matching ones by fingerprint, so one bug left one trail even if it showed up in thousands of requests. Agents then worked those trails in three loops: a fast inner loop for testing fixes in a sandbox, a slower outer loop that checked them against real traffic, and a memory loop that saved every lesson.
Humans stayed in the loop at the joins. In mid-May, an agent fixed a missing web search description with a shortcut, copying the text into files the Rust code could read. The prompts matched and the verifier was happy, but an engineer still turned it down: the real fix was to have Rust call the service properly. A verifier can tell you the outputs match. It cannot tell you the fix is good enough to ship.
A second ship, built beside the first
Anthropic ends the post with the Ship of Theseus: instead of replacing planks while the ship sails, Claude made it possible to build a second, identical ship beside the first and keep checking that the two behaved the same. Once they trusted it, they moved the passengers over a few at a time.
The numbers are the payoff, not the point: about 70% less CPU per request, more than 80% less memory, and a median time to first token about 20% faster, with no downtime and no feature freeze. Anthropic is careful about the fine print: the CPU figure comes from one region, and these are its own measurements.
The job that is left
If writing code keeps getting cheaper, the work that remains is building the checks: the test that fails on old code and passes on new, the fingerprint that tells one bug from another, the rule that a shortcut is not a fix.
Anthropic's own lesson says it plainly: verification is the new bottleneck, and the teams that get good at it will be the ones rebuilding the road while the traffic keeps moving.
So the question I am left with is simple: the next time an AI writes a big chunk of your code, what is your checker?
Top comments (0)