diffox
Blog

Should AI code review approve pull requests?

AI code review tools such as Copilot code review and CodeRabbit can approve pull requests. Is that enough to merge? We read the docs and the research.

ShareXLinkedIn

Summary. GitHub let Copilot code review approve pull requests in preview on 1 September 2026 and made the feature generally available on 28 October 2026; CodeRabbit and Cursor also have an option that approves pull requests. This post covers what an approval changes on GitHub, what 6 review tools do today, and what research says about a model’s approval. On 4 November 2026 we read the tools’ documentation, two security standards that tie approval to people, two peer-reviewed studies, and what two companies that leave approval to AI wrote about it themselves.

  • Every tool that can approve a pull request ships with the feature off. Of the 6 tools we read, 3 can approve pull requests: Copilot, CodeRabbit and Cursor. Whether Copilot’s approval counts toward required approvals is a separate setting; CodeRabbit’s counts as soon as you turn the feature on.
  • A model’s verdict can tip either way. With “correct code” written at the top of the code, models from OpenAI, Google and Anthropic caught incorrect Python solutions 11.7–15.4 points less often. In another study, models that were also asked for a reason and a suggested fix rejected correct solutions more often.
  • Security standards count only human approval. The top source level of SLSA, a framework for the software supply chain, requires every change to be approved by at least two trusted persons; OpenSSF Scorecard, which scores the security of open source projects, doesn’t count a review by AI bots as code review. GitHub, too, doesn’t let the person who gave Copilot a task approve the pull request Copilot opened.
  • Read the AI’s verdict as a comment, and let a person merge. Even Anthropic and Intercom, which leave approval to AI, set limits: Anthropic keeps human approval for some codebases, Intercom doesn’t let its agent approve large pull requests, and both log every automatic approval.

What changes if the review bot approves?

3/6review tools can approve a pull request, each only once you turn it on
3/3of those tools ship with approval off by default
2+trusted persons approve every change at SLSA’s top source level
+1approval a ruleset adds when Copilot opens a pull request under its own identity

If an AI review already comments on your team’s pull requests, you have probably heard about the next step: the same review can approve the pull request. For Copilot code review, GitHub opened this as a preview on 1 September 2026 and made it generally available on 28 October 2026. CodeRabbit and Cursor also have an option that approves pull requests. It sounds like one question, but there are really two: does this approval count for the merge, and should it?

This post first explains what an approval changes on GitHub. Then it looks at the documentation of 6 tools: Claude Code, OpenAI Codex, GitHub Copilot, Cursor, Google’s Gemini Code Assist and CodeRabbit. After that it turns to two peer-reviewed studies of how a model judges code, to the standards that tie approval to people, and to what two companies that leave approval to AI say about it themselves.

In the prompt injection post we covered where review tools read their rules from; in the cloud agents post, who approves a pull request an agent opens; and in the benchmarks post, how the quality of a review tool is measured. This post looks one step further: once the review is done, who should make the call?

What does an approval do on GitHub?

The weight of an approval is set by the rules you put on the branch. On GitHub, these rules live in a classic branch protection rule or in rulesets; the settings that concern approval are the same in both:

Branch rules decide what an approval is worth. Without a rule, a merge needs no approval. Required approvals Required approval: Only people with write access count. An author can’t approve their own PR. Code Owners Code owner approval: No merge until the person or team in CODEOWNERS approves. Dismiss stale approvals Stale approvals drop: If the diff changes after approval, it needs a new one. Most recent push Last push approval: Someone other than whoever pushed last must approve.
Source: GitHub’s documentation on branch protection, rulesets and CODEOWNERS, 4 November 2026. The labels are the settings’ names on GitHub.

Without a rule, a merge needs no approval; an approval is only a record. With required approvals on, GitHub counts only approvals from people with write access to the repository, and a pull request’s author can’t approve their own pull request. “Request changes” depends on the same rule: according to GitHub, this option is only informational unless a rule requires a pull request. When one does, the pull request can’t be merged until the person who requested changes approves it, or someone with write access dismisses their review. According to GitHub, repository owners and administrators can merge a pull request even when it has no approval.

The code owner setting ties approval to specific people. With “Require review from Code Owners” on, the person or team listed in the CODEOWNERS file as a directory’s owner has to approve every pull request that touches that directory. According to GitHub, code owners must have write access to the repository. The file is read from the branch the pull request will merge into, so a CODEOWNERS file changed by a pull request isn’t used for that pull request.

