The Pragmatic Engineer · Hands-On Engineering Podcasts · November 2026
Asked how the team trusted an agent-written rewrite of Anthropic's API from Python to Rust, she had just described running the Rust system in shadow next to the Python one. This is her account of how little of the agent-written code humans actually read.
…a request for whatever reason it threw an error, you could always just fall back to the Python system. And so it would be a little bit slower, but that's better than just not getting a response at all. And so that was kind of how we did it until we got comfortable enough to rip out that front door.
…layer, like a unit or integration testing layer that gives you a fallback. But obviously, you still do what you say is the shadow, the shadowing. That is the ultimate source of truth. But you were just able to just like leap through this, like, oh, let's see how we ported the business logic.
Yeah, exactly, which is kind of crazy. But I think that's the world that we live in now. Is 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 of Rust code that's getting written. And I think in this case, actually, because of the nature of this system and how central it is and how important it was to get things right, I think more so than you might think. We ended up with engineers like getting into the details of the code and figuring out what might need to be fixed. If you were to ask the team, they would probably say something like 80% of the pull requests that got opened by agents, they didn't like deeply read through all of the code that had gotten written. And then I would say like 20% probably is where you were running into issues, you were trying to get something perfectly right, and they kind of had to dig deep into the details and understand what was going on with the code.
Caitlin just said that as long as you make something verifiable, you don't have to read every line that the agents write. But you do need a reliable way to verify every line of code though. And this kind of verification is what our season sponsor, Antithesis, does. Antithesis has just launched a…
And now that we have the new system, like with the old system, when it was written by hand, it's typical that there are a few engineers who've been there for a long time who just understand the whole structure. Sometimes, better places, you will have documentation. We know it gets outdated, but…
one of the funny things about this is because of the nature of Anthropic, again, we only first had an API like three years ago or so, right? And that had started with a really small team, and the team had grown so quickly, and the system had started to take tons of loads so, so quickly. In that…