In 2024 one of Anthropic's engineers temporarily shut the question down: we are not rewriting the API in Go or Rust. Now the Messages API is on Rust. The same API that carries Anthropic's customers and its own apps, Claude Code and Cowork.
Fact
The facts: on 25 November 2026 Anthropic announced it had migrated its Messages API from Python to Rust. According to Anthropic, from early 2024 to fall 2026 traffic to the API grew roughly 1,800 times. Claude wrote a first version of the API's core request path in about a week. According to Anthropic, the new version uses about 70% less CPU per request and cuts median time to first token by about 20%, without ever taking the service offline or freezing feature development. According to Anthropic, by May 2026 Claude was writing more than 80% of the code the company merged. There were about 700 integration tests; when Anthropic audited the ported tests, it found more than 100 weakened assertions. Just 20 binary options make over a million combinations, which for one model translates to 12 days of tests at a second each, before the prompts inside them are even varied.
Here is where the math flipped. Writing the code was no longer the problem. Proving the new API behaved exactly like the old one was. Anthropic says it plainly: verification, not generation, became the bottleneck. If you have ever moved a live system, you know why.
So they turned it around. They took the running API and made it the reference the new one was measured against. They ran the Rust version on real traffic, watched where it diverged from the Python version, and dispatched agents to fix the differences. Parity was a moving target, though: the Python API kept changing throughout the migration, and Claude's replies are not deterministic, so a difference between two outputs did not necessarily mean a bug.
Generating code got cheap. Proving it is correct did not.
The tests were not enough. There were about 700 integration tests, but they ran against the Python version and were coupled to it. When Claude touched both the code and the test, a pass could mean two things: the code was right, or the test had been loosened to let wrong code through. In the audit Anthropic found more than 100 weakened assertions. And even clean, tests cover only the combinations someone thought of.
The migration is done and the service never went offline. The numbers are Anthropic's own, about its own service, and there is no outside check. The lesson is not about Rust, though. Code gets written faster and faster, and the way to prove it is correct is still the hard part.
Official primary sources
Anthropic - Migrating our Messages API to Rust, 25.11.2026The visual is generated code-art, no third-party images.