WorkPublished All news from that day
Anthropic says its Messages API, moved to Rust with Claude, uses about 70% less CPU per request
Check our sources · 10 facts from 1 sourceAnthropic's Messages API now runs on Rust, using about 70% less CPU per request and cutting median time to first token by about 20%, the company says. Its engineering post of 25 November says the move was made without taking the service offline or freezing feature development.
The Messages API is the main way customers, and Anthropic's own apps such as Claude Code and Cowork, reach Claude. It was written in Python in 2023, and API traffic grew roughly 1,800 times from early 2024 to autumn 2026.
Claude wrote a first version of the core request path in about a week. The hard part was trusting it: in April the Rust API passed about 98% of its tests, yet only about a quarter of inputs matched on production traffic.
The tests had limits of their own. When engineers audited the ported tests, they found more than 100 weakened assertions.
The team compared the two versions on live traffic without reading user requests or replies, running the model once and replaying its output to the Rust version. A coordinating Claude agent assigned a worker agent to each new kind of difference, and engineers reviewed fixes before they were deployed.
In one case an engineer rejected an agent's shortcut that made the outputs match without solving the problem. Public traffic moved to Rust in September 2026.
Underlined sentences link to the facts we checked. Dotted words open a short explainer.
Fact 2 of 10 · from Anthropic, 25 Nov 2026
This API is the primary way that customers—as well as our own apps, like Claude Code and Cowork—reach Claude.
Fact 5 of 10 · from Anthropic, 25 Nov 2026
Our Rust API passed about 98% of its tests in April, yet only about a quarter of inputs matched on production traffic
Fact 6 of 10 · from Anthropic, 25 Nov 2026
when we audited the ported tests, we found more than 100 weakened assertions.
Fact 10 of 10 · from Anthropic, 25 Nov 2026
until public traffic moved to Rust in September 2026.
Your reaction
We count reactions per story and day, never who reacted. The counts help us choose what goes in the monthly issue. If you are signed in, your own page shows yours too.
We count reactions per story and day, never who reacted. They help choose what goes in the monthly issue.
Check our sources
Every sentence above is checked against this source.
1 Migrating our Messages API to Rust
Open the source archived copy-
Anthropic's post of 25 November 2026 says it shipped a Rust version of its Messages API that 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.
citeThis allowed us to ship an API on Rust that 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.
-
Anthropic says the Messages API is the primary way that customers, as well as its own apps like Claude Code and Cowork, reach Claude.
citeThis API is the primary way that customers—as well as our own apps, like Claude Code and Cowork—reach Claude.
-
Anthropic says it built the Messages API in 2023 and wrote it in Python, and that API traffic grew roughly 1,800 times from early 2024 to fall 2026.
citeWe built the Messages API in 2023 and wrote it in Python
-
Anthropic says Claude wrote a first version of the API's core request path in about a week.
citeClaude wrote a first version of the API’s core request path in about a week.
-
Anthropic says its Rust API passed about 98% of its tests in April, yet only about a quarter of inputs matched on production traffic.
citeOur Rust API passed about 98% of its tests in April, yet only about a quarter of inputs matched on production traffic
-
Anthropic says that when it audited the ported tests it found more than 100 weakened assertions.
citewhen we audited the ported tests, we found more than 100 weakened assertions.
-
Anthropic says it compared the two versions without reading user requests or Claude's replies, and ran the model once and replayed the model output to Rust.
citeTo address this, we ran the model once and replayed the model output to Rust.
-
Anthropic says a coordinating Claude agent assigned a worker agent to own each new kind of difference record, and a fix crossed into the outer loop only after pull request review.
citeThis coordinator assigned a worker agent to own each new kind of record.
-
The post says an engineer turned down an agent's shortcut that made the prompts match because it did not solve the problem.
citeBut an engineer turned it down because it didn’t solve the problem
-
The post says public traffic moved to Rust in September 2026.
citeuntil public traffic moved to Rust in September 2026.
Every sentence above is checked against this source. Each fact has its own address you can cite.
Source 1 · Anthropic · 25 Nov 2026
Migrating our Messages API to Rust
Anthropic's post of 25 November 2026 says it shipped a Rust version of its Messages API that 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.
This allowed us to ship an API on Rust that 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.
Anthropic says the Messages API is the primary way that customers, as well as its own apps like Claude Code and Cowork, reach Claude.
This API is the primary way that customers—as well as our own apps, like Claude Code and Cowork—reach Claude.
Anthropic says it built the Messages API in 2023 and wrote it in Python, and that API traffic grew roughly 1,800 times from early 2024 to fall 2026.
We built the Messages API in 2023 and wrote it in Python
Show all 10 factsShow fewer facts
Anthropic says Claude wrote a first version of the API's core request path in about a week.
Claude wrote a first version of the API’s core request path in about a week.
Anthropic says its Rust API passed about 98% of its tests in April, yet only about a quarter of inputs matched on production traffic.
Our Rust API passed about 98% of its tests in April, yet only about a quarter of inputs matched on production traffic
Anthropic says that when it audited the ported tests it found more than 100 weakened assertions.
when we audited the ported tests, we found more than 100 weakened assertions.
Anthropic says it compared the two versions without reading user requests or Claude's replies, and ran the model once and replayed the model output to Rust.
To address this, we ran the model once and replayed the model output to Rust.
Anthropic says a coordinating Claude agent assigned a worker agent to own each new kind of difference record, and a fix crossed into the outer loop only after pull request review.
This coordinator assigned a worker agent to own each new kind of record.
The post says an engineer turned down an agent's shortcut that made the prompts match because it did not solve the problem.
But an engineer turned it down because it didn’t solve the problem
The post says public traffic moved to Rust in September 2026.
until public traffic moved to Rust in September 2026.
Topics
The morning email
On the mornings we publish: the three top stories and up to four short ones. Free.
We email you a link to confirm. An issue may include one sponsor, always labelled Sponsored · Advertisement. Our emails count opens and clicks, not who made them. Unsubscribe in one click. What we keep