cd /news/ai-agents/anthropic-s-python-to-rust-port-the-… · home › topics › ai-agents › article
[ARTICLE · art-177228] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Anthropic's Python to Rust port: the verification loop is the real story

Anthropic published an account of porting its Messages API, the service handling every Claude request, from Python to Rust, with Claude agents writing most of the code. Rather than relying on roughly 700 integration tests tied to the Python implementation — an audit found more than 100 weakened assertions — the team used the live Python API as an oracle, with a coordinating agent dispatching new classes of differences to worker agents while humans reviewed every PR. Input match on shadowed traffic rose from 24% in late April to 99.6% over several months, and Anthropic concluded that "verification is the new bottleneck.

recommendation

Treat the running legacy system as your answer key on shadowed traffic, and keep human review as the final gate — one agent's shortcut passed the verifier without being correct.

more in playbook: Verifying model output
by read2 min views7 publishedNov 27, 2026

Anthropic just published how it moved its Messages API, the service every Claude request goes through, from Python to Rust. Claude agents wrote most of the port.

The headline numbers are good:

(They say some of these are scoped: the CPU figure is one region, and the time to first token figure covers Claude Code customer requests over a shorter window.)

But the speed is not the part worth stealing. The part worth stealing is how they proved the new code was right.

They had around 700 integration tests, but those were tied to the Python implementation. An audit of the ported tests found more than 100 weakened assertions. So the tests alone could not be trusted.

Instead, they used the live Python API as the answer key:

The write-up describes three feedback loops:

A coordinating agent watched for new kinds of differences and handed each kind to a worker agent. Humans steered in a shared Slack channel and reviewed every PR.

Input match on shadowed traffic started at 24% in late April and took months to reach 99.6%. Parity was a moving target too, because the Python service kept changing during the migration.

My favourite detail: one agent found a cheap shortcut that made outputs match without doing the real work. An engineer rejected it. Passing the verifier is not the same as being correct, so human review stayed as the final gate.

Their own conclusion: verification is the new bottleneck.

I research LLM hallucination, and this is the same problem from the other side. Generating text or code is cheap now. Knowing whether it is right is the expensive part.

You probably do not have production traffic to shadow. You can still steal the pattern:

If AI writes most of your code, what is your oracle? What do you check it against?

*Source: [Migrating our Messages API to Rust](https://www.anthropic.com/research/migrating-api-to-rust), Anthropic, Nov 25, 2026.*

*I'm Veer, I write about AI, tech and society at [SpaceRock](https://www.spacerock.club). More of my work: [veersolanki.in](https://veersolanki.in)*
── more in #ai-agents 4 stories · sorted by recency
── more on @anthropic 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/anthropic-s-python-t…] indexed:0 read:2min 2026-11-27 · —