RS Rahul Sengottuvelu On The Pragmatic Engineer

“If we wanted every PR that goes into production to be extremely well tested and almost certainly absolutely correct, we'd probably spend tens of thousands of dollars on every single PR in inference. Because every marginal dollar, every more token you sample, maybe it catches some extreme case.”

The Pragmatic Engineer · Hands-On Engineering Podcasts · December 2026

“If we wanted every PR that goes into production to be extremely well tested and almost certainly absolutely correct, we'd probably spend tens of thousands of dollars on every single PR in inference. Because every marginal dollar, every more token you sample, maybe it catches some extreme case.” — Rahul Sengottuvelu, The Pragmatic Engineer

Context

Asked how code review works now that agents write most of Ramp's code, Sengottuvelu describes review as a slider between thoroughness and token cost.

Transcript

The Pragmatic Engineer
Rahul Sengottuvelu

…tens or even hundreds of sub-agents and does a lot of work. I've pasted, I think, 20 PRs, like 30 PRs in a single Slack message because Inspect just like forms out, makes review a lot easier when there's some change that we needed to map across the code base, like some upgrades or things like that.

Speaker 4

…with Inspect, it's ready to merge. How does code review work and how has it changed? We used to have the case where I'm sure at RAM before AI, you also had a mentor, a code reviewer, someone on the team or something, but I assume that that's not how it must go because that would not scale anymore.

Rahul Sengottuvelu

Yeah. So we built a series of automates. So the great thing about the way we have Inspect set up internally is also most inspect sessions are automation. So they're not actually prompted by a human. We have an Inspect API, which is very similar to the interface a human has. You send in a prompt, you can define which repo you want it to run, and you can also set the model you want. And so our internal code reviewer is also built on the Inspect API. And it just spins up a fresh session and has the same code in the sandbox. And a lot of the time, the code reviewer may not just be happy with just reading the code. It might want to run some tests. And so we give it the ability to do that as well. And it also allows us to consolidate all the repo setup because we really spend a lot of time making sure that our linter runs quickly, our testing runs quickly, the code is always up to date. You're on a very recent Git checkout, if not the latest commit. We do have a lot of commits landing on master. So we try to hit something very close to master when a sandbox starts up. And the…

Speaker 4

And this is called StampBuddy, right?

Rahul Sengottuvelu

Exactly. I mean, we just call them ReviewBuddy and StampBuddy because they're all buddies to the main inspect session. Yeah. But they're all just clones of the same infrastructure. And it's awesome to have this kind of setup because a lot of these automations are just the inspect, like the original…

Speaker 4

Can you tell me about on-call assistance? So like once it's approved, either a human approves it because the agents decide that or his stamp buddy decides that this is high risk or stamp buddy says like, all right, this is low risk, good to go. It goes out there. Hopefully everything is good. But…

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.

More from The Pragmatic Engineer