Two code review loops I handed to agents
Key takeaway: Hand the waiting in code review to background agents, and keep yourself for the comments that need a real decision.
Code review is mostly waiting, so I handed the waiting to two background agents. One works my PRs as the author. The other checks the PRs I reviewed.
From the author’s side, you open a PR, wait for comments, decide which matter, fix those, push, and wait again. From the reviewer’s side, you comment, wait, then go back and check whether the change addressed what you asked. The judgment takes seconds. The rest is watching threads and reloading a PR into your head hours later.
The first agent watches my open PRs. When a comment lands, it triages it against our skills and context, then applies the fixes. The triage is what makes it worth having. A comment might be a real bug, a style preference the team’s conventions already settle, a question that needs an answer and no code, or a suggestion the team already decided against. An agent that applied every comment literally would churn the diff and quietly undo decisions that had reasons. The same SKILL.md files that teach it to build a feature give it something to judge comments against.
The second agent watches PRs I’ve commented on and checks whether the fix holds. A resolved thread means someone clicked a button. The author may have fixed the line I pointed at and missed the same mistake two functions down. That’s checking the outcome, not the output, without me rebuilding the context.
An agent working while nobody watches needs tight boundaries:
- A stop condition, so an author agent and a reviewer agent don’t pass a thread back and forth forever.
- The same lint, types, and tests as everyone else’s changes.
- Hands off design questions. Flag them for a person and move on.
- Small changes. If a one-line comment produces a forty-line diff, the triage went wrong.
That’s what you’d tell a junior engineer the first time they handled review feedback alone. With both agents running, I spend less time watching threads.