It’s a Plan

AI Code Review: What to Hand Over, How to Start, What to Check

How to split code review between AI and people, run a two to four week pilot on one repository, and track accepted comments, noise, review time and later defects before you make the AI review required.

Andrii PoluosmakUpdated 13 min read

Split the work before you switch AI code review on. Hand the AI pull request summaries, style and convention checks, obvious bugs, missing tests and known security patterns. Keep design, scope, data and security decisions, and the merge, with people. Then try that split on one repository, with non-blocking comments, and track accepted comments, review time and the defects you find later.

In Sonar's State of Code Developer Survey Report 2027, with 1,026 respondents, 53% said they spend more time reviewing code than creating it, compared with 18% who said that was true before they adopted AI tools. An AI code reviewer can take some of that load off your team or add noise to it. Before you make its review required, run a pilot for two to four weeks and find out which you get.

What AI code review does well today and where it fails

You can use AI code review to explain a change and spot local problems. It falls short where the right answer depends on wider context, your team's intent or a design decision.

In a survey by Carnegie Mellon University and Microsoft researchers, 79% of 996 respondents at a large software company reported using AI to understand a pull request and guide the review, the top use of AI in review. Microsoft's internal AI reviewer flags style inconsistencies, minor bugs, potential null references and inefficient algorithms, according to the company's engineering blog. Start with a summary before anyone opens the diff, plus a first pass for problems a person can confirm in a few lines of code.

In a July 2026 study, University of Melbourne and Monash University researchers analyzed 31,073 pairs of CodeRabbit comments and developer feedback from 239 GitHub repositories. Developers accepted 36.4% of the comments, including those that became new issue tickets, discussed 7.3% and rejected 56.3%. Of the 17,500 rejected comments, they turned down 43.3% as false positives and 23.7% because of design trade-offs they had chosen on purpose. Write your deliberate trade-offs into the rules the AI reads, so you explain them once.

Why developers rejected CodeRabbit comments

Source: University of Melbourne and Monash University, Is Agentic Code Review Helpful?

Why developers rejected CodeRabbit comments
False positive43.3%
Intentional trade-off23.7%
Developer preference18.3%
Out of scope10%
Redundant4.7%

Have the author reproduce a reported bug before changing the code. In the same study, developers rejected 35.1% of functional comments (on bugs, validation or logic) as invalid, compared with 25.1% of maintainability comments.

In an October 2026 arXiv benchmark, eight frontier models caught between 32.5% and 78.1% of 265 real changes that introduced vulnerabilities into nine critical systems, including Firefox, V8 and OpenSSL. In 68% of the misses, the agent commented on a file that held the flaw but argued for a different mechanism. Keep a person on security, and if the AI comments on one line of a sensitive file, have that person read the whole file.

Finish the human review even if the AI finds nothing. Anthropic's docs for Claude's Code Review say: "A review with no findings doesn't mean your code is error-free or secure." In the Carnegie Mellon and Microsoft survey, 54% said AI comments were incomplete half the time or more.

The split: review work for the AI and review work for people

Give the AI the checks you repeat on each pull request, and leave people the calls that depend on intent or cost a lot to undo. Microsoft, whose internal AI reviewer supports over 90% of its pull requests, says on its engineering blog that the goal was "to let AI handle the repetitive or easily overlooked aspects of reviews, freeing human reviewers to focus on higher-level concerns."

Review workThe AIPeople
SummaryDescribes what the pull request changesCompare it with the issue and the intent
Style and conventionsFlags breaks of the written rulesWrite and update the rules
Obvious bugsFlags minor bugs and possible null referencesConfirm the bug and choose the fix
TestsPoints to changed code without testsDecide which behavior needs a test
SecurityFlags known risky patternsDecide security tradeoffs, review sensitive changes
Design, scope and dataSummarizes the changeDecide architecture, API shape, scope and retention
MergeCommentsApprove and merge

A pull request card leads into an AI panel with five checked rows and then into a People panel with four open rows and a Merge button at the bottom.

Check your tool's defaults before you hand it any of this work. Anthropic's docs say Claude's Code Review focuses by default on "bugs that would break production, not formatting preferences or missing test coverage", so you need guidance files for style and tests. GitHub Copilot code review does not review logs, SVG files or dependency management files such as package.json and Gemfile.lock, according to GitHub's docs. List what your tool skips and name the person or tool that checks it.

Write down the decisions your team keeps. The engineer behind the Red Mug Development blog has the agent stop and ask about scope, data retention, API shape that other people will consume, and security tradeoffs. Start from those four and add the parts of your system where a wrong call is hard to undo.

