- Anthropic's Katelyn Lesse said verifiable output means not every line needs reading. Her team would estimate that about 80% of agent-opened pull requests were not read deeply.
- Privacy rules stopped the team from inspecting real customer data. They had to compare outputs at coarser points, so the design of the check mattered more.
When agents write the code, confidence can rest on how well the check was designed. Katelyn Lesse runs the platform engineering team at Anthropic. She told The Pragmatic Engineer how her team rewrote the Claude API from Python to Rust. On that rewrite, she said the team would estimate that about 80% of agent-opened pull requests were not read deeply. Privacy rules made the checking harder.
What was said
Lesse described a shadow run. A thin Python front door took each request. It sent the request through the old Python system and ran a copy through the new Rust system. Each day the team asked the model how many requests produced different output. They pushed that share down until it was near perfect. Then they began rolling out Rust, keeping Python as a fallback.
Reading the new code was not the main safeguard. Lesse said: "as long as you can really boil something down to like make it verifiable in some way, then you don't have to look at every single line".
The hard part was privacy. Lesse said Anthropic does not look at customers' completions, the text the model returns. So when two outputs differed, engineers could not open the raw data to see why. The team compared the systems right up to the point where a request goes into inference, the step that runs the model. On the way back out, they checked token counts. Lesse said tiny differences still slipped through, and they were much harder to chase without the raw data.
Why it matters
Our reading: the risk of agent-written code sits in the check, not in the code. If few people read the code, a weak check lets faults through at the speed agents write.
For leaders who build or buy software, the question changes. Ask what the output is compared against and what that comparison cannot see. Lesse's team could not see inside the data, so they chose comparison points they could reach. That is a design decision someone made and someone must own.
The other side
Lesse did not say reading code stops mattering. She said that for this central system, engineers got into the details more than you might think. For about 20%, probably, they dug deep. Those were cases where something had to be exactly right.
Lesse's remarks here leave two questions open: how a team knows a check is good enough, and what protects against wrong output the comparison missed. The Python fallback covered a different case: a Rust bug, or a request Rust refused or errored on. Those went back to Python, which was "a little bit slower" but still answered.
Written by the WebPulse Newsroom with AI assistance, and checked by our editorial review: every quotation was verified against the recording's transcript. How we use AI.
The conversation this talking point comes from
- The Pragmatic Engineer: How Anthropic builds software in 2026 with Katelyn Lesse (2026-11-25)





