AI Code Review: Who Approves Code When AI Wrote It?
A developer asks an AI assistant to add a discount field to the checkout. It writes forty lines, opens a pull request and, in a growing number of setups, another AI reviews that pull request and leaves comments. On 23 November, Anthropic went a step further: its new Claude Ship can also approve some pull requests itself, if the team has written a policy allowing it. For any business that ships software, the question now is which changes a machine may wave through, and which still need a person who will answer for them.
What is AI code review?
Code review is the step where someone other than the author reads a proposed change before it joins the main codebase. On GitHub and similar tools that change is a pull request, and the reviewer either approves it, asks for changes, or comments. The point is a second pair of eyes on bugs, security holes, unclear code and missing tests.
AI code review puts a model in that seat. It reads the diff and the surrounding code and posts comments, usually within minutes. Most tools stop there. The newer ones also push fixes for what they flag, and a few can now approve.
What did Anthropic launch with Claude Ship?
According to Anthropic's announcement of 23 November 2026, Claude Ship bundles three pieces for teams that keep their code on GitHub:
- Code Review, now generally available, which reviews pull requests at a depth the team sets per repository (Anthropic names Quick, Standard and Deep levels).
- PR Steward, in beta, which fixes failing checks, merge conflicts and review feedback. Anthropic says it is designed not to approve or merge.
- Claude Approvals, in beta, which approves pull requests according to a policy file the team writes and stores in the repository. Anthropic describes it as a smarter version of a CODEOWNERS file.
Three details from the launch are relevant here. Approvals only runs when the repository has a policy file on its default branch, and Anthropic recommends running it in observe-only mode first, then requiring its approval through branch protection. Approval is not merging, so existing protections and required checks still apply, as The Register noted in its coverage. And Anthropic's own notice says the tool "may miss bugs, security vulnerabilities, or other issues."
It is available on Claude Team and Enterprise plans, billed on token usage with spend limits an admin sets, and is not offered to organisations using zero data retention, the HIPAA configuration or customer-managed encryption keys. Anthropic is also offering eligible Enterprise customers at least $10,000 USD in credits if claimed by 15 January 2027. Those are vendor terms at launch and may change.
Claude Ship is one product, and GitHub, GitLab and several independent vendors offer AI review too. The decisions below apply whichever one you use.
Why does code review matter more when AI writes the code?
Because the author may not fully understand the change. When a developer writes forty lines by hand, they can explain each one. When an assistant writes them, the developer has read them, which is a weaker guarantee. Review used to be the second check on a change. With AI authors it is often the first careful one.
Volume rises too. Teams using coding assistants open more, smaller pull requests, and the senior people who do most of the reviewing become the bottleneck. That pressure is what AI review is built to relieve, and also why it is tempting to let it approve more than it should. The same dynamic is covered in staff building their own AI tools: output grows faster than oversight.
Which changes can AI approve, and which need a person?
Sort changes by what breaks if the review is wrong. A starting split for a small team:
| Change type | AI role | Person needed? |
|---|---|---|
| Docs, comments, copy text | Review and approve | No, spot-check weekly |
| Minor dependency updates with passing tests | Review and approve | No, unless the package is security-relevant |
| Tests, formatting, small refactors | Review, fix, approve | Optional |
| New features, business logic | Review and comment | Yes |
| Login, permissions, payments, personal data | Deep review and comment | Yes, a senior person |
| Database migrations, infrastructure, deploy config | Review and comment | Yes, plus a rollback plan |
| The approval policy file itself | Comment only | Always |
If the policy that decides what AI may approve can itself be changed by an AI-approved pull request, an AI-approved change can widen what AI may approve. Put the policy file under a rule that requires a named person, the way many teams already protect their CI configuration.
How do you write an approval policy?
Write it in plain language first, then translate it into whatever format your tool reads. A workable first version fits on one page:
- List the paths that always need a person. Folders for authentication, billing, data models, infrastructure and the policy file. Matching by path is crude but predictable.
- List the change types AI may approve. Documentation, test-only changes, formatting, patch-level dependency bumps. Be specific: "small changes" is not a rule.
- Set conditions. All checks pass, the diff is under a size limit, no new dependencies, no AI review finding above low severity.
- Name an owner. One person is accountable for the policy and reviews its decisions every week for the first month.
- Start in observe mode. Let the tool say what it would have approved while people keep approving. Compare for two to four weeks before switching on.
If a client contract, an insurer or a regulator expects human review of code changes, check the wording before letting AI approve anything. "Reviewed by a second person" in a security questionnaire may not cover a model.
What does AI code review catch, and what does it miss?
It tends to be strong on the mechanical layer: an unchecked null, an off-by-one loop, a missing test for a new branch, a secret pasted into config, an inconsistent name, a known-vulnerable function. It does this on every pull request at the same standard, including at 11 p.m. on a Friday when a tired human reviewer would skim.
It is weaker where the answer is not in the code. Whether a discount should stack with a loyalty credit is a business rule, and the model only knows it if someone wrote it down. Whether a change fits where the product is going, whether it makes a support headache next quarter, whether the customer actually asked for it: those need someone who knows the business. AI reviewers can also miss vulnerabilities, as Anthropic says of its own product, so a clean AI review lowers the risk without removing it. Our post on AI that hunts vulnerabilities covers where models do well on security and where they fall short.
How should a small team roll it out?
- Week one: comments only, on one repository. Pick an active one with decent tests. Developers rate each AI comment as useful or noise.
- Weeks two to four: tune. Adjust review depth and rules until most comments are worth acting on. If developers ignore most of them, people will ignore all of them.
- Month two: allow fixes. Let the tool push fixes for failing checks and review comments, with a person still approving.
- Month three: approval in observe mode for the low-risk categories, then switch on if its calls matched your people's.
Set a spending cap before turning anything on. Token-billed review on a busy repository can cost more than expected, and a deep review on every push adds up. The controls are covered in AI spend controls: turn them on. Check data terms too: your code goes to the vendor, so confirm what is retained and where.
What should you measure?
Three numbers, taken for a month before you start and tracked after:
- Time from pull request opened to merged. The main gain, and the one most teams feel first.
- Share of AI comments acted on. A proxy for signal versus noise.
- Defects found after release. If this rises, the tool is approving or missing too much, whatever the turnaround says.
Put the developer hours saved into the ROI calculator alongside the token cost. For most small teams the case rests on senior time freed up, and the defect number is the safeguard on that case.
Frequently Asked Questions
What is AI code review?
Using an AI model to read a proposed code change (a pull request) and comment on bugs, security problems, style and missing tests before it is merged. Most tools only comment. Newer ones, such as Anthropic’s Claude Ship announced on 23 November 2026, can also fix problems and, under a policy you write, approve routine changes.
Can AI approve pull requests on its own?
Some tools now allow it. In Claude Ship, approval is a beta feature that only runs when a repository contains a policy file the team wrote, and Anthropic recommends starting in observe-only mode. Approval is not merging: branch protection rules and required checks still apply. Anthropic’s own notice says the tool may miss bugs and security issues, so limit auto-approval to low-risk changes.
Which code changes should a person always review?
Anything touching authentication, payments, permissions, personal data, infrastructure or deployment settings, database migrations, and the approval policy file itself. Changes the author does not fully understand, including AI-written changes, belong on that list too. A person should also sign off on anything a customer contract or regulator would ask about.
Does AI code review replace a senior developer?
No. It catches a useful share of mechanical problems quickly and consistently, which frees senior people for design, risk and judgment. Someone still owns the policy, reviews the high-risk changes, and is accountable when something breaks. For a small team, the gain is usually faster turnaround, not fewer people.
How do you know if AI code review is working?
Track three numbers before and after: time from pull request opened to merged, the share of AI comments your developers act on, and defects found after release. If turnaround falls and post-release defects do not rise, it is working. If developers ignore most AI comments, tune the rules or the review depth before expanding it.
Ship faster without losing the second pair of eyes
We help software teams choose an AI review tool, write the approval policy and set the guardrails that keep risky changes in front of a person.
Related Articles
Offline AI: When Your Tools Need to Work Without Wi-Fi
When AI Says No Too Often: The Hidden Cost of Over-Cautious AI
When Did ChatGPT Come Out? Nov 30, 2022 (Full Timeline)
Ajan leads the ChatGPT.ca team: 200+ custom GPT builds and automation projects for 50+ businesses across 20+ industries. Based in Markham, Ontario. PIPEDA-compliant solutions.