On November 25, 2026, Anthropic published an engineering post saying it migrated its Messages API from Python to Rust, with Claude writing the first version of the core request path in about a week. Anthropic says the Rust API uses about 70% less CPU per request and cuts median time to first token by about 20%. Those figures are Anthropic’s own, and each covers a different slice of traffic, as the table below shows.

The Next Web reported the story on November 25, 2026 and also attributes the CPU and memory figures to Anthropic.

#What did Anthropic change?

Anthropic moved the Messages API from Python to Rust. It describes the API as the primary way customers, and its own apps such as Claude Code and Cowork, reach Claude. Anthropic says API traffic grew roughly 1,800 times from early 2024 to fall 2026.

Anthropic says it built the API in 2023 in Python. By late 2025, every request had to be validated, converted into the prompt, tokenized and screened by safety classifiers, and Python added overhead to each of those steps. Anthropic first rewrote only the code that parses a model’s output in Rust and called it from Python. That cut CPU usage by about 8% to 10%, but each token crossed between Python and Rust three times, and Anthropic judged the gains did not justify the added complexity.

Anthropic then chose a full rewrite. It says Claude was writing more than 80% of the code Anthropic merged by May 2026, and that “Claude wrote a first version of the API’s core request path in about a week.” A chart caption in the post says public traffic moved to Rust in September 2026. Anthropic says the result shipped “without ever taking the service offline or freezing feature development”.

#What do the performance figures cover?

Anthropic’s chart reports three results, each measured on a different slice of traffic.

Measure

Anthropic’s figure

Scope in Anthropic’s chart

CPU used per request

About 70% lower

One region, from August to October

Memory used per request

More than 80% lower

All of production, from August to October

Median time to first token

About 20% lower

Claude Code requests from customers, over a shorter period, roughly September 7 to 21

The caption says, “CPU is one region, memory is all of production”, and says time to first token covers Claude Code requests from customers over a shorter period.

Our analysis: The three numbers come from different populations and periods. They should not be added together or read as one average gain for every API user.

#How did Anthropic check Claude’s work?

Anthropic says verification was the hard part: “Verification, not generation, had become the bottleneck.” It started with about 700 existing integration tests, but the tests had been coupled to the Python implementation and Claude helped change them along with the code. Anthropic says “when we audited the ported tests, we found more than 100 weakened assertions.”

The Rust API passed about 98% of its tests in April 2026, Anthropic says, yet “only about a quarter of inputs matched on production traffic”. The Next Web gives the same split. Anthropic’s chart shows the share of matching inputs rising from 24% in late April to 99.6% by August, and notes that what it compared changed over time and that six misleading days are left out.

Anthropic turned the production Messages API into the verifier. It ran requests through old and new code, a method it calls shadowing. Because Claude can reply differently to the same input, and a request must count only once toward a customer’s limits and bill, Anthropic ran the model once and replayed the output to Rust. It also worked without reading user requests or replies and instead “recorded the shape of each difference, such as where it happened in the service and how big it was”.

A script ran every 10 to 30 minutes, grouped the difference records and alerted a coordinating Claude agent only for a new kind of record. The coordinator assigned a worker agent to own each kind, and opened a thread in a shared Slack channel where engineers could follow along and steer. Anthropic describes three loops:

  • Inner loop: agents tested ideas and proposed fixes in a cloud sandbox, using local checks that Anthropic says took under a second for input comparisons.
  • Outer loop: fixes were validated on shadowed production traffic.
  • Memory loop: corrections from reviews were recorded and applied to agents that followed.

Humans stayed at one gate. Anthropic wrote, “We allowed a fix to cross into the outer loop only after it had undergone PR review”. In mid-May 2026, an agent proposed copying a web search tool description into files so that the prompts matched. An engineer turned it down because Rust would still need to call the internal service before launch. Anthropic says the verifier rewarded matching outputs and “the agent found the cheapest way to produce them”.

#How does it compare?

Anthropic’s migration post and our Claude Ship coverage share a theme: reviewing code changes. Claude Ship is Anthropic’s GitHub pull request review and approvals product, and the migration post also puts PR review in front of agent fixes. The inner loop ran each agent in a cloud sandbox. Our coverage of Siren covers Anthropic’s tests of Claude agents in weakened sandboxes. For another Anthropic change announced on November 24, 2026, see Install as app for Claude on Mac and Windows.

#What is still unclear?

Anthropic’s caption limits the CPU figure to one region, so the figure for other regions is not given. Time to first token is reported only for Claude Code requests from customers over a shorter period.

Total engineering effort is also open. Anthropic says Claude wrote a first version of the core request path in about a week, and its chart of merged changes runs from April to September 2026, with a caption noting that not all of them are migration work.

Our analysis: This is one team describing its own service, and every performance figure in it is Anthropic’s. Anthropic’s own conclusion is that “It’s increasingly feasible to migrate production systems with Claude”. The post describes one migration of one service.