The last two settings are about changes that arrive after an approval. With “Dismiss stale pull request approvals” on, the approval is dismissed when the diff changes, and the pull request waits for a new one. “Require approval of the most recent reviewable push” requires an approval from someone other than the person who made the last push. According to GitHub, if you are worried about unapproved content being added to an approved pull request, dismissing stale approvals is safer. This applies to AI tools too: Bugbot’s Autofix and CodeRabbit’s fix command can commit to the pull request’s branch.

There is one more source of approvals. An AI review running in your own CI can approve a pull request with the workflow’s GITHUB_TOKEN; the Actions setting “Allow GitHub Actions to create and approve pull requests” is what allows it. According to GitHub, this permission starts off in a new repository in a personal account, while a new repository in an organization takes the setting from the organization; in a new organization, it is off too. GitHub added this setting in January 2022 to stop someone from satisfying a required approval with Actions and merging a change nobody else had reviewed.

Which review tools can approve a pull request?

We looked for answers to the same questions in the documentation of 6 tools: can the tool approve a pull request, can it stop a merge, and does its approval count toward required approvals?

6 AI code review tools: whether each can approve a pull request, whether it can stop a merge, and whether its approval counts toward required approvals
ToolCan it approve a pull request?Can it stop a merge?Does its approval count toward required approvals?
Claude Code ReviewNo; according to the documentation, a review never approves the pull requestNo; the check run never concludes as a failure. Your own CI can stop the merge based on the findings—
Codex code reviewNot stated in the documentationNot stated in the documentationNot stated in the documentation
Copilot code reviewYes, if you turn it onIts default is “Comment”; the only verdict the documentation lets you turn on is an approvalNot by default; a separate setting makes it count, and it can be limited by file path
CursorThe PR Routing & Approval agent approves low-risk pull requests if you turn it onBugbot’s check is neutral by default; where your organization has the option, it can fail on unresolved findingsNot stated in the documentation
Gemini Code AssistNot stated in the documentationNot stated in the documentationNot stated in the documentation
CodeRabbitYes, if Automatic Approvals is on; it is off by defaultYes; with the same setting on, it sends “Request changes” to a pull request it left findings onYes, once you turn the feature on

Source: the tools’ documentation, 4 November 2026. “Not stated in the documentation”: in the pages we read that day, we found no sentence that describes this. Google’s Antigravity documentation has no product that reviews pull requests. The example review workflow in OpenCode’s GitHub documentation comments on the pull request and doesn’t mention approval.

Copilot has two separate switches. In the repository settings, “Allow Copilot to approve pull requests” lets Copilot approve, and “Allow Copilot approvals to count toward merge requirements” lets that approval count toward the merge requirements. You can limit the second to pull requests in which every changed file matches patterns you set. According to GitHub, approvals are off by default; on an enterprise account, the default is that organizations can’t turn Copilot approvals on. Even with approvals off, the overview of every review says whether Copilot considers the pull request ready to approve; on its own, this assessment doesn’t count toward the merge requirements. If new commits arrive after Copilot approves, its approval is dismissed.

One detail can be confusing: according to GitHub’s documentation, Copilot’s approval shows up in the reviewers list in the same section as the approvals that count, but with the default setting it doesn’t count toward required approvals.

In CodeRabbit, a single setting turns approval on: Automatic Approvals. It is off by default. Once you turn it on, CodeRabbit sends “Request changes” to a pull request where it left a comment asking for a fix, and approves once the comments are resolved and it has reviewed the latest commit. Its approval counts toward required approvals. With the same setting on, the @coderabbitai approve command approves too, according to the documentation even if the latest commit hasn’t been reviewed. By default, a pull request’s author can also use this command on their own pull request; allow_author_approval: false turns that off.

In Cursor, what approves pull requests is an agent separate from Bugbot: PR Routing & Approval. If you turn on “Automatically Approve PRs” and write your approval criteria, it approves low-risk pull requests. Bugbot’s own check, by contrast, concludes as neutral by default even when it finds issues; according to Cursor, making this check required doesn’t stop a merge on its own.

