S Sardaana
← Back to Sardaana AI
AI News

Anthropic moves Claude's Messages API from Python to Rust with Claude agents doing much of the work

Anthropic says Claude wrote a first version of the API's core request path in about a week, and that the Rust service now uses about 70% less CPU per request and cuts median time to first token by about 20%, with no downtime.

Anthropic published an engineering write-up on November 25 describing how it migrated its Messages API — the main way customers and its own apps such as Claude Code reach Claude — from Python to Rust.

What the company says

  • API traffic grew roughly 1,800-fold from early 2024 to fall 2026, and Python overhead on every request step became a bottleneck.
  • An earlier partial approach (rewriting only output parsing in Rust) cut CPU use by about 8–10%, but the gains did not justify the added complexity.
  • Claude wrote a first version of the core request path in about a week. The hard part was proving parity: the Python API kept changing, model replies are nondeterministic, and engineers could not read customer requests.
  • Anthropic turned the production API into a verifier, shadowing live traffic to the Rust version and automatically dispatching agents to fix differences.

Results (company figures)

  • About 70% less CPU per request and roughly 20% lower median time to first token, shipped without taking the service offline or freezing feature work. InfoWorld also reports about 80% less memory.
  • TechRepublic notes the figures have different scopes: CPU results came from one region, while the latency gain was measured on Claude Code requests over a shorter period.

The numbers are Anthropic’s own and have not been independently audited.

Also available in: Саха тылаРусскийEspañol中文Portuguêsالعربية

Sign in to Sardaana

An account is only needed to publish, reply, vote and collaborate.

You can browse the site and read news, projects and the forum without registering.