AI wrote the code in a week. Verifying it took 5 months
Anthropic moved its API from Python to Rust with Claude: about 70% less CPU. But the real lesson is elsewhere: verification is now the bottleneck.
Note. No affiliate links here. Every number comes from Anthropic's official post, published on November 25, 2026. More practical resources are in my Tech section. Source at the bottom.
What happened
Anthropic moved its Messages API from Python to Rust. It's the main way into Claude: customers go through it, and so do Anthropic's own apps, Claude Code included.
Between early 2024 and fall 2026, API traffic grew roughly 1,800x. The original Python service was never built for that kind of volume, and Python added overhead at every step.
The striking part: Claude wrote a first version of the core request path in about a week. Since September 2026, public traffic has been running on Rust, without taking the service offline or freezing feature development.
The results
- about 70% less CPU per request;
- more than 80% less memory per request;
- about 20% faster median time to first token, meaning how long it takes for the answer to start appearing, measured on customers' Claude Code requests.
Anthropic notes that the CPU figure covers a single region. The memory figure covers all of production, and time to first token was measured over a shorter period.
The real story: writing was easy, verifying wasn't
In April, the Rust version passed about 98% of its tests. On paper, it was almost done. But on production traffic, only about one input in four matched what the Python version produced.
It took until August for that match rate to reach 99.6%.
Anthropic's conclusion: it's no longer generating code, but verifying it, that has become the bottleneck. In other words, when writing code costs almost nothing, verifying is the real work.
👉 What you can do: when you replace existing code, compare the results of the old and new versions on real data, not just on your tests.
What the humans did
At Anthropic, Claude was already writing more than 80% of the merged code by May 2026. So on this project, the humans' work was somewhere else. They:
- defined what "correct" meant;
- decided whether a difference was a bug or an intended change;
- reviewed and approved fixes before deployment;
- turned down the shortcuts the agents suggested;
- turned repeated corrections into rules, tests and lints (automated checks for style and common mistakes).
What I take from it for us women who switched careers into dev
In my post on Octoverse 2026, I said that reviewing was becoming the heart of the job. Anthropic confirms it, and not on a toy project: on a critical production system, the one every request to Claude goes through.
It's also how I work with Claude Code, one of the few AI agents I actually use: it proposes, I review, I edit, I approve.
👉 What you can do: learn to write tests that actually prove something. When Anthropic audited the tests ported from Python to Rust, it found more than 100 weakened assertions. A weakened assertion is, for example, a test that only checks that a response exists instead of checking what's in it. A passing test proves nothing if it checks nothing.
The bottom line
Agents write fast, and more and more. Your job is to define what's right, then verify it.
My own summary, based on Anthropic's post about moving its API to Rust.
AI writes. You decide what's right. That role isn't going away.
And if you're still wondering whether it's too late to start when AI already codes, I answer that in Becoming a developer at 44 in 2026, when AI already codes.
Frequently asked questions
Why did Anthropic move its API from Python to Rust?
Because traffic to its Messages API grew roughly 1,800x between early 2024 and fall 2026, far beyond what the original Python service was built for. The Rust version uses about 70% less CPU and more than 80% less memory per request.
Did Claude write the Rust version on its own?
No. Claude wrote a first version of the core request path in about a week. Then came months of verification: humans defined what "correct" meant, judged every difference with Python and approved fixes before deployment.
What does "verification is the bottleneck" mean?
It means the slow, expensive part is no longer writing the code, but proving it does the right thing. In April, the Rust version passed 98% of its tests, yet only about one input in four matched the Python version on production traffic.
Isn't a passing test enough?
No. A test only proves something if it checks something specific. When Anthropic audited the tests ported from Python to Rust, it found more than 100 weakened assertions.
Sources
- Anthropic — Migrating our Messages API to Rust (official post, November 25, 2026): anthropic.com/research/migrating-api-to-rust
Written on November 27, 2026. These figures come from Anthropic and describe its own system: check the source before making any big decision.
What about you: when an AI tells you all the tests pass, do you look at what those tests actually check? You'll find more guides and field reports in the Tech section.