The Team Had No Rust Experts, So They Had Claude Rewrite Claude's API
Anthropic moved Claude API token handling from Python to Rust. The team had no Rust experts, and engineers carefully reviewed only about 20% of the generated code. One detail from the validation stage is even more telling: the Rust version passed about 98% of tests in April, but at that time only about a quarter of production inputs matched the Python version's behavior.
Anthropic's engineering team rewrote the part of the Claude API that handles tokens from Python to Rust. When they started, the team had no Rust experts.
This is what Katelyn Lesse said on Gergely Orosz's podcast. A year earlier, the same team chose Go for a new service for a very practical reason: everyone could read and write it. By 2026, the criteria had changed. Claude's Rust was good enough, and it could also help engineers get up to speed on Rust during the rewrite.
During the rewrite, engineers carefully reviewed about 20% of the code. Katelyn's point was that as long as a task could be reduced to some verifiable form, there was no need to read the generated Rust code line by line.
That sounds easy, but the prerequisite is demanding. Verifiability doesn't just appear on its own.
98% Test Pass Rate
Someone in the comments added a set of numbers. Commenter Daniel Ehrhardt pointed to a record in Anthropic's engineering blog: the Rust version passed about 98% of tests in April, but at the same time, only about a quarter of production inputs matched the Python version's behavior. A later audit of the ported tests found more than 100 weakened assertions.
Put together, these numbers are more concrete than any debate about whether AI can be trusted to write code. A 98% pass rate looks great. The problem is that the tests themselves were also ported from the old code, and during the port the assertions were quietly loosened. All tests being green does not mean behavior is the same.
What really provides the safety net is shadow traffic. The segment at 23:40 in the podcast explains the validation method: feed real requests to both the Python and Rust implementations at the same time and compare the outputs. Questions that reading code line by line cannot answer are left to production traffic.
For a rewrite like this, test pass rate is the weakest signal. Tests can be wrong; traffic doesn't lie.
Call Claude First, Then a Human
In the API team's on-call rotation, a Claude agent has been shadowing for several months. Now when an alert comes in, it first decides whether it's a real incident or noise, then determines whether someone needs to be woken up in the middle of the night. The long-term goal is for Claude to handle incidents on its own; it's not there yet.
The prerequisite for letting a model participate in on-call is that it can separate 'real' from 'noise'. That depends on repeated training and comparison against historical alerts—a different ability from writing code.
The Two-Pizza Team Hasn't Changed
There's another detail unrelated to AI: Anthropic's team size is still 5 to 8 people—a two-pizza team. Katelyn's reasoning is that this size can both understand a complex system and sustain an on-call rotation. The team owns the system, and the team takes the alerts. Responsibility rests with the team, not the individual.
The tools went through a round of change, but the basic unit of the organization stayed the same.
Other Segments Worth Listening To
There are several other segments in the timeline: 07:04 covers how the Claude API works, 31:11 is about using Claude to onboard new people, 44:35 is Claude Managed Agents, 1:09:31 mentions product managers pushing code directly to production, 1:24:13 discusses how traditional coding interviews are being phased out, and 1:33:21 talks about software engineers' identity crisis.
The original podcast link is here: Gergely Orosz's tweet.
Put together, these details form a sample of a way of working; it's hardly a manifesto. If there is anything to take away, it's probably this line: only when you can make something verifiable do you dare to skip reading every line.
发布时间: 2026-11-26 03:26