I see a lot of posts from developers who insist on reviewing every single line of code that AI agents write. I understand the approach, because that's what we, including me, have been doing for years. However, it doesn't scale and most developers admit it.
I don't think it's the right answer to AI-generated code. An agent produces code much faster than anybody can read it. Human review doesn't get better when there is more to read, quite the opposite. Research on peer code review found that defect detection drops sharply beyond a few hundred lines per hour. The study predates AI, but nothing has changed in our brains since then. If the agent writes a thousand lines while you grab a coffee, you'll read them badly, or more likely not at all.
The usual conclusion is that one must accept a loss of control in exchange for productivity. I used to think so myself. I now tend to think that it's not the right way to look at it, because reading the code was never the goal. Reading was just the way we got guarantees about code. Focusing on the reading part is wrong.
We already stopped reading twice
I started my career along with Java and the JVM. It means I've rubbed shoulders as a junior with senior developers who had experience in C. They were keen to point out that Java developers don't know when their objects are freed: garbage collection decides for them.
When the JVM came out, C and C++ developers generally found it reckless. How can you run a serious system without knowing when memory is released? And yet, the last two decades have proven them wrong, especially in large-scale systems. The JVM has passed with flying colors, and languages without a GC, e.g., Rust, have chosen to enforce memory management at compile time.
The objection was relevant at the time, though. However, since then, we built machinery that made the opaque part observable: GC logs, heap dumps, profilers, and a whole industry of tuning. We didn't lose control over memory. We moved it from the source code to the observation of the running system.
The second time we let go of reading was the rise of Open Source dependencies. I challenge anyone to claim that they read their whole transitive dependency tree. A Spring Boot application pulls in hundreds of JARs; a Node.js application, thousands of packages. Do you read them?
Control went to lock files, Software Bills of Materials, vulnerability scanners, and a policy for choosing dependencies. When that machinery is missing, which often is the case, you get left-pad: eleven lines of JavaScript removed from npm broke thousands of builds in 2016. The lesson is not that depending on code you haven't read is wrong; it's that you need to set up the machinery before you stop reading.
I admit there's a difference with AI: GC and Maven are deterministic (to an extent). A Large Language Model isn't. However, it means that the machinery matters even more in the case of AI. It also means that the usual argument, "the compiler is smarter than me anyway", doesn't apply. The agent isn't a better compiler. It's a fast and tireless junior that you can't trust blindly.
Partition, not loss
To me, control isn't lost but partitioned.
Tools own the mechanical: formatting and style, nullness, common bug patterns, whether the tests are sensitive to changes, and whether the behavior that the tests exercise still works. These are checks that a human does badly and a machine does perfectly, every time, in seconds. Spending human attention on them is a waste, with or without AI.
Humans own three things.
- Intent: What the software is supposed to do. The specification, and the tests that encode it. If the agent writes both the code and the tests that verify it, nobody has checked intent.
- Boundaries: Public APIs, the security perimeter, the data model. Those are the parts where a mistake propagates to others, and where experience still beats current models.
- The irreversible: Database migrations, deletions, anything with a large blast radius. There's no way to undo this category of mistakes.
Tools are blind to several classes of problems:
- They don't catch wrong requirements; only a conversation with a human does.
- They don't catch concurrency bugs, except by luck.
- They don't catch performance regressions, unless you have performance tests in your pipeline.
- They don't catch architecture drift, unless you encode the architecture in tests, e.g., with ArchUnit.
- They don't catch injection, unless you run a dedicated scanner.
Each of these blind spots requires a human to look at the right place. Knowing where to look is the whole point.
Note: The next generation of senior developers
Juniors become seniors by reading code, a lot of it, including bad code. If nobody reads code anymore, where do the next seniors come from? I don't have the answer.
My flow
I can't generalize, but here are the guardrails I'm using to limit potential issues.
Note that the order in which guardrails fire matters. The earlier a problem is caught, the cheaper it is to fix.
- Instructions: Before the agent writes anything, it reads my instructions: coding conventions, forbidden patterns, project layout, etc. I described how I package them as skills. This is the only guardrail that fires before generation.
- Language and ecosystem: I have favored using statically and strongly typed languages. On top of that, I add a linter. If I can, I add static analysis tools.
- Testing: Unit tests and integration tests check the behavior. With property-based testing, I state the property, the runtime verifies it. Mutation testing checks that the tests are sensitive to changes. I generally finish with a healthy dose of integration testing.
-
Post verification: I believe this one is overlooked by most developers. For plans, I use my own
/challengersubagent, and for code, the regular/code-review.
Conclusion
Control over the text was never the goal. Control over the outcome is. The developers who review every line are right that control matters, but wrong about where to spend it. Decide what you must read, automate what you don't, and know what the automation cannot see.
To go further:
- Best Practices for Peer Code Review
- How one developer just broke Node, Babel and thousands of projects in 11 lines of JavaScript
- Error Prone
- NullAway
- Checkstyle
- PIT Mutation Testing
- jqwik
Originally published at A Java Geek on November 22nd, 2026.
Top comments (40)
Human review hitting a wall past a few hundred lines per hour matches what most teams see in practice. The workaround that worked for us is reviewing at the boundary, with contract tests and a diff budget per pull request, so the agent output is measured against behaviour instead of read line by line.
The distinction between reviewing code and controlling outcomes is important. I'd add one more layer to the guardrails: verify that the checks themselves are trustworthy. If an agent generates both the implementation and its tests, passing tests can create a false sense of confidence. Independent acceptance criteria, mutation testing, and checks against real system boundaries help close that gap.
This is particularly relevant when teams move from AI-generated MVPs to production systems. At IT Path Solutions, we see why the focus has to shift from inspecting every generated line to validating behavior, permissions, data integrity, and failure paths. Automation should reduce the review burden, not become the only source of confidence.
The guardrail order is the part I keep. /challenger on the plan is cheap; /code-review after a thousand-line diff is already a cleanup job. We now block generation when the plan names a migration or a public API change until a person has signed that bit off.
Great flow of yours, and I do almost the same thing. Thank you for this post!
There is one specific feature of agentic workflows, where review of agentic code is even better than with the humans: review of your own agent's PR.
I don't care if the code is not how I like it to be written, but I go through it and ask about this and that, question some approaches, ask about unusual language uses. I ask the agent that did it, in the same session. This way I find issues, and then the fix is very cheap. "Do we have such pattern somewhere else? -- Yes, and I fixed it in 10 more places".
It's like a live peer review, but the agent is never tired, does not sense my tiredness or bad mood, can answer my stupid questions and not spread the word in the coffee talk. And is not lazy to fix in 10x places rather than debating that it is OK like this.
With a code from a human colleague it is harder, no matter if they generated it with AI or not.
I started as a professional developer back in 1984, a decade before the first browser, in fact IP-based addressing over Ethernet was a distant third place behind Arcnet and IBM Token Ring networking. I've seen a lot of major changes over the years.
I just want to say this is a very good, practical and realistic summary of the current state of affairs and where to focus. 💯
Thank you!
Love the GC comparison! We didn't stop caring about memory, we just moved it to logs and heap dumps. I bet a heap dump for agents will show up soon.
The partition is the useful part: humans should spend attention on intent, boundaries, and anything irreversible, not on formatting the agent already got right. We also treat 'the tests the agent wrote' as not enough on their own — someone still has to own the spec those tests are supposed to enforce.
Reviewed-by-a-human stops being meaningful once the review is also a skim. The comments that go in the repo matter more than the ones that stay in the PR thread.
I think partitioning control this way makes review feel doable again because I can focus on intent instead of every line.
The partition works best when it is written down where the tooling can enforce it. A CODEOWNERS file that requires a human approval for anything under migrations/, the API schema and the auth code, while everything else can merge on green checks, turns "humans own the boundaries and the irreversible" into a rule instead of a habit.
On intent, the one signal I would add is any change to an existing test. A new test from the agent is fine, but an edited assertion in the same pull request as the code it covers is exactly the case where the agent moved the goalposts. A small CI step that flags modified assertions and asks for a human is cheap and catches it.
The GC comparison is the clearest way I have seen to explain why not reading every line is not the same as giving up control.