in ai, agents, code review
For most of my career, writing code was the slow part. You thought about a change, wrote it, tested it, and then waited a day for someone to review it. The review felt like overhead on top of the real work.
That has flipped. These days I often have more than one coding agent working in parallel, each on its own branch, each opening pull requests faster than I can read them. A feature that used to take me an afternoon now arrives as a 600-line diff while I am making coffee. Producing code is no longer the constraint. Understanding it is.
The honest reaction, and the dishonest one
There is a joke going around about two developers who approve each other’s 2,000-line pull requests in Slack DMs to skip code review altogether. It is funny because everyone has seen a milder version of it. When review becomes the bottleneck, the path of least resistance is to stop really doing it and keep clicking the button.
The opposite reaction is just as common: treat every AI-written line as suspect and call it “slop”. I find that a little rich. Plenty of codebases were landfills long before language models showed up, and a lot of what agents write today is cleaner and better tested than what humans were shipping to production five years ago. The problem isn’t who wrote the code. The problem is that nobody can carefully read ten times more of it.
So the useful question isn’t “can we trust AI code?”. It’s “where should human attention go now that it is the scarcest resource in the process?”.
Spend review where it buys the most
I have settled on a few rules. None of them are new, but agents make them urgent.
Make the machine prove the basics
Before a pull request deserves a human, it should already pass everything a machine can check:
types, lint, formatting, build, tests. Agents are good at fixing their own red CI, so let them.
On this site, a single pnpm check runs the typecheck, lint, format check and build, and
nothing gets reviewed until it is green.
Keep pull requests small, even when the agent doesn’t want to
Agents happily rewrite half a module to fix one bug. Ask for one change per pull request and send back anything that wanders. A 150-line diff gets an actual review. A 2,000-line diff gets a skim and a prayer.
Review intent and risk, not syntax
My review has moved up a level. I mostly ask: is this the right change? Does it touch money, auth, user data or anything destructive? What happens when it fails? Line-by-line style is the cheapest thing to delegate, to a linter or to another agent doing a first pass.
Write the rules down
Agents don’t remember last week’s review comments. If you keep correcting the same mistake, it belongs in the repo’s instructions file, a lint rule or a test, not in another comment. Repeated feedback is a missing guardrail.
Where automatic approval is fine
Some approvals really are ceremony. A trusted teammate’s change to a low-risk internal repo, or a
dependency bump from a bot when CI is green. For those I wrote a small tool,
autoapprove-prs. It’s a Bash script on top of
the gh CLI that approves open pull requests, but only under strict conditions:
- the author is on an explicit allowlist
- you didn’t write it yourself
- it is not a draft
- you haven’t already approved its current head commit, so a new push needs a new approval
autoapprove-prs -r acme/widgets -a alice,app/dependabot --every 1m
The README opens with a warning, and I mean it: an automatic approval skips the review it stands for. Use it only where your team has agreed that a human review adds nothing, and where branch protection still enforces CI. It isn’t a way around code review. It’s a way to stop pretending to do one where it was never needed, so the real reviews get your full attention.
What changes for us
I am convinced the job is shifting from writing code to directing and verifying it. That isn’t a demotion. Knowing what good looks like, spotting the risky line in a long diff, and designing the checks that catch problems automatically are harder skills than typing, and they matter more now, not less.
Teams that pretend review still scales the old way will drift toward rubber-stamping. Teams that redesign it (more automation, smaller changes, human attention aimed at risk) will get the speed of agents without losing the plot. I know which of the two I would rather work on.