跪拜 Guibai
← Back to the summary

GitHub Copilot Code Review: More Independent AI Reviewers, Fewer Blind Spots

✨ Tu Aran · Frontend and Agent Engineer · Technical Author · Community KOL, 50k+ followers, over a million monthly content impressions 📚 Continuously publishes multiple technical works, deeply involved in open source communities and agent engineering practice, fully embracing AI and decentralization. 🔗 Follow the personal blog for more; promotional cooperation via Blogger Alliance.

Article first published at: https://2aran.com/s/IybRzRz

Agents are writing more code every day, and every pull request still needs review before merging. Humans can no longer keep up with the growing volume, so teams are turning to AI for help.

But AI review has to cross a high bar. If it misses real defects, nobody believes its silence; if real defects are buried under false positives, nobody reads its comments.

Doing both well means finding actionable defects while suppressing false positives, all while controlling latency and cost. At a fixed price, several smaller, independent, complementary reviewers often perform better than a single reviewer powered by a stronger model. We used this idea to rebuild Copilot code review's Lite and Balanced tiers and introduced a new Max tier for pull requests where the stakes are highest. Why it works, how multi-reviewer findings get consolidated into one review, and how each tier was rebuilt are all clear in the following sections.

Why it works? A simple example

Imagine a review agent with fixed prompt, model, and toolset. Suppose it has a 60% probability of flagging a particular defect in a pull request. It might catch it this run and miss it the next.

Let this reviewer run twice, independently and in parallel. The probability that at least one run finds the defect rises to 84%, at double the cost. Three independent runs push it to 94%, at triple the cost.

More generally, if each reviewer finds a defect with probability p, then the probability that at least one of n independent reviewers finds it is 1 − (1 − p)^n. In our example, p = 0.6. The key point: only one reviewer needs to find the defect.

Running more reviewers also costs time. Review latency may increase slightly because you have to wait for the slowest one to finish.

Same-model review and mixed-model review

Running the same reviewer repeatedly only gets you so far. After the third run, returns start to diminish.

Each model also carries training-induced biases. Some defects are always hard for a particular model to flag, no matter how many times it reviews the same pull request. Models each have strengths in reviewing code and specific blind spots.

To illustrate, we measured with ReviewBench the percentage of critical defects found by GPT-6.1 Sol (high reasoning effort), Claude Opus 5.5 (high reasoning effort), and a combination of both. For more on ReviewBench, see our earlier blog post.

In the figure below, the dashed lines show the highest percentage of critical defects you can find by repeatedly running GPT-6.1 Sol or Claude Opus 5.5 at each price point. The solid line shows the highest percentage from combining the two models.

The solid line is always at least as high as the dashed lines, because the combined option can also include the single-model choice. What matters is the gap between the two lines, which marks how much more mixing models can gain. At $3 spent per pull request, combining the two models raised the proportion of critical defects caught on ReviewBench by 4.9 percentage points, from 61.3% to 66.2%.

Copilot code review can call models from different providers, so it is not locked into the strengths and blind spots of one model family. This flexibility lets us pick the best-performing and complementary reviewers at a given price point.

Critical recall vs. cost for mixed-model vs. same-model review under a fixed budget

Consolidating into a coherent review

Two independent reviewers looking at the same code may find some identical defects and also spot issues the other missed. To reduce noise and avoid reporting the same issue multiple times, we consolidate their findings into one coherent review. That means deduplicating findings and removing false positives.

Copilot code review uses two strategies: voting and agentic aggregation.

Here's an example. This pull request changes src/catalog/service.py, a Python file:

from catalog import cache, repository as repo

CACHE_TTL_SECONDS = 60

def get_product(product_id):
    cached = cache.get(product_id)
    if cached is not None:
        return cached

    product = repo.find(product_id)
    if product is not None:
        cache.put(
            product_id,
            product,
            ttl_ms=CACHE_TTL_SECONDS,
        )

    return product

def rename_product(product_id, name):
    repo.rename(product_id, name)

Three independent reviewers looked at these changes and produced these findings:

Candidate finding Reviewer A Reviewer B Reviewer C
Cache expiration time uses wrong unit X X X
After renaming product, cache still holds old data X X
Endpoint crashes when product not found X

The first two are real issues. The cache expects expiration time in milliseconds, and renaming a product only updates the database, leaving the cached snapshot stale. Looking more closely at src/api/products.py, which this pull request does not change, the third finding is something else:

from catalog.service import get_product

def product_endpoint(product_id):
    product = get_product(product_id)

    if product is None:
        return 404, {"error": "Not found"}

    return 200, {"name": product["name"]}

Existing protections return 404 when the product does not exist, so the third finding is a false positive. Now let's see what happens if we adjust the voting threshold, that is, how many reviewers must flag an issue before we show it:

Threshold True defects False positives Precision Recall
1 2 1 67% 100%
2 2 0 100% 100%
3 1 0 100% 50%

With a threshold of 1 vote, we flag two real defects and one false positive. Raising the threshold to 2 removes the false positive and leaves only real defects, raising precision. Raising to 3 drops one real defect and recall falls.

Voting gives us a cheap, fast, and simple consolidation method. The challenge is choosing the threshold, which can vary across pull requests. Agentic aggregation lets a stronger model inspect each finding, remove false positives, and filter out low-severity nitpicks. In this example, if the aggregator checked src/api/products.py, it could drop the false positive and keep the two real defects, at the cost of a longer, more expensive review.

Voting rewards agreement and controls noise, useful when cost and latency are tight. Agentic aggregation is more expensive and, in our experiments, produced higher-quality findings.

The new review tiers

We rebuilt the existing Lite and Balanced tiers and introduced a new Max tier using independent, complementary reviewers and aggregation mechanisms. At a high level, each tier uses these agents to review your pull request:

We developed and iterated on the initial configurations of all three tiers using ReviewBench, a benchmark for code review agents built on representative GitHub pull requests and production-aligned metrics. We then ran multiple rounds of online experiments on internal and external traffic.

How we measured

The final tier configurations performed online as follows:

Online precision, recall, F1, and findings per review for Lite, Balanced, Max

Note: F1 score is the harmonic mean of precision and recall; ReviewBench uses it offline to rank review agents.

Where are the coverage and quality gaps?

Stacked comparison of critical, moderate, low severity findings per review for Lite, Balanced, Max

Comparison of Addressed, Ignored, False positive for critical and moderate issues across Lite, Balanced, Max

First break down by severity, comparing the average number of findings per review across tiers:

Max has the broadest coverage, especially for critical issues, which is what we wanted. Lite and Balanced have similar total findings per review, with Lite finding more critical and low-severity issues. Balanced finds fewer issues than Lite, but more of them are worth fixing.

The next figure shows, for each tier, how many of the findings on critical and moderate issues developers addressed, ignored, or judged as false positives:

Taken together, these make three tiers with distinct roles. From Lite to Balanced to Max, developers act on more findings. So Lite is better for frequent iterative reviews, and you switch to Balanced and Max near the finish.

How much does each tier cost?

Cost distribution for Lite, Balanced, Max. Medians are 0.19, 1.18, and 7.90 USD

Each tier targets a specific price and quality range, with the target cost roughly 6× higher per tier. Lite is designed for frequent review during iterative development. Max is designed for a thorough check before merging.

Balanced sits in between, between fast iteration and final review.

Max also demands more from you. It leaves roughly two findings per review, while Lite and Balanced leave around 1.1 to 1.2, so there's more to read. It only pays off where missing a defect usually costs more than this review.

How long does each tier take?

Latency distribution for Lite, Balanced, Max. Medians are 3.8, 3.9, and 12.4 minutes

Review time also matters. Sometimes you need fast feedback during development. Sometimes correctness and thoroughness matter more than speed.

Lite and Balanced typically finish in about 4 minutes. Max has a median of about 12 minutes, with the 90th percentile potentially reaching 20 minutes, so it's better suited for a final pass.

Just a starting point

These are a snapshot of where each tier currently stands. As new models appear and our methods improve, we will update each tier to the best performance we can achieve within its price range.

Next steps: matching review intensity to the change

Each tier uses the same tools and review prompts. The tier determines how hard Copilot code review looks. Repository context determines what it knows to look for, including team conventions, allowed exceptions, and the mistakes reviewers keep catching.

Different parts of a pull request may also need different levels of attention. Some places may need frontier models, while smaller models are enough for others. We are working on dynamic code review: dispatching reviewers to specific parts of a pull request from a roster of reviewer personas, and tailoring the review to its needs.

The goal remains a useful review: more chances to catch important issues without pushing the burden of organizing findings back onto you.

The next time you have a high-stakes pull request, try Max.

Acknowledgements

Thanks to the science, engineering, and product teams at GitHub and Microsoft for making these new tiers a reality.

Source