Alright, it’s time to make code review fun again. (Was it ever fun?) Agentic coding made reviewing a lot less enjoyable for a while. +9000 -1984 ← never a fun diff to read. 😂 But now I like reviewing again!
TL;DR: Your agent should tell you the things you’ve traditionally inferred from reading code. You remain the judge of what matters and keep the mental model. Your review skill learns from your judgment calls over time.
Why did code review ever matter anyway?
We code review because:
- We care about the architecture and design of the code for its long-term maintainability.
- We want to keep shipping at a fast pace, unhampered by technical debt.
- We have to keep a mental model of our architecture, or else we can’t reason about it.
- Nobody wants the codebase to evolve into a poorly-designed, unrecognizable mess that even Claude can’t reason about!
AI code review tends to be great at finding little bugs but fails to care about the bigger picture. Unchecked, models degrade codebase quality over time. AI review misses here, because:
- models in Reinforcement Learning are trained at scale on benchmarks that don’t measure a model’s ability to maintain codebase quality over time (it’s both costly and challenging to measure) and
- correct architecture depends significantly on what the business values and wants to optimize for, context which you have but that code review agents are generally blind to.
You can address both issues by keeping yourself as the judge of architecture & design and by providing more business context that the agent is blind to. Keep being the engineer.
How I review in the agentic era
What I’ve traditionally tried to glean from code review:
- What’s the intent of this change?
- Is it aligned with the team’s intent?
- How does it work?
- What architecture is new or affected, and does it match our needs?
- Is the code organized into a good design?
- Does the change fit well with existing code?
- Do the tests do what they claim and claim things that matter?
- Is it secure and sufficiently performant?
- How will the user experience be?
- Are there bugs?
I used to have to read the code to discover these things, but no longer!
/cr https://github.com/org/repo/pull/123
“Magic genie, give me everything I’ve always cared about in 50 lines instead of 9000.” 😍
The /cr skill has my agent give me what I’ve historically had to glean from source code. It researches the PR’s context by pulling up its Jira ticket, any related tech or product proposal, and other documents that surface intent. Then it highlights any deviations from that intent for me to look into. I might know myself what was intended, or the review can ask the author to confirm.
Using this info, I can evaluate whether this PR does what we want and moves things in a good direction.
- It highlights potential issues, and I choose which ones to actually raise in a GitHub Review based on what I consider to be important (plus any of my own concerns that I discover).
- I’ll often ask questions for further insight or understanding, or explore relevant code that it links via GitHub.
- After I tell it what things I want addressed and how, it drafts PR comments in my own voice, with GitHub PR suggestions where a suggestion is self-contained.
- I choose whether to Comment/Approve/Request Changes, and it submits the review on my behalf.
I keep my mental model from the description of how it works and the architecture and design review. I sometimes still read code, especially when it helps me understand something faster. It’s rare now that I find things I care about that the agent missed, but when I do, I update the skill accordingly.
What does it look like?
Here’s an abbreviated /cr report on a teammate’s PR that lets editors upload a CSV of recipients for a targeted email campaign:
Intent: A valid CSV replaces a draft campaign’s audience. A file with errors keeps the previous list. Once delivery starts, the list can’t be replaced and the campaign can’t be deleted. The product proposal adds that editors see valid and rejected counts plus downloadable row errors.
How it works: The importer validates the whole file in memory before writing anything: encoding, header, column counts, ID format, duplicates, and whether the IDs exist. Then it locks the campaign and deletes only unused recipients. It rolls back if any reserved or sent rows remain, and otherwise bulk-inserts the new list.
Architecture: New table campaign_recipients, with a unique (campaign_id, user_id) and ON DELETE CASCADE from users. Nothing cross-service, and the importer has no callers yet.
Design:
# CampaignRecipient
+scope :unused ◀ not reserved, not sent
# Campaign
+has_many :recipients ◀ no dependent:; before_destroy handles it
+before_destroy :delete_unused_recipients, prepend: true ◀ aborts once delivery starts
# CampaignRecipientImporter (new)
+def call → Result(valid_count, rejected_count, errors) ◀ matches what the UI needs
Design verdict: Solid. Validation happens before any write, the swap is atomic, and the delete guard lives on the model, so every destroy path gets it.
1 🔴 The migration ships in this PR, but it has to run first — Important. No separate migration PR has been extracted. If the code deploys first, deleting any campaign returns a 500 until the migration runs.
2 🟡 The import runs in one transaction. How big can an audience get? — Your call. A planning doc says a past campaign upload blew past the old tool’s 50 MB limit and ran out of memory. If left unaddressed, a large upload could time out while holding the campaign lock.
3 🟡 A blank line rejects the whole file — Your call. CSV.new("user_id\n1\n2\n\n") ends with [], which fails the column-count check. Windows line endings do the same. If left unaddressed, editors get a confusing error on a valid file.
4 ⚪️ The spec says it “archives a CSV recipient” — Might not matter. The user is archived, and the cascade deletes the recipient row. If left unaddressed, the next reader could be misled about what account deletion does.
How I responded to each:
- I asked the agent to update /cr not to flag these, because we always do this by convention and a separate PR bot posts a reminder.
- I gave my agent permission and access to check the production DB via Snowflake. The largest past audience was about 260k users (only ~3 MB), so memory wouldn’t be a problem. I told it to drop this finding.
- I told it Windows line endings aren’t a concern here but that it’s still worth commenting for other blank lines. It drafted a one-click suggestion block for this.
- I asked to make it an optional suggestion block for this too.
✅️ I approved the PR with the agent’s suggested wording and code suggestions.
Creating these skills for yourself
Point your agent to this blog post and have it guide you through the process.
Both /cr (code review) and /github-voice (talk in my style) were born from my own pull request review history. Ask your agent to analyze a huge number of your own reviews (from before agents started writing and reviewing for you), and create one or both of these skills based on your own history. It should build in what you’ve demonstrated that you do and don’t care about, in addition to doing its own normal agentic code review.
Your review skill may look different than mine, but these core attributes are working well for me:
- Analyze your review history. Have the agent sort your past reviews into concerns you consistently raise and what you consistently don’t care about, plus PR comments you added that your agent wouldn’t have thought to raise. It’ll generate suggestions you’ll need to correct less often.
- Discover intent. Beyond the PR description, gather intent from the ticket and any related documents, including technical and product proposals, meeting transcripts, or planning docs. Glean and Unblocked are great for surfacing relevant context. Review findings must align with intent. When the PR body and code disagree, say which one matches other documents. Don’t suggest a fix that undoes the PR’s goal.
- Verify potential findings. Before claiming an apparent problem is real, check carefully. Explore beyond the diff into the branch and even other repos to verify your claims. Grade severity based on expected impact. False alarms and overstated findings are a nuisance.
- Look for hidden regressions, e.g. other usage of shared code and introduction of potential race conditions.
- Give context the reviewer needs to make a call. Each potential finding has a location, evidence, severity, and a consequence if left unaddressed. State the problem in prose and use annotated code as evidence. Consider showing the diff you’d suggest to apply a change, so the reviewer can judge whether any added complexity is worthwhile. Omit anything unworthy of the reviewer’s attention.
- Is it mine? Others’ pull requests end in my GitHub Review comments. My own PR gets fixes that I choose to apply.
- Things not to flag, like the migration that hadn’t been split into its own PR yet in the example above.
- Human in the loop: I choose what to comment on, how to adjust wording, and whether to approve, comment, or request changes.
- A voice skill: rules, common phrasings, things to avoid, and a log of corrections that could recur (not one-off wording or factual fixes). Agent research caveats are for the reviewer’s benefit and should stay out of review comments.
Use a smart model (you’ll use these skills a lot—quality and nuance matter). You can delegate extracting relevant attributes from old PR reviews to a cheaper model.
Automated self-improvement
My /github-voice skill is self-improving. It keeps a record (a file within the skill) of each correction I make to what it says on my behalf, in order to better represent my communication style. When the list grows, a subagent looks for recurring patterns in the feedback and updates rules based on any new pattern in one-off corrections it finds. As a guideline, it convert to rules after a pattern of 3+ repetitions, but the agent can use judgment and make changes immediately that are obviously or expliclty generally applicable.
I’d like to eventually make /cr self-improve in the same way. This one is a little more complex, because all of these need to be considered: findings I agreed with, findings I thought not important enough to raise, and findings of my own that it missed. If it only tracks rejections, any misunderstanding of my rationale or nuance would cause it to stop bringing important things to my attention. In the meantime, I request skill changes during reviews when I notice something. I also occasionally analyze a month of reviews for patterns and approve or reject the rule changes it suggests.
Personal results
In the past several weeks, I’ve reviewed 20–30 pull requests per week (vs 6.8 per week in the quarter prior), teammates have been giving positive feedback on my reviews, and I have actually enjoyed doing it! I get more of what code review was always aimed at. I used to often get lost in the trees when evaluating the forest. Now, review is no longer anywhere near as time-consuming nor mentally fatiguing.
What this unlocks
Despite the title, I rarely see multi-thousand-line PRs on my team. We have held to shipping things in smaller increments, in part, to keep code review manageable for people who review the code line by line (must watch 😂). It’s time for us to re-explore the ideal scope and size for a single chunk of work to explore, simplify, and ship. Agents can handle larger chunks than we could when we wrote the code. Every slice we create in the work brings nontrivial overhead in work tracking, QA repetiton, coordination, and integrating the slices. Smaller chunks do still reduce rollout risk, ease rollback, and simplify QA, so we mustn’t swing too far in the other direction. However, we can ship larger things when we’ve fully explored the problem space, the results we want are well communicated, and we can verify them. Code review need not hold us back from shipping bigger and faster.