AI & Tech
The Line-by-Line Code Review Is Dead
AI can generate more code than any team can carefully read. The answer isn't to review faster. It's to review smarter.
5 min read
We’re changing how we write software, but most teams are still reviewing it like it’s 2015.
An AI agent can spit out a feature in minutes — API endpoints, migrations, tests, frontend components, a refactor you didn’t ask for, the whole thing. Then we do the familiar ritual: assign a senior engineer to read hundreds or thousands of lines, line by line, like a monk copying scripture.
I’ve done that review. You’ve probably done that review. Everyone ends up tired, the pull request gets a “looks good” with two nitpicks, and we all pretend the process guaranteed quality.
I don’t think this scales anymore. And honestly, I’m not sure it ever scaled as well as we told ourselves.
The bottleneck moved
Code generation used to be the slow part. That constraint is getting weaker every month.
Human review capacity isn’t getting weaker at the same rate. There are still only so many experienced engineers in a team, and they still have the same number of hours in a day. When every developer can generate more code with AI assistance, pull requests pile up. Review becomes rushed. People skim. Approval turns into a social gesture instead of an engineering control.
Generating more code doesn’t mean you’re delivering more value. It just means you have more code.
Not every line deserves the same attention
I’m not arguing for no review. I’m arguing against pretending every change carries the same risk.
If an AI agent tweaks the padding on a dashboard card, that’s not the same as modifying the authorization logic that keeps one customer’s data away from another customer. One is annoying if it’s wrong. The other can turn into a security incident, a legal problem, and a very bad week.
But our review habits often treat them similarly because they both arrive as pull requests.
The shift I want to see is simple: move from line-by-line review as the default to risk-based verification as the default. Spend human attention where human judgment actually matters.
- Business rules and domain invariants. Does the code enforce the thing the business actually means?
- Security and authorization boundaries. Can someone see or do something they shouldn’t?
- Architectural decisions. Did the agent put this logic in the right place, or did it just make it work?
- System behaviour and contracts. What breaks downstream?
- Failure modes. What happens when the database is slow, the queue retries, or the third-party API lies?
High-risk changes still deserve careful line-by-line review. The difference is that we choose it deliberately, instead of spending the same expensive attention on every CSS tweak and every auth boundary.
From prompt engineering to loop engineering
The more interesting question isn’t “how do I get the AI to write better code?” It’s “how do I build a system where bad AI-generated code has a hard time surviving?”
I’ve started thinking about this as loop engineering. The process looks something like this:
- Define the intent. Acceptance criteria, business rules, security constraints, and architectural expectations before implementation starts.
- Set boundaries. The agent needs to know which module owns what, which dependencies are allowed, and which invariants cannot be violated.
- Execute in isolation. Let the agent work in a clean worktree or sandbox.
- Run quality gates. Tests, contracts, architecture checks, security scans, linting, the boring stuff that catches boring mistakes.
- Repair in bounds. The agent can fix failures, but it doesn’t get to weaken the tests or bypass the checks to make the pipeline green.
- Escalate when judgment is needed. Security-sensitive changes, architectural deviations, ambiguous requirements, and unresolved failures come back to a human.
- Release with evidence. Not just “it passed CI”, but “here’s why we believe this is safe enough to ship.”
The point isn’t autonomous code generation. It’s accountable execution.
The green pipeline can lie
One thing I keep coming back to: an AI agent can write bad code and then write tests that politely agree with it.
Everything passes. CI is green. Everyone feels good. Production is where the truth comes out.
A green pipeline is evidence, not proof. I want tests that try to falsify behaviour, not just confirm the happy path the generator already had in mind. I want contract tests that come from agreed behaviour, security tests that challenge boundaries, and architecture checks that catch forbidden shortcuts.
Most of all, I want a human being asking the annoying question: “what are we assuming here?”
Senior engineers become system designers
This is the part I actually find exciting.
When implementation gets cheaper, good judgment gets more valuable. Senior engineers spend less time being the fastest typist in the room and more time designing the environment where code — human or AI-generated — can be produced safely.
That means clearer domain boundaries, better specs, better observability, sharper review questions, and stronger release discipline. It also means knowing when not to trust the pretty diff.
The best engineering teams I know aren’t the ones producing the most pull requests. They’re the ones that can explain why a change is safe, what it might break, and how they’ll know quickly if they’re wrong.
So no, I don’t think line-by-line review disappears. I think it stops being the default ritual we apply to everything. Keep it for the risky stuff. For the rest, build loops, gates, and evidence.
The job isn’t to read every line anymore. The job is to know which lines can hurt you.
This post was originally published as an edition of my LinkedIn newsletter, Shoutout from Yoosuf .
Related reading
-
Stop Hiring People Just to Write Code
Why AI-assisted development makes systems thinking more valuable than raw coding output, and how hiring, mentoring, and engineering roles need to change with it.
-
Is AI Taking Jobs, or Are Companies Reshaping Their Workforce?
A look at the 2026 layoff wave through a less convenient lens: AI productivity, post-pandemic over-hiring, cost restructuring, and the difference between automation and narrative.
-
The Next 18 Months Will Redefine Cybersecurity
Why AI agents, machine-speed attacks, identity sprawl, software supply chains, and recovery failures are pushing cybersecurity from a perimeter problem into an architecture problem.