AI code review and approval
Which Code Changes I Let an AI Agent Approve
AI agents can now review, fix and approve code changes. Here is the rule I use to decide which AI approvals I trust and which ones still wait for me.

I let an AI agent approve a code change when two things are true: the worst outcome is cheap to undo, and it is easy to notice. If either one is false, I approve it myself. That rule decides it. Not the size of the diff, not the model version, and definitely not how confident the agent sounds in its summary.
This question stopped being theoretical. Agents that review a pull request, patch what they find and then approve the change are now shipping as products, not experiments. I run several SaaS products solo, so on paper this is exactly what I want. In practice, handing over the approve button is the most consequential decision in my whole AI workflow, and I treat it that way.
Approval is a bet on the blast radius
Reviewing and approving feel like the same job, but they are not. Reviewing is reading code and forming an opinion. Approving is accepting the consequences when that opinion is wrong. An agent can review well and still approve badly, because the quality of a review tells you nothing about what you lose when the review misses something. So I stopped asking whether the agent is good enough to approve. I ask what a wrong approval costs in this specific part of the codebase, and how long it would take me to find out.
What I let the agent approve
- UI and copy changes in Tadam's ad editor that render in a preview. If something looks off, I see it the moment I open the product.
- New tests and refactors fully covered by existing tests, where a red suite catches the mistake before any user does.
- Patch-level dependency bumps with a clean build and a lockfile change I can revert in one commit.
- Internal admin tools that only I use, where the only person who can get hurt is me.
- Prompt adjustments behind a feature flag in Luma.ai's generation flow, where turning the flag off is the whole rollback plan.
Every item on that list shares the same shape. Failure is loud, and reversal is a single action. Those are the zones where an agent approval saves me real time without adding real risk.
What never gets an agent approval
Arvuyot Yashir issues digital rental guarantees. Anything that touches guarantee terms, payment logic, or what a landlord sees in a signed document is owner-only, always. A wrong change there is neither cheap to undo nor easy to notice. It shows up weeks later, in a dispute, in front of someone who trusted the document. The same goes for authentication, permissions, billing logic that sits in front of paying users, and database migrations that drop or reshape data. A migration is a one-way door. No rollback button brings back a column the agent decided was unused.
The agent's confidence tells me nothing about the blast radius. Only the code path does.
The quiet failures are the dangerous ones
The visibility half of the rule matters more than people expect. A broken button gets reported within the hour. A slightly wrong permission check on a community platform like Brainers Club, with its 10,000+ members, might never get reported, or it gets reported by the wrong person. When a zone fails quietly, I do not let the agent approve there until I have turned the silent failure into a loud one. That usually means writing a test that asserts the invariant directly, like a member never seeing another member's private data. Once the failure is loud, the zone can move up the trust ladder.
How I set this up in practice
Each repo has a short file that splits the codebase into zones. The agent reviews everything and is free to propose fixes everywhere. But approval on owner-only paths routes to me, no exceptions.
# APPROVAL.md
agent-may-approve:
- app/(marketing)/**
- components/editor/preview/**
- **/*.test.ts
owner-only:
- lib/billing/**
- lib/auth/**
- db/migrations/**
- guarantees/**When my students at nCode and the business owners in the Claude Code Workshop ask me which agent to pick, I tell them the tool matters less than this file. Every serious harness can review code now. The real engineering decision is writing down where the agent's authority stops, before you need it.
Start narrower than you think
If you are turning on agent approvals this week, start with one boring, loud, reversible zone. Watch what the agent approves there for a few weeks. Widen the scope only when its record in that zone gives you a reason. Trust is earned per zone, not per model release, and the approve button is the last place you want to find out you guessed wrong.
A little more detail
Questions & answers
Should I let an AI agent approve its own pull requests?
Only in parts of the codebase where a wrong change is easy to notice and cheap to undo, like UI previews, test files or flagged features. For billing, auth, migrations and anything legal or financial, keep a human approver.
How do I decide which code paths are safe for AI approval?
Ask two questions about each area: if this change is wrong, will I notice quickly, and can I reverse it in one step? If both answers are yes, agent approval is reasonable. If either is no, keep it owner-only.
Is AI code review good enough to replace human review?
For catching many bugs, agent review is already useful. But approval is about accepting consequences, not just spotting issues, so the decision depends on the cost of a miss in that specific zone, not on the review quality alone.
How can I make a risky area safe enough for an agent to approve?
Turn quiet failures into loud ones. Write tests that assert the invariant directly, put changes behind feature flags, and make rollback a single action. Once failures are visible and reversible, the zone can earn agent approval.
Keep exploring.
Browse all articles