First steps: one repository, non-blocking comments and a rules file

Run the pilot on one repository for two to four weeks, then use its numbers to decide whether to add a second.

  1. Choose the repository. Pick one with several pull requests a week and a tech lead who will own the pilot.
  2. Record a baseline. For the last four weeks, note the time from open to merge, human comments per pull request and defects you traced to merged changes.
  3. Turn the reviewer on for that repository only. GitHub's docs say repository owners can have Copilot automatically review all pull requests that people with access to Copilot create in the repository.
  4. Keep comments non-blocking. Leave the AI out of required approvals and required checks.
  5. Write the rules file. Start with 10 to 20 specific instructions and limit any single instruction file to about 1,000 lines, as GitHub's docs advise.
  6. Set the budget. GitHub's docs estimate an average Copilot review at $0.25 with Lite, $1.50 with Balanced, the default, and $10 with Max, with Actions minutes extra. Multiply the figure for your level by the reviews you expect.
  7. Write the exit rule. Decide now which numbers will make you expand, adjust or stop.

Fill the rules file with conventions a new teammate could apply: naming, error handling, the tests a change needs, files to ignore and the trade-offs you chose on purpose. Keep the automated code review you already run, such as linters and type checks, and tell the AI to skip what they catch. GitHub's docs warn that "Copilot may not follow every instruction perfectly every time" and advise adding new instructions one at a time or in small groups. Test each group on real pull requests before you add the next.

Give the file an owner, and let the whole team edit the list behind it. In It's a Plan, several people can edit one page in Docs at the same time and download it as Markdown, so you can turn the agreed list into the rules file.

What to check: comments, noise, review time and defects found later

Keep four counts through the pilot, and read them every week.

Accepted and dismissed comments

Label every AI comment before its pull request closes. The arXiv paper "Automated Code Review In Practice" describes the three labels used at Beko: Resolved for an implemented suggestion, Won't Fix for a comment that is faulty or cannot be implemented, and Closed for one not implemented for another reason. Of 1,408 AI comments on merged pull requests at Beko, 73.8% carried the Resolved label and 21.3% Won't Fix. Set a target for your own repository, because the Resolved share was 55% in one Beko project and 90% in another.

Noise and false positives

Add a reason to each dismissal, then fix the cause:

  • False positive: add the context the AI could not see to the rules file.
  • Deliberate trade-off: write the decision into the rules once.
  • Preference: drop the rule or move it to a linter.
  • Out of scope: tell the AI to comment on changed code only.
  • Redundant: tell the AI to skip what other checks cover.

Review time

Time your own pull requests from open to merge and compare them with your baseline. Microsoft reports on its engineering blog that in early experiments, 5,000 repositories with its AI reviewer saw median pull request completion time improve by 10 to 20%. At Beko, the time to close a pull request rose from 5 hours 52 minutes before CodeReviewBot to 8 hours 20 minutes after it, though in one of three projects it fell from 6 hours 6 minutes to 3 hours 7 minutes.

Pull request closure time at Beko before and after CodeReviewBot

Source: arXiv, Automated Code Review In Practice

Pull request closure time at Beko before and after CodeReviewBot
Project 1 before2.8 h
Project 1 after4.6 h
Project 2 before6.1 h
Project 2 after3.1 h
Project 3 before20.4 h
Project 3 after30.9 h

Count human comments too. At Beko, people left 0.31 comments per pull request before the bot and 0.28 after it, while the bot left 3.65. If human comments fall in your pilot, ask reviewers what they stopped checking.

Defects found after the merge

A July 2026 arXiv study of 1.02 million reviewed pull requests from 207 GitHub projects found that review patterns involving agents were associated with faster decisions but not with better review quality. Log each defect you find after the merge, with the pull request that introduced it and what the AI said there. Keep the log open after the pilot for defects that appear late. If you file every escaped defect and deferred finding as an issue, Dashboards in It's a Plan count them when you open the page, so you don't collect the numbers by hand.

The decision at the end

  • Expand if the accepted share is on target and review time and escaped defects are no worse than the baseline.
  • Adjust if one dismissal reason leads: fix the rules and run two more weeks.
  • Stop or narrow the AI's work if review time or escaped defects rise.

Rules that keep it safe: the AI comments, people decide and merge

