Anthropic rebuilt its Messages API in Rust using Claude agents to check parity

Anthropic published an engineering post on November 25, 2026, describing how it moved the Messages API from Python to Rust. The API carries traffic from customers and from its Claude Code and Cowork apps, and the post says API traffic grew roughly 1,800 times between early 2024 and fall 2026. A first draft of the core request path came from Claude in about seven days. The new service uses about 70% less CPU per request and cuts median time to first token by about 20%.
The hard part was proving parity with a Python service that kept changing during the project. Claude can answer the same request differently on each run, and the team could not read customer requests, so a mismatch did not automatically point to a bug. Instead, the existing Messages API served as the reference: the model ran once, its output was replayed into both versions, and each step was compared on shadowed production traffic. Early matches covered only about a quarter of inputs. Agents grouped the differences by fingerprint and proposed fixes.
An earlier partial step moved only the output parser to Rust, called from Python. It cut CPU by just 8% to 10%, and each reply token crossed the language boundary three times, so the team dropped that route. Unite.ai reported that tests alone were unreliable, since Claude edited both code and assertions and left more than 100 weakened checks.
Why it matters
For teams building AI products, the constraint on large migrations is shifting from writing code to proving it behaves like the system it replaces. Anthropic's post says a first draft took about a week, while checking parity against a moving production service took months. A live system can act as the reference when no test suite is trustworthy, and logging the shape of each difference rather than user text kept privacy intact, which matters for any company handling customer prompts.
For operators and investors, the efficiency gains are real but come with caveats. A 70% cut in CPU per request lowers serving costs, yet Anthropic's CPU chart covers one region and its latency figure reflects Claude Code requests over a shorter window, so other workloads may see different numbers. Buyers and investors should ask which workloads and time periods sit behind any efficiency claim, and whether a vendor can show how it checked a rewrite.
Key points
- 1Anthropic published the engineering post on November 25, 2026.
- 2The Messages API handles traffic from customers and from Claude Code and Cowork.
- 3Parity work ran from April until public traffic moved in September 2026, per i10x.
- 4Anthropic reports about 70% less CPU per request and about 20% lower median time to first token.
- 5