Anthropic rewrote Claude's Messages API in Rust in 5 months
TL;DR
- Anthropic rebuilt the Messages API — which authenticates, tokenizes, bills and safety-checks every Claude token — from a Python monolith to Rust in about five months.
- The team had no prior Rust expertise; engineers looked closely at only about 20 percent of the generated code, leaning on shadow traffic to verify behavior.
- Platform lead Katelyn Lesse reports CPU consumption fell about 40-50 percent and time-to-first-token latency improved roughly 10-20 percent.
Anthropic rewrote the Messages API that authenticates, tokenizes, bills and safety-checks every Claude token — for external customers, Claude Code and Claude Desktop — from a Python monolith to Rust in roughly five months, with a team that had no prior Rust expertise. Engineers looked closely at only about 20 percent of the generated code.
The account comes from Katelyn Lesse, who leads platform engineering at Anthropic, speaking with Gergely Orosz on The Pragmatic Engineer. Lesse's team owns the Claude API and the infrastructure behind Claude Code and Claude Desktop, and she joined from Stripe, where she previously led engineering teams.
Her description of how the rewrite was trusted turns on verification rather than reading diffs. "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," she told Orosz. Shadow traffic ran the new Rust service alongside the old Python one before production was gradually shifted across. The headline results Lesse cites: CPU consumption down "about 40% to 50%" and time-to-first-token latency improved "by about 10% to 20%".
Lesse is blunt about who is writing the code now. "When it comes to our team and how we're actually building and maintaining our systems, all of our code is written by Claude. Like, literally all of it," she said in a separate interview reported by azat.tv. "The grunt work of building the pieces and actually monitoring the pieces and actually making sure that we felt good about it, that was agents all the way down."
The knock-on effects reach hiring. Her team phased out the traditional coding interview after strong candidates kept failing it; candidates who excelled in design and project deep-dives were struggling with a format that expects them to write code by hand, which they no longer do. Two-pizza teams of five to eight people still own services and the oncall pager, and Claude has been shadowing the API oncall rotation for months, starting by categorizing alerts. The episode was moving through the engineering-leader circles we track; two people in our directory shared it on the day it aired.
The interview does not give per-service review breakdowns, incident counts during the Rust cutover, or a timeline for when agents might take primary oncall rather than shadow it.
Shared on Bluesky by 2 AI experts
-
How does Anthropic build software in 2026, and what has not changed from "pre-AI?" Super interesting details from Katelyn Lesse, Head of Platform Engineering at the company. • YouTube: youtu.be/9oNvKMd7xJo • Spotify:…
View on Bluesky →
Originally reported by open.spotify.com
Read the original article →Original headline: How Anthropic builds software in 2026 with Katelyn Lesse