Put the rules in the settings and in your team agreement.

  • Check the approval setting. GitHub's docs say Copilot's reviews do not count toward required approvals by default, and that a setting enabled at repository, organization and enterprise level lets Copilot submit an approving review that satisfies the rule. Keep that setting off. Anthropic's docs say that by itself, a review by Claude's Code Review doesn't approve or block the pull request, and that its result counts toward approvals where a Claude Approvals policy file uses it.
  • Keep the gate out of the rules file. GitHub's docs list "Block a PR from merging unless all Copilot code review comments are addressed" as an unsupported instruction, so set merge rules in your Git host.
  • Answer every finding. The rule on the Red Mug Development blog is "Every finding: fixed, disputed, or deferred, in writing." Link the commit for a fix, give the reason for a dispute and open an issue with an owner for a deferral.
  • Let people apply fixes and merge. On its engineering blog, Microsoft says its AI does not commit suggested changes directly, and the author remains in control.
  • Read the change before the AI's comments. In the Carnegie Mellon and Microsoft survey, 46% worried half the time or more that their own review was insufficient after relying on AI. Ask reviewers to form a view of the design first.

A comment card branches to three status pills, Fixed, Disputed and Deferred, the Deferred pill also leads down to a new issue card, and all three pills lead to a Merge button.

If the pilot meets its targets, make the AI review a required step: run one on every pull request, and have a person answer its findings before the merge. Find out what a required check proves in your tool. Anthropic's docs say the check run of Claude's Code Review doesn't conclude as a failure, so requiring it confirms that the review ran and leaves open whether the code passed.

How to compare AI code review tools without a ranking

Put the same four questions to each tool, and answer them from its docs before a trial.

QuestionWhy it mattersWhat the docs say
Context: the diff or the whole codebase?A diff alone may not show why the code is built that wayGitHub: Copilot analyzes the entire repository. Anthropic: Claude's Code Review reads the diff and the surrounding code, without building or running it
Rules: which branch do they come from?A pull request could change the rules it is reviewed underGitHub: Copilot reads them from the head branch. Anthropic: Claude's Code Review never takes REVIEW.md from the pull request's own changes
Git integration: is your host supported?Comments must appear where your team reviewsGitHub: Copilot's list includes GitHub.com, IDEs and Azure DevOps. Anthropic: Claude's managed reviewer covers GitHub, including GitHub Enterprise Server
Data handling: does it fit your retention rules?Retention rules can exclude a toolAnthropic: Code Review isn't available to organizations with Zero Data Retention enabled or the HIPAA configuration applied

If your tool takes its rules from the head branch, require a person to review every change to the rules file. Then run each tool on your shortlist against copies of the same ten past pull requests, including some with a defect you found later, and compare how your team labels the comments.

Turn the pilot into a list of issues

Open one issue for each step: baseline, settings, rules file, weekly counts and the final decision. Track your AI review pilot as issues in It's a Plan, and let an AI agent pick up the follow-up fixes while people keep the merge. The agent changes only what you allow, and you can open every step it took.

Key takeaway

Split the review work before you switch AI code review on. Hand the AI pull request summaries, style and convention checks, obvious bugs, missing tests and known security patterns, and keep design, scope, data and security decisions, and the merge, with people. Pilot it on one repository for two to four weeks with non-blocking comments and a rules file, answer every finding in writing, and make the AI review required only if accepted comments, review time and escaped defects meet the targets you wrote down before the pilot began.

Frequently asked questions

Can AI code review replace human reviewers?

No. Give the AI summaries, style and convention checks, obvious bugs, missing tests and known security patterns. People keep design, scope, data and security decisions, and the merge. Finish the human review even if the AI finds nothing: Anthropic's docs for Claude's Code Review say that a review with no findings doesn't mean your code is error-free or secure.

How long should an AI code review pilot run?

Run it for two to four weeks on one repository, with non-blocking comments and a rules file of 10 to 20 team conventions. Record a baseline for the last four weeks first, and write down which numbers will make you expand, adjust or stop.

How do we know whether an AI code reviewer helps or adds noise?

Label every AI comment as accepted or dismissed, with a reason for each dismissal. Compare the time from open to merge with your baseline, count human comments, and log each defect you find after the merge with the pull request that introduced it.

Does a GitHub Copilot code review count as an approval?

Not by default. GitHub's docs say Copilot's reviews do not count toward required approvals by default, and that a setting enabled at repository, organization and enterprise level lets Copilot submit an approving review that satisfies the rule. Keep that setting off so that people approve and merge.

Andrii Poluosmak

Founder

Andrii founded It’s a Plan and leads its product and roadmap, from the open-source edition to Pro for teams. He works with the project’s contributors and the teams that run It’s a Plan.

All posts by Andrii Poluosmak

Put your next project on the board.

The open-source issue tracker you host yourself.