podcasts.apple.com web signal

Anthropic cut Messages API CPU 40-50% in Claude-led Rust rewrite

TL;DR

  • Anthropic rewrote its Messages API from Python to Rust in about five months, with CPU usage dropping roughly 40-50 percent.
  • No engineer on the team had Rust experience when the project began; Claude wrote most of the code and humans closely reviewed only about 20 percent of it.
  • A Claude classifier now triages every pull request, and Anthropic is phasing out the traditional coding interview.

A team at Anthropic with no prior Rust experience rewrote the Messages API, the service that handles authentication, tokenization, billing, safety checks and calls into the GPU stack, from Python to Rust in about five months. CPU usage on the service fell roughly 40-50 percent and time-to-first-token latency improved roughly 10-20 percent, according to platform engineering lead Katelyn Lesse on a new Pragmatic Engineer podcast episode.

Claude wrote most of the code. Engineers designed the system, planned the migration and spot-checked output; Lesse estimates they looked closely at only about 20 percent of what the model generated. Rather than a line-by-line review, the team ran the Rust service as a shadow against the Python API in production and iterated until every response matched.

'As long as you can really boil something down to make it verifiable in some way, then you don't have to look at every single line of Rust code that's getting written,' Lesse told the show.

Agents are embedded further up and down the stack. A Claude classifier runs on every pull request to decide whether a human needs to look at it, how many reviewers a riskier change needs and which team should own the review. A separate Claude agent has been shadowing the API oncall rotation and now does the first-pass categorization on incoming alerts.

Hiring shifted too. As reported by The Pragmatic Engineer, Anthropic is phasing out the traditional coding interview after watching strong candidates fail it: 'Candidates who crushed other interviews were starting to fail the coding one because they no longer write code by hand.' Design and project deepdive rounds remain, and agent-based exercises are being built as replacements.

Two-pizza teams of five to eight people still own their systems and still carry oncall.

Shared on Bluesky by 2 AI experts