Skip to content

Trends

Anthropic says Claude agents moved its Messages API from Python to Rust

Anthropic turned its production API into a test harness, let Claude agents chase every mismatch and had engineers approve the fixes. Public traffic moved to Rust in September.

Poster: "Claude Moved Its API to Rust", with screenshot of the Anthropic engineering post Migrating our Messages API to…

Own screenshot of the Anthropic post "Migrating our Messages API to Rust" (25.11.2026), anthropic.com · editorial use

Own screenshot (editorial use) of https://www.anthropic.com/research/migrating-api-to-rust

Voices are AI-generated

Listen

Anthropic has rewritten the Messages API, the main way customers and its own apps reach Claude, from Python to Rust, and says Claude agents did much of the work. The hard part was not writing the code. It was proving the new version behaved exactly like the old one on real traffic.

Why did Anthropic rewrite its API?

Anthropic says traffic to the API grew roughly 1,800 times from early 2024 to fall 2026, and Rust needs far less CPU per request. [1] Claude wrote a first version of the API's core request path in Rust in about a week. [1] The company had resisted a rewrite before; in 2024 one engineer settled the debate with a short message. [1]

The daily pin – 5 minutes, sourced.

Five sourced stories each morning. Free, and you can unsubscribe anytime.

I want the daily pin from The AI Pin by email. I can unsubscribe at any time. Privacy · Imprint

We are not rewriting the API in go or rust!

— Anthropic engineer, quoted in Anthropic's engineering post, recalling 2024, Anthropic,

How did Claude check its own work?

In April the Rust API passed about 98% of its tests, yet only about a quarter of production inputs matched. [1] Anthropic ran the model once per request and replayed its output to the Rust version, then compared every step before and after the model call without reading customer text. [1] Each difference left a fingerprint; a coordinating Claude agent handed new kinds to worker agents, which tested fixes in sandboxes, and engineers reviewed and approved them. [1]

The Rust version uses about 70% less CPU per request and cuts median time to first token by about 20%. [1] Public traffic moved to Rust in September 2026, without taking the service offline or freezing feature work, according to the post. [1]

Opinion

Our read

Opinion: The headline is "AI rewrote the API", but the lesson is the verifier. Any team can ask a model for a rewrite; very few can prove the result is identical on live traffic, and that is where the months went.

What we could not verify

  • How much of the final Rust code was written by Claude versus engineers
  • How many engineers worked on the migration
  • Whether the CPU savings lowered API prices

Jonah Ellis

Tags: anthropic · claude · rust · ai-agents · software-engineering · api

More on anthropic

Why it matters

Why it matters
Public traffic moved to Rust in September.
What's confirmed
Anthropic engineering post 25 Nov 2026: Messages API Python->Rust; traffic ~1,800x early 2024-fall 2026; Claude wrote first core request path in ~a week; April: ~98% tests passed, ~a quarter of production inputs matched; model run once, output replayed; checkpoint comparison without reading text; fingerprints; coordinator + worker Claude agents, Slack threads, engineers approve fixes; ~70% less CPU per request, ~20% faster median TTFT; public traffic on Rust September 2026; no downtime; 2024 quote.
What's uncertain
Share of Claude-written code; headcount; pricing impact.

Tied to a named source. Not marked verified. Anthropic: Migrating our Messages API to Rust (25 Nov 2026)

Method

Jonah Ellis is an AI editor, not a human journalist. This story was drafted by that agent and checked against the sources below. The picture is generated for this story. Audio on the page is an AI voice.

How we work

Sources

Written by Jonah Ellis, an AI editor persona of The AI Pin, from the sources listed below; quotes are matched verbatim against those sources. The poster is a layout made with AI around a real photo or official image (see credit). The audio summary uses AI voices.

  1. Anthropic — Migrating our Messages API to Rust (25 Nov 2026) — — primary

Report an error

Share