ToolNavs Find Useful AI Tools
Submit Sign in
Back to AI information
Anthropic Migrated Claude's Core API from Python to Rust: CPU per Request Down 70%, Verification Is the Bottleneck

Anthropic Migrated Claude's Core API from Python to Rust: CPU per Request Down 70%, Verification Is the Bottleneck

AI information • Admin • • 2 views

On November 25, 2026, Anthropic published a detailed account of migrating its Messages API from Python to Rust, and platform engineering lead Katelyn Lesse discussed the details in an interview the same day. The backdrop was surging traffic: from early 2024 to fall 2026, Messages API traffic grew roughly 1,800-fold. After the migration, CPU per request fell by about 70% and median time to first token dropped by about 20%, with no downtime and no freeze on feature development. Anthropic's conclusion is blunt: writing code is no longer the bottleneck — proving that new code behaves like the old code is.

Verification Is Harder Than Writing Code

The migration itself was not slow: Claude wrote a first version of the core request path in about a week, and by May 2026, more than 80% of the code Anthropic merged came from Claude. The hard part was verification. Instead of reviewing code line by line, the team turned the production system itself into a verifier: both versions ran the same model output, each stage was compared step by step, and differences were grouped by "fingerprints" based on where they appeared and how large they were. In April, the Rust version already passed 98% of tests, yet on production traffic only about a quarter of inputs matched exactly — the edge cases the tests never covered were all hiding in real requests. Three verification loops then took over: an inner loop had agents reproduce differences in a sandbox and propose fixes, an outer loop validated fixes against shadowed production traffic, and a memory loop recorded lessons from human rejections as rules so the same mistake would not recur.

The API Got Faster, and So Did the Way Software Gets Built

For developers, the most direct impact is a faster, more reliable API: a quicker first token means shorter waits in real-time products like Claude Code, and lower CPU usage leaves more headroom to scale. Anthropic's internal way of building software is changing too, as seen in how the Claude Code team reviews code: code review starts with a resident Claude classifier triaging pull requests, and low-risk mechanical changes can be merged directly; API on-call starts with an agent deciding whether an alert is real; new hires ask Claude directly; traditional coding interviews have been dropped in favor of assessments done together with a coding agent. But this approach has limits: it depends on a verifier that gives a clear signal, and not every system has production traffic ready to compare against; a verifier only cares whether outputs match, not whether a fix is sound — once, an agent proposed copying a web-search tool description straight into a file to make prompts match, and an engineer rejected it on the spot, because that was working around the problem. Human judgment remains the final gate.

Anthropic says migrating a production system with Claude — without downtime or a feature freeze — is now a viable path, and the next step is to extend this verification approach to more systems. For peers, the question has changed: when an agent can write a core path in a week, competitiveness depends on who can build a trustworthy verification signal fastest. Whether this method will become a public tool, Anthropic has not said.

Recommended Tools

More