Today ainotis Join

My notis

WorkPublished All news from that day

Anthropic says its Messages API, moved to Rust with Claude, uses about 70% less CPU per request

Share

Check our sources · 10 facts from 1 source

Anthropic'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.

Share this story

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.

Check our sources

Every sentence above is checked against this source.

1 Migrating our Messages API to RustAnthropic · 25 Nov 2026 · 10 facts Open the source archived copy
  1. 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.
    cite
  2. 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.
    cite
  3. 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
    cite
  4. 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.
    cite
  5. 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
    cite
  6. 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.
    cite
  7. 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.
    cite
  8. 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.
    cite
  9. 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
    cite
  10. The post says public traffic moved to Rust in September 2026.

    until public traffic moved to Rust in September 2026.
    cite

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