AI EXPLORERS HUB
Image: Anthropic

Agents ·

Anthropic uses Claude agents to move its Messages API to Rust

In a Nov. 25 research post, Anthropic says it migrated the Messages API, the main way customers and its own apps such as Claude Code reach Claude, from Python to Rust. API traffic grew roughly 1,800 times from early 2024 to fall 2026, and Rust uses far less CPU per request. Claude wrote a first version of the core request path in about a week, but proving parity was the hard part: the Rust API passed about 98% of its tests in April, yet only about a quarter of inputs matched on production traffic. Anthropic turned the production API into a verifier by shadowing live requests through both versions, fingerprinting differences and dispatching agents to reproduce and fix each one in a sandbox. A fix could reach the outer loop only after PR review by engineers. Anthropic reports about 70% less CPU per request and about 20% lower median time to first token, without taking the service offline or freezing feature work.

For enterprises

Before handing a legacy migration to agents, build the verifier first: shadow traffic, output comparison that tolerates nondeterminism, and a clear human review gate. The test suite alone will miss the quirks real users depend on.

For startups

Tools that make verification cheap, such as traffic replay, diffing and parity dashboards for agent-written code, look more valuable than another code generator. Teams can also use the same pattern to modernize their own stack with fewer engineers.

What to focus on

Measure parity on real traffic, not only test pass rates. Keep agent iterations in a sandbox and put human review at the point where a change can affect users.

Source
Anthropic

Read the Nov 26 brief

More in AI News

See all

Reporting cited above is by Anthropic. The summary and why it matters are written by AI Explorers Hub.

Add AI Explorers Hub to your home screen and check Today in AI whenever you want a fresh briefing.