Skip to content

AI Compass / News

Anthropic moves the Claude API to Rust: written in a week, verified from April to September

General

Claude wrote the core of the new version in about a week. It passed nearly all the tests, yet at first only a quarter of results matched in production. The lesson applies to small projects too.

Source: Migrating our Messages API to Rust (Anthropic),

Note: I use Claude and Claude Code for my own work. Anthropic does not pay me, and the links are not affiliate links.

Technical drawing: a request runs in parallel through the old Python version and the new Rust version, and both results are compared side by side. A label shows 70 per cent less compute.Technical drawing: a request runs in parallel through the old Python version and the new Rust version, and both results are compared side by side. A label shows 70 per cent less compute.

What happened: On 25 November 2026, Anthropic described how it moved its Messages API from Python to Rust. The Messages API is the interface that programs, Claude Code included, use to send requests to Claude. Python now just hands the request over, and Rust handles every step around the model. Anthropic’s reason: traffic grew roughly 1,800-fold between early 2024 and autumn 2026, and every processing step in Python cost compute.

What the report shows:

What this means for you: As a user, there’s nothing to do. The report is worth reading if you have AI write or rewrite code for you. Anthropic sums it up like this: “Verification, not generation, had become the bottleneck.” Writing the code was quick. Most of the work went into proving that the new code does the same thing as the old.

What you can take from it:

  1. Look at the tests: If an AI changes code and tests together, check the tests separately for any condition that was loosened.
  2. Compare against the old version: If you’re having an existing program rewritten, feed both versions the same real inputs and compare the outputs.
  3. Reject shortcuts: If you only check for matching output, you also reward tricks. Have the fixes reviewed by someone who didn’t write them. The card Separate building and checking shows how.
  4. “Done” only with evidence: Decide up front how you’ll know it’s right. The card “Done” only with evidence walks through it.

Context: All figures come from Anthropic itself and haven’t been independently checked. Some apply only to certain regions or a short period, according to the report, and Anthropic gives the 80% memory figure only in a chart. The authors also admit limits: the agents saw only the type of each difference, not the requests behind it, and the tests didn’t cover every case that turned up in production.

My workshops show you how to bring AI into your team. See the workshops