The other tools don’t approve, or their documentation doesn’t mention approval. Claude Code’s Code Review never approves or blocks a pull request, and its check run never concludes as a failure. Codex leaves a review the way a teammate would, and on GitHub it flags only P0 and P1 severity issues. Gemini Code Assist adds a comment to the pull request’s Conversation tab and comments on the changed lines.

What do the tools say about their own approval?

The tools come at approval from different directions, but the warnings in their documentation are close. Anthropic draws the line most clearly: Code Review doesn’t approve or block the pull request, and the decision to merge stays with your team. It adds that a review with no findings doesn’t mean the code is free of errors or secure. OpenAI says that the review rules you write for Codex don’t replace tests, branch protection or required approvals.

GitHub’s two texts stress different things. The announcement of 28 October 2026 presents Copilot as both reviewer and approver, and suggests using Max, its most thorough review level, together with approvals on the repositories where a missed issue would do the most harm. Its documentation, on the other hand, says Copilot is not guaranteed to find every problem, and asks you to validate its feedback carefully and supplement it with a human review.

CodeRabbit and Cursor tie approval to risk. According to CodeRabbit, if you set no risk limit, it can approve at any risk level, including “Critical” on its own scale; it recommends the limit to keep higher-risk pull requests for people. It also asks you to require human approval so that someone reads what it skipped. Cursor’s agent doesn’t approve if Bugbot or the security agent reported a finding that needs human review. If a pull request changes the approval rules, it doesn’t use the changed text to relax that pull request’s requirements. According to Cursor, this agent doesn’t replace a full code review.

How far can you trust a model that approves code?

A review tool’s approval is, in the end, a model’s verdict that “this work is done”. We covered the known biases of judge models in the LLM-as-a-judge post; one of them is a model rating its own output highly. Anthropic’s own experiment (24 March 2026) shows what this looks like when code is approved; we also touched on this example in the harness engineering post. For long coding tasks, they used a separate evaluator model to check the work. In early runs, the model found real issues, then talked itself into deciding they didn’t matter and approved the work anyway.

According to Anthropic, agents skew positive when they grade their own work. Separating the one that does the work from the one that grades it helps, but doesn’t end this leniency on its own, because the evaluator is also a language model inclined to be generous towards work a model has written. This is Anthropic’s own observation, not a measurement.

An example measured on code comes from a peer-reviewed study published at EACL 2026, a conference on language technology. The researchers collected one correct and one incorrect solution for each of 200 problems in each of 5 programming languages, and asked judge models whether the code was correct. Then they added small things to the code that didn’t change what it does. Of the changes that pushed the model towards “correct”, the largest effect came from a one-line “correct code” comment at the top of the code:

200 incorrect Python solutions per model; each bar is the share the judge called “incorrect”. GPT-4o (no comment): 63.1%; GPT-4o (with “correct code”): 51.0%; Gemini 2.0 Flash (no comment): 63.5%; Gemini 2.0 Flash (with “correct code”): 51.8%; Claude 3.5 Sonnet (no comment): 80.7%; Claude 3.5 Sonnet (with “correct code”): 65.3%.
Source: Moon et al., “Don’t Judge Code by Its Cover”, EACL 2026 Findings, Table 2. Each bar is the share of the same 200 incorrect Python solutions that the judge called incorrect; for closed models, the mean of 3 trials. The models are the versions the study tested.

In each pair the solutions are identical; only the comment on the first line differs. The three models’ catch rate for incorrect solutions fell by 11.7–15.4 points, and the same comment made “correct” a more frequent answer for correct solutions. In other words, the models trusted what the code said about itself more than what it did. The closest thing in a pull request is a sentence like “this change is safe” in the description or in a comment. In the prompt injection post we covered the PRWeaver study, not yet peer reviewed, where a description that made the change look reasonable also lowered the rate at which review agents caught the attack.

The error can go the other way too. In a peer-reviewed study published at ASE 2025, a software engineering conference, models from the same providers were asked whether correct solutions from well-known benchmarks met their task: more than 700 samples in all. On the HumanEval benchmark, when only a verdict was asked for, the models said a correct solution met its task 52.4% to 78.0% of the time. When they were also asked for the reason behind the verdict and a suggested fix, as in a review comment, the rate fell to between 11.0% and 67.0%. According to the authors, the models assumed flaws in correct code and suggested unnecessary changes.

The models in both studies are older than today’s, and today’s models were not measured in these experiments. But both show the same thing: a model’s verdict, “I approve” or “I reject”, depends as much on how the code is presented and how the model is asked as on the code itself. The tools’ defaults also leave this verdict as a comment: Claude Code Review and Bugbot don’t fail their check even when they find issues, and Copilot leaves only a comment by default.

If AI wrote the code, who should approve it?

If an agent wrote the pull request and an AI review approved it, no person may have read that change before the merge. Approval rules exist to prevent exactly this. GitHub’s rulesets documentation says so plainly: requiring one approval usually means two people are involved in a change, the one who wrote it and the one who approved it. When Copilot opens a pull request under its own identity rather than on behalf of a person, that assumption breaks, so the ruleset requires one more approval for that pull request. This setting is on by default and, for now, in public preview.

GitHub applies two more rules to Copilot’s cloud agent: the agent can’t approve or merge its own pull request, and the person who gave the agent the task can’t approve that pull request either. According to GitHub, this keeps the controls the required approvals rule is expected to provide. We covered pull requests opened by other tools’ agents in the cloud agents post, and what the approver should look at in the post on reviewing AI-generated code.

SLSA, a security framework written for the software supply chain, takes the same position. The top level of its source code requirements requires every change entering a protected branch to be approved by at least two trusted persons: the one who submits the change and the one who reviews it must be different people. In SLSA, a trusted person is a human, someone the organization has authorized to propose and approve changes. Automation has a role of its own, and the organization can grant it exceptions for specific jobs, as with Dependabot. Changes added during the review must be reviewed as well.

OpenSSF (the Open Source Security Foundation) works on the security of open source software, and its Scorecard tool scores projects’ security practices automatically. Its Code-Review check doesn’t count a review by bots, AI-powered ones included, as code review. The reason it gives: such a review gives no confidence that a second person understands the change. The same tool’s branch protection check gives its top scores to at least 2 approvals, code owner review, and dismissing stale approvals.

Still, some teams do leave approval to AI, and two have described it themselves. According to Intercom (21 April 2026), agents prepare more than 93% of the pull requests in its two main codebases, and more than 19% are approved automatically, with no human review. These are the company’s own numbers. The limits it sets: the approval agent doesn’t approve large pull requests and asks for them to be split; any engineer can ask for a human review on any change; every automatic approval is labelled and logged; and the engineer who ships the change stays accountable for the outcome.

Anthropic’s security team (21 July 2026) writes that a Claude agent merges more than half of the code inside the company, while engineers own the final approval. Its rules are similar: codebases are tiered by risk, and some entire codebases have a strict human approval process; every automatic approval is logged with its reasoning, and people review a sample chosen by risk; and until a new review agent has earned trust, it only writes comments that are put to human approval.

How should you set up your repository?

The limits set by the teams that leave approval to AI exist as settings in the tools too: in Copilot you choose the file paths where an approval counts, in CodeRabbit the highest risk it may approve, and in Cursor your approval criteria. Each of the settings below is recommended or applied in its own documentation by a tool or a standard from this post:

Settings that keep approval in human hands. Each one rests on a tool’s or a standard’s own documentation. Keep AI approval out of the required count: In Copilot, leave the counting setting off. Where a tool’s approval counts, add a human one: CodeRabbit’s “CodeRabbit plus a person” setup. Have code owners approve critical directories: Require review from Code Owners. Have the latest change approved again: Dismiss stale approvals. Don’t let Actions approve pull requests: Keep this permission off unless you need it. Let a new review write comments first: Allow it to approve once it has earned trust.
Compiled from the documentation in this post: GitHub, CodeRabbit, SLSA, OpenSSF Scorecard and Anthropic, 4 November 2026.
  • Keep the AI’s approval out of the required count. In Copilot, leave “Allow Copilot approvals to count toward merge requirements” off; that is also GitHub’s default. Read the approval assessment in Copilot’s overview as a comment.
  • If you use a tool whose approval counts, require one more approval. The “CodeRabbit plus a person” setup in CodeRabbit’s own documentation is to require two approvals on GitHub, so that one of them is always a person’s. Also use allow_author_approval: false to stop a pull request’s author from using the approve command on their own pull request.
  • Require a code owner’s approval for critical directories. CODEOWNERS and “Require review from Code Owners” tie approval to a specific person or team. CodeRabbit recommends this to require a specific team’s approval, and OpenSSF Scorecard scores it.
  • Have the latest change approved again. Turn on “Dismiss stale pull request approvals” or “Require approval of the most recent reviewable push”, so the approval is renewed even if an agent commits after it. SLSA, too, requires changes added during the review to be reviewed.
  • Keep Actions from approving pull requests. “Allow GitHub Actions to create and approve pull requests” starts off in new repositories in a personal account and in new organizations; don’t turn it on unless the review in your own CI actually approves. Check whether a bot is on the bypass list and whether the rule covers administrators too; CodeRabbit asks you to check this list, and OpenSSF Scorecard scores rules that apply to administrators.
  • Try a new AI review with comments first. Anthropic has new review agents write only comments until they have earned trust. If you decide to let one approve, limit it to small or low-risk changes and log every approval: Intercom doesn’t let its agent approve large pull requests, and Anthropic has people review a sample of automatic approvals chosen by risk.

Our AI code review tool, diffox, stands where the tools’ defaults stand on this question: it posts its review to the pull request as a “Comment”, not as “Approve” or “Request changes”. Each finding is classed as Critical, Warning or Suggestion; Critical means “important”, not “stop”. The status it sets on the commit never ends as a failure, so no finding blocks the merge. Reading a finding, fixing it and deciding to merge stay with your team.

Frequently asked questions

Can Copilot code review approve pull requests?

Yes, if you turn it on. GitHub released the feature in preview on 1 September 2026 and made it generally available on 28 October 2026. Approvals are off by default and are turned on at the enterprise, organization and repository level. The repository settings have two separate switches: one lets Copilot approve, the other lets that approval count toward merge requirements, and you can limit the second to specific file paths. With approvals off, Copilot leaves a “Comment” review and says in its overview whether it considers the pull request ready to approve. If new commits arrive after it approves, its approval is dismissed.

Does an AI approval count toward required approvals?

It depends on the tool and the setting. Copilot’s approval doesn’t count by default; for it to count, you have to turn on a separate setting. CodeRabbit’s approval counts toward required approvals once you turn on Automatic Approvals. For Cursor’s approval agent, the documentation doesn’t say. A review running in your own CI with GITHUB_TOKEN can approve if “Allow GitHub Actions to create and approve pull requests” is on; GitHub starts this permission off in new repositories in a personal account and in new organizations. SLSA and OpenSSF Scorecard count only approvals from people.

Does CodeRabbit approve pull requests?

It does if Automatic Approvals is on, and it is off by default. With it on, CodeRabbit sends “Request changes” when it leaves a comment asking for a fix, and approves once the comments are resolved and it has reviewed the latest commit; its approval counts toward required approvals. The @coderabbitai approve command also works with the same setting on, and by default a pull request’s author can use it on their own pull request; allow_author_approval: false turns that off. CodeRabbit’s own recommendation is to require two approvals on GitHub so that a person approves too, and to set a risk limit for high-risk pull requests.

Should an AI review block the merge?

For the tools whose documentation covers this, the default is no. Claude Code’s Code Review never blocks a pull request, and its check run never concludes as a failure. Bugbot’s check concludes as neutral even when there are findings. Copilot leaves only a comment by default. CodeRabbit, with Automatic Approvals on, sends “Request changes” on a finding; if the branch rule requires a review, that stops the merge. Research shows that models can reject correct code too, and do so more often when asked for a reason and a fix. If you still want to stop merges, read the number of findings in your own CI, as Anthropic’s documentation describes, and don’t treat a review that gave no result as “no findings”.

Who should approve a pull request written by AI?

A person other than the one who gave the agent the task. GitHub doesn’t let the person who gave Copilot’s cloud agent the task approve that pull request, and the agent itself can’t approve or merge its own pull request. If Copilot opened the pull request under its own identity, rulesets require one more approval. SLSA’s top level requires every change to be approved by at least two trusted persons; OpenSSF Scorecard doesn’t count reviews by AI bots. An AI review can join such a pull request as a second pair of eyes, but the approval should belong to a person.

Does diffox approve pull requests?

No. diffox posts its review to the pull request as a comment; it doesn’t give an “Approve” or “Request changes” verdict. Its findings are classed as Critical, Warning and Suggestion. The status it sets on the commit never ends as a failure, so no finding blocks the merge. Reading the findings and deciding to merge are up to your team.