The number that should slow readers down
The headline figures are the efficiency gains: about 70% less CPU per request and a median time to first token about 20% lower. Both come from Anthropic, measured on its own service, and the post gives no independent measurement. AI Weekly's summary of a Pragmatic Engineer podcast episode with Anthropic's platform engineering lead put the CPU saving at roughly 40% to 50% and the latency gain at 10% to 20%. The two accounts do not state the same metric definitions or measurement periods, so neither confirms the other; treat 70% as the company's engineering-blog figure, not as a settled measurement.
The more useful numbers are the parity ones, because Anthropic published them against itself. In April 2026, the Rust API passed about 98% of the roughly 700 integration tests. On shadowed production traffic, about a quarter of inputs matched. Both figures are from the same post, a few paragraphs apart. A mismatch did not mean a failed request: the post's own example is a difference of a few bytes on a request that still succeeded and was still answered.
Why the tests could not be trusted
The tests were part of the problem. They ran the Python API inside the test process and mocked services such as billing and rate limiting in Python's memory, so the tests had to be ported along with the code, and Claude helped port both. A pass could then mean the code was right, or that a test had been changed in a way that let wrong code through. When Anthropic audited the ported tests, it found more than 100 weakened assertions.
Coverage was the second problem. Twenty binary options alone produce over a million combinations, before prompts vary at all. Production also weights bugs differently from a test suite: a test case counts once, while a common bug fires on every live request that triggers it. One concrete example from the post: Python escapes certain characters, such as emoji, as text codes when it writes JSON tool calls. Rust wrote the characters as they were. The prompts differed by a few bytes, the requests still succeeded, and the model still answered, sometimes slightly differently. Nothing errored. Only byte-level comparison caught it.
What Anthropic built instead
Since the test suite could not define correct, Anthropic used the production system as the definition. Requests ran through both versions step by step, and the first step where they diverged located the bug roughly in the code. The shape of each difference, its step, prompt piece and starting offset, formed a fingerprint, and one bug tended to leave the same fingerprint on every request it touched. That let a script group hundreds of thousands of near-identical diff records into kinds every 10 to 30 minutes, alert a coordinating agent to each new kind, and have it hand the kind to a worker agent.
The loops around that signal are the actual method in the post. A fast inner loop let agents test a guessed cause in a sandbox, on requests they wrote themselves, in under a second per check. A slower outer loop validated fixes against shadowed production traffic. A third loop turned engineer corrections into standing rules, including rules added to the project's CLAUDE.md file after an agent reviewed about 60 team review comments in June 2026.
Human review stayed in the path, and the post gives one case for why. In mid-May 2026, an agent fixed a missing web search tool description by copying the text into local files the Rust code could read. The prompts matched and the local verifier passed the fix. An engineer rejected it: the real fix was for Rust to call the internal service that supplies the description, which took weeks, and the copied text would have been thrown out at launch. The verifier could tell the agent that outputs matched. It could not tell it the fix was shippable.
What this does and does not show
This is one company describing its own migration, on its own blog, with its own measurements. It is not evidence that any team can hand a production rewrite to a model and expect this outcome. The preconditions are visible in the post itself: a live reference system to compare against, traffic worth shadowing, months of loop-building, and engineers reviewing every fix before it crossed into production.
What it does show is where the cost moved. Anthropic's own summary is that verification, not generation, became the bottleneck, and most of the engineering effort in the post went into building a signal precise enough for agents to act on. Teams quoting the one-week first version of the core request path are quoting the part the post itself treats as the easy half of the project.
Sources
- [1] Anthropic, "Migrating our Messages API to Rust," November 25, 2026Read source
- [2] The Pragmatic Engineer podcast episode with Katelyn Lesse, as summarized by AI Weekly (CPU 40–50%, time to first token 10–20%)Read source