← Kembali ke Daftar Berita

More agents, fewer blind spots: Inside GitHub Copilot code review

Tanggal: 2026-12-02

More agents, fewer blind spots: Inside GitHub Copilot code review
More agents, fewer blind spots: Inside GitHub Copilot code review

Learn about artificial intelligence and machine learning across the GitHub ecosystem and the wider industry.

Everything developers need to know about LLMs.

Machine learning tips, tricks, and best practices.

Resources for developers to grow in their skills and careers.

Insights and best practices for building apps.

Tips & tricks to grow as a professional developer.

Learn how to move into your first professional role.

Stay current on what’s new (or new again).

Get an inside look at how we’re building the home for all developers.

Discover how we deliver a performant and highly available experience across the GitHub platform.

Explore best practices for building software at scale with a majority remote team.

Get a glimpse at the technology underlying the world’s leading AI-powered developer platform.

Learn how we build security into everything we do across the developer lifecycle.

Find out what goes into making GitHub the home for all developers.

Explore how to write, build, and deploy enterprise software at scale.

Automating your way to faster and more secure ships.

Guides on continuous integration and delivery.

Tips, tools, and tricks to improve developer collaboration.

DevOps resources for enterprise engineering teams.

Keep up with what’s new and notable from inside GitHub.

An inside look at news and product updates from GitHub.

Insights into the state of open source on GitHub.

The latest policy and regulatory changes in software.

The latest on GitHub’s platform, products, and tools.

Data-driven insights around the developer ecosystem.

How open source is driving positive change.

Helpful tips on securing web applications.

Learn about artificial intelligence and machine learning across the GitHub ecosystem and the wider industry.

Everything developers need to know about LLMs.

Machine learning tips, tricks, and best practices.

Explore the capabilities and benefits of AI code generation and how it can improve your developer experience.

Resources for developers to grow in their skills and careers.

Insights and best practices for building apps.

Tips & tricks to grow as a professional developer.

Learn how to move into your first professional role.

Stay current on what’s new (or new again).

Learn how to start building, shipping, and maintaining software with GitHub.

Get an inside look at how we’re building the home for all developers.

Discover how we deliver a performant and highly available experience across the GitHub platform.

Explore best practices for building software at scale with a majority remote team.

Get a glimpse at the technology underlying the world’s leading AI-powered developer platform.

Learn how we build security into everything we do across the developer lifecycle.

Find out what goes into making GitHub the home for all developers.

Our engineering and security teams do some incredible work. Let’s take a look at how we use GitHub to be more productive, build collaboratively, and shift security left.

Explore how to write, build, and deploy enterprise software at scale.

Automating your way to faster and more secure ships.

Guides on continuous integration and delivery.

Tips, tools, and tricks to improve developer collaboration.

DevOps resources for enterprise engineering teams.

Learn why Gartner positioned GitHub as a Leader for the second year in a row.

Keep up with what’s new and notable from inside GitHub.

An inside look at news and product updates from GitHub.

Insights into the state of open source on GitHub.

The latest policy and regulatory changes in software.

The latest on GitHub’s platform, products, and tools.

Data-driven insights around the developer ecosystem.

Learn how to use retrieval-augmented generation (RAG) to capture more insights.

How open source is driving positive change.

Organizations worldwide are incorporating open source methodologies into the way they build and ship their own software.

Helpful tips on securing web applications.

Learn about core challenges in DevSecOps, and how you can start addressing them with AI and automation.

How Copilot code review combines independent AI reviewers to find more bugs with less noise.

Alejandro Carderera de Diego (@alejandro-carderera), Timothée Defoin (@tdefoin)

Agents are writing more of our code every day, and every pull request still needs a review before it merges. Human reviewers can’t read every line of that growing volume, so teams are using AI to help.

An AI reviewer has to clear a hard bar, though. If it misses real bugs, nobody trusts its silence. If it buries those bugs in false alarms, nobody reads its comments.

Getting both right means finding actionable bugs, keeping false positives low, and holding latency and cost in check. At a fixed price, we’ve found that several smaller, independent reviewers using complementary models often outperform a single reviewer powered by a stronger model. We used that idea to rebuild Copilot code review’s Lite and Balanced tiers and to launch a new Max tier for your highest-stakes pull requests. This post explains why that works, how we turn many reviewers’ findings into one review, and how we used the idea to rebuild Copilot code review’s tiers.

Consider a review agent with a fixed prompt, model, and set of tools. Suppose it has a 60% chance of flagging a particular bug in a pull request. It might catch that bug on one pass and miss it on the next.

If we run that reviewer twice, independently and in parallel, the probability that at least one run finds the bug rises to 84%, while the cost doubles. With three independent runs, the probability rises to 94%, while the cost triples.

More generally, if each reviewer has probability p of finding a particular bug, 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 is that only one reviewer needs to find the bug.

Running several reviewers also has a cost in time. Review time can increase modestly because we have to wait for the slowest reviewer to finish.

Repeatedly running the same reviewer only takes us so far. We start to see diminishing returns after the third run.

Each model also has biases shaped by its training. Some bugs remain difficult for a given model to flag, no matter how many times it reviews a pull request. Models have particular strengths when reviewing code, and they also have specific blind spots.

To illustrate this, we used ReviewBench to measure the percentage of critical bugs found using GPT-6.1 Sol (high reasoning), Claude Opus 5.5 (high reasoning), and combinations of the two. You can read more about ReviewBench in our earlier blog post.

In the chart below, the dashed line shows the highest percentage of critical bugs found at each price point by repeatedly running either GPT-6.1 Sol or Claude Opus 5.5. The solid line shows the highest percentage found by combining the two models.

The solid line is always at or above the dashed line, because a mix can include the single-model option. What matters is the gap between them, which shows the improvement available from mixing models. At $3 per pull request, combining these two models raises the share of critical bugs caught on ReviewBench by 4.9 percentage points, from 61.3% to 66.2%.

Copilot code review can draw on models from different providers, so it isn’t limited to one model family’s strengths and blind spots. That flexibility lets us pick complementary reviewers that perform best at a given price point.

When two independent reviewers examine the same code, they may find some of the same bugs, and each may find issues the other misses. To reduce noise and avoid reporting the same issue several times, we combine their findings into one cohesive review. That means deduplicating findings and removing false positives.

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

Let’s look at an example of a pull request that changes src/catalog/service.py, a Python file:

Three independent reviewers examine the changes and produce these findings:

The first two findings are true positives. The cache expects expiration times in milliseconds, and renaming a product updates the database but leaves its cached snapshot unchanged. A closer look at src/api/products.py, a file this pull request didn’t change, tells a different story about the third finding:

An existing guard already returns a 404 for a missing product, so the third finding is a false positive. Now consider what happens as we vary the voting threshold, which is the number of reviewers that must flag an issue before we show it:

With a threshold of one vote, we flag two real bugs and one false positive. Raising the threshold to two removes the false positive and leaves only real bugs, which raises precision. Raising it to three drops one of the real bugs, which lowers recall.

Voting gives us a cheap, fast, and simple way to curate findings. The challenge is choosing the right threshold, which can vary between pull requests. Agentic aggregation lets a more capable model check each finding, remove false positives, and filter out low-severity nits. In this example, an aggregator that checked src/api/products.py could drop the false positive and keep both real bugs, at the cost of a longer, more expensive review.

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

We used independent, complementary reviewers and aggregation to rebuild our existing Lite and Balanced tiers and to launch a new Max tier. At a high level, each tier reviews your pull request with these agents:

To develop and iterate on the initial configurations for all three tiers, we used ReviewBench, a benchmark for code review agents built on representative GitHub pull requests and production-aligned metrics. We then ran several rounds of online experiments on internal and external traffic.

Here’s how the final tier configurations performed online:

Note: The F1 score is the harmonic mean of precision and recall and is used in ReviewBench (in an offline setting) to rank review agents.

First, let’s compare the average number of findings per review for each tier, broken down by severity:

Max provides the greatest coverage, especially of critical issues, which was our goal. Lite and Balanced produce a similar total number of findings per review, and Lite produces more critical and low-severity findings. Balanced finds fewer issues than Lite, but more of them are worth fixing.

The chart below shows the percentage of critical and moderate findings that developers addressed, ignored, or that were classified as false positives, for each tier:

Together, these form three distinct tiers. Developers act on more findings as you move from Lite to Balanced to Max. That makes Lite better for frequent review while you’re iterating, and moving to Balanced and Max as you get closer to final.

Each tier targets a specific price and quality range, with target costs rising roughly 6× from one tier to the next. Lite is designed for frequent reviews as you iterate. Max is designed for a thorough pass before you merge.

Balanced sits between them, offering a middle ground between fast iteration and a final review.

Max also asks more of you. It leaves about two findings per review, compared with about 1.1 to 1.2 for Lite and Balanced, so there’s more to read. It’s worth using it where a missed bug would typically cost more than the review.

Review time matters too. Sometimes you need fast feedback while you build. Other times, correctness and thoroughness matter more than speed.

Lite and Balanced typically finish in about four minutes. Max takes about 12 minutes at the median and can take 20 minutes at the 90th percentile, so it fits best as a final pass.

This is a snapshot of where the tiers stand today. As new models become available and our approach improves, we’ll update each tier to deliver the best performance we can within its price range.

Every tier uses the same tools and review prompt. The tier sets how hard Copilot code review looks. Your repository’s context sets what it knows to look for, including your team’s conventions, the exceptions you allow, and the mistakes your reviewers keep catching.

Different parts of a pull request may also need different levels of attention. Some may require a frontier model, while a smaller model may be sufficient for others. We’re working toward dynamic code review, dispatching reviewers from a roster of review personas to specific parts of a pull request and tailoring the review to its needs.

The goal remains one useful review: more chances to catch important issues, without handing the work of sorting through findings back to you.

Try the Max tier on your next high-stakes pull request.

Thank you to the science, engineering, and product teams across GitHub and Microsoft who helped make these new tiers a reality!

Alejandro's work focuses on evaluating coding agents, improving how they reason over code changes and repository context, and optimizing model quality, coverage, latency, and token cost.

Timothée Defoin is an Applied Researcher at GitHub, working on Copilot's models and AI systems since its early days. His work spans both post-training and agentic systems, covering data curation, fine-tuning, and the design and evaluation of production agent workflows.

Learn how to assess a legacy application, choose a bounded modernization step, and reuse the method with a GitHub Copilot agent skill.

Discover how we built the open Agent Host Protocol to keep your agent sessions accessible across editors, apps, phones, and the cloud.

Learn how to assess a legacy application, choose a bounded modernization step, and reuse the method with a GitHub Copilot agent skill.

Discover how we built the open Agent Host Protocol to keep your agent sessions accessible across editors, apps, phones, and the cloud.

Everything you need to master GitHub, all in one place.

Build what's next on GitHub, the place for anyone from anywhere to build anything.

Meet the companies and engineering teams that build with GitHub.

Join us October 28-29 in San Francisco or online for GitHub Universe, our flagship developer event uniting people, agents, and the world's code.

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

→ Baca artikel asli