Review is not the bottleneck
- Missing the forest for the trees
- Getting glamorous
- Deciding to understand
- Designing to understand
- Easy, Light, Smooth, Fast
It’s become almost a truism to say that with agentic coding that the “bottleneck is review”. But I don’t think that’s true.
I’ve taken a sabbatical from writing 3 AM polemics against the Machine to seriously try to approach my work using these weird-shaped new tools. And over the last few months, the pain of reviewing AI-generated code has become increasingly acute. Depending on my frame of mind, the project, and the extent of the change, I generally find myself either reading through the diff in excruciating detail (I am a Responsible Software Engineer), or skimming over it (i am tired, nothgin matters, it’s probably fine).
The thing that remains a constant is that I almost always merge the LLM-generated code as-is. Occasionally I re-write a comment, or some copy, or rename a function, just to feel good about myself. Sometimes a PR turns out unaccountably to be garbage and needs to be re-generated (or even done by hand), but I am pretty much a meat proxy at this point. Vibed code has become Good Enough.
Missing the forest for the trees
But it isn’t, that is clear. Any time I open up the hood to look underneath I discover a tangle of design anti-patterns that are so alien they don’t event have names yet. Whether it’s because LLMs anchor strongly on what’s already there, or whether they’re just trying to produce a readable diff, they have a tendency to change as little code as possible. This is great for backwards-compatibility: API changes and database migrations. Not so good for code health. “Please ruthlessly refactor this system based on our universal language to cleanly separate responsibilities” comes back with “I used map instead of a for loop here, aren’t you proud?”
There’s nobody to blame but myself. Clearly, I, the human-in-the-loop, am not doing my job. My review of the AI-generated code always comes back clean, but clearly there is something I’m missing. The problem isn’t the lines that changed; they were mostly correct. The problem is in how they fit in with the invisible 99% of every PR: the rest of the codebase.
There are a lot of products out there that claim to solve code review, but most of them have one disqualifying characteristic - they use LLMs to do the code review for you. This can catch mistakes, for sure - but if we’re just having the bots review the bots’ code, why don’t I just tell Claude to Try Harder? If AI review can fix AI code, that points to the fact that there’s no inherent limit with these tools. Maybe I’m still a laggard here and RSE has arrived, but I think the consensus is that human input is still necessary to produce good software.
Addy Osmani offers a number of good tips for using AI effectively in code review, but all of them are focused on the output, not the input, which is only half the picture. I want a tool that will help me understand what actually matters about a given change - something that allows me to evolve my mental model of the system the way that writing code by hand used to do (that’s what those hours spent typing were for - you might type tens of thousands of characters in a day and end up with a 100 line diff. The bottleneck was never typing, it was always the comprehension it facilitated).
Getting glamorous
Nobody seems to be talking much about this though, with one exception - since long before the advent of agent-assisted development, Tudor Girba has been building a very weird system called Glamorous Toolkit. You can tell it’s brilliant because the first time you open it up you have no idea what’s going on or how to use it. It reminds me a little bit of my first encounter with the clojure ecosystem.
The concept behind it, which he calls Moldable Development is all about how to ask the right questions of a software system, and how to get good answers back. His contention is that the primary activity of software development is that of decision making. Far from being a set of general-purpose tools for analyzing code, Moldable Development is done by building project-specific tools and decision frameworks. He describes it as an application of the scientific method to software development: a procedure for understanding and making decisions about a specific software system.
Thinking about software development as primarily a “decision making activity” re-frames the question of maintaining software quality. The human’s job is not to keep bad code out of production - you might as well try to push back the sea with a broom. Our job is to make sure the right thing gets built. That can only be done if 1. you know what you’re trying to build, 2. you can understand what it is that you have built, and 3. what the differences between those things are.
Deciding to understand
Every successive PR gets harder to review for two reasons: not only is the code getting more tangled, your understanding of it is getting more tenuous. Code is not a document, a linear story, or a geography that we can intuit merely by wandering through it. It is a multi-dimensional ecosystem of competing concerns that must be kept in equilibrium. The relationships between these concerns have to be traversed, which means walking along call trees, examining data, and seeing the code from multiple perspectives, each of which focuses the programmer’s attention on a different aspect of the system.
The purpose of code review is (ostensibly) to keep the programmer informed about how the system is changing, so that he can continue to be effective. But review is an awful way to do this. Reading code does not produce comprehension.
A much better way to understand a system is to make decisions about it. The most success I have had with agentic coding is when I was building a library (a codec for parsing and writing nostr event kinds) which involved a small amount of design work and a large amount of boilerplate. Every change I made to the base interface could simply cascade out to all implementations of it, revealing how good or bad my design was. The 5k LOC that got rewritten every pass served as a mirror in which I was able to see the design unfolding in my head more clearly.
You experience context drift not because you’re failing to read every line of code, but because you’re not engaging deeply with the process of making decisions about your software system.
Review is a bad way to build comprehension because it’s a bad time to make decisions. LLMs love to overfit, but so do we. If we see a solution that works, it’s taxing to imagine an alternative. It’s much harder to make good decisions if we look at the tiny slice of new code first instead of the context that prompted it. You don’t know if the peg fits if you don’t look at the hole.
Designing to understand
I think a much better place for the human to be in the loop is in the design phase, rather than the review phase. LLMs are smart and mostly trustworthy. They can probably handle review on their own for the most part - if the design is correct. And if you understand the design, reviewing the code becomes much faster, and much more narrowly focused on the kind of things that might go wrong in a generated implementation.
This fits with an important principle of context management too - a bad AGENTS.md turns into several bad sessions; a single bad session turns into several bad commits. Bad context compounds, so intervene early and often. (This is a well-accepted principle of agentic engineering, which makes it extra weird to me that so many people point to review as the bottleneck.)
Now, when I saw we should be spending the majority of “wet time” on design, that can mean a lot of things. Whatever tools you use to gather context about the system, the key point is that you’re the one making the decision, not the LLM.
The first thing to do is understand what your goal is. Are you fixing a bug, improving code health, adding a feature? A good problem statement doesn’t negate all the other constraints that a good solution should consider, but it does put them in context, and focuses the work.
Next you need to understand what already exists. Is this a new feature or a modification to an existing one? Is there coupling that this change will need to untie? Is the interface you want to make asynchronous depended on by synchronous code? Identifying what parts of the existing system are going to be affected by your change is something an LLM can help with, and it sizes down the task of preliminary comprehension significantly - you can focus on the 3k LOC that actually matters instead of the entire 100K LOC system.
This is where the bespoke tools that Malleable Design encourages come in. And the best part is you don’t have to build them yourself, or learn how Glamorous Toolkit works!
Build harnesses, instrument the code, generate mockups. Generate reports to convert raw code into a document with additional context (explanations, example inputs/outputs, diagrams, charts) provided by the LLM. (Credit to Geoffrey Litt, who also works on Malleable Software of an equally interesting but totally different sort. His explain-diff skill was a great starting point for me to start making my own reports). LLMs are incredibly good at these one-off projects, but they won’t usually touch your code unless you ask. I recently solved a performance problem by running a modified version with AI-generated tracing installed (I’ve always been a console.log guy rather than a debugger man; LLMs can take a massive log and make quick work of it).
Once you’ve wrapped your head around the problem by exploring the codebase, you’re much better equipped to make a good decision. There’s nothing wrong with asking the LLM for advice at this stage, but you should start by articulating your own solution first to create a concrete referent that you can test its designs against. It also allows you to step backward before the LLM drags you forward - maybe the system needs to be refactored to make room for the new change.
Once you’re confident in your design, ask the LLM to build it. Knowing what you want will make your prompt better - from “Add this feature” to “Add this feature by injecting a new inteface here and there that does X and Y”. The new details will keep the LLM from latching on to some random source of existential reassurance and keep it on task.
Easy, Light, Smooth, Fast
The biggest thing going through this process taught me is that it’s ok to slow down. The benefit of using LLMs in software development is not to make you faster exactly, but to make you better. From Chris McDougall’s book Born to Run:
Think Easy, Light, Smooth, and Fast. You start with easy, because if that’s all you get, that’s not so bad. Then work on light. Make it efforthless, like you don’t give a shit how high the hill is or how far you’ve got to go. When you’ve practiced that so long, that you forget you’re practicing, you work on making it smooooooth. You won’t have to worry about the last one - you get those three, and you’ll be fast.
Thinking easy is knowing you’re only human. Spiking your cortisol will not help you achieve more. Thinking light is taking the time to make each task easier. Automate, understand, create processes that you can live in. Making it smooth means iterating through this process so often that it becomes second nature. Then you’ll be fast.
Every time I’ve let bad code through review it’s because I was in a hurry. The code was already generated; the problem space was closed, I didn’t have time to go back and rethink the problem from first principles. The merge button was there, glowing green and inviting. Sacrificing Easy, Light, Smooth for Fast just results in injury.
I will say that I haven’t thoroughly tested this theory. I’ve employed it a number of times, but the temptation to skip all the hard work and get an inhuman amount of stuff done is always strong. On some projects it’s appropriate too - the project is low-risk, or the codebase is small, or the areas of responsibility are well-demarcated enough that a mess in one area won’t affect anything else.
Agentic development is not one thing, and I think the industry suffers (or at least I have) from thinking it is. “Agentic coding” puts the LLMs at the center and the humans at the edge. Agents are great for a lot of things: writing tools, tests, harnesses, doing research, making to-do lists, automating processes, writing code, criticizing designs, reviewing code, knowing obscure APIs and language features, answering questions, remembering things, reading code and summarizing it, generating reports, creating graphs. None of these activities are the core of software engineering.
The will to make a decision is a result of wanting a particular thing. Desire is an expression of salience - one thing matters more than another. Salience is a way of coping with our limited capacity for attention. LLMs have infinite attention, so nothing is salient to them; they cannot want anything, and so cannot make good decisions.

You’re the programmer, the agent is the tool. It’s easy to get confused about that, but getting it backward results in backward software. A particular software system exists for a purpose, but software made without understanding is just slop.
Write a comment