BRK278 · Breakout

Inside Copilot code review: From context to approval

  • Wednesday 18 November
  • 35 min
  • Catalogue level: (300) Advanced
  • Our depth rating: 300
  • Worth watching: 2/3

Speakers: David Apirian, Ria Gopu

Watch on Microsoft’s site from 04:00

Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.

What the session covers

The session explains how Copilot code review in GitHub moved from diff-only to agentic review that explores the repository and pulls context from linked issues, agent skills, Dreaming, cross-repo context and MCP servers. David Apirian and Ria Gopu describe the architecture: parallel review agents, a dedicated Dreaming reviewer, optional AI secret scanning and an aggregation agent that deduplicates findings and assigns a verdict. They cover the Light, Balanced and Max effort tiers with costs and the new Adaptive tier in public preview, and announce Copilot code review GA in Azure Repos. Quality measurement with the open-sourced ReviewBench and the live address rate is explained, along with new metrics in the repository Insights tab. The final part covers review verdicts, real approvals counting toward branch protection and their governance settings at enterprise, organization and repository level.

Best for: Engineering leads and platform owners on GitHub or Azure Repos who want to understand how Copilot code review gathers context, how its tiers trade cost against quality, and how to govern Copilot approvals safely.

Session timeline by chapter

New material starts at 04:00. After the audience poll, PR-volume statistics and a basic walkthrough of a review on an OpenCost PR, the technical deep dive into agentic review and its context sources starts at 04:00.

Where to skip: Skip to 04:00; the context sources at 09:28 and the architecture at 13:11 are the technical core, 16:04 covers tiers, costs, Adaptive and Azure Repos GA, 19:29 explains quality measurement, and 25:02 covers approval governance; the Q&A at 27:56 adds useful detail on auto-merge and cross-repo scoping.

Chapters (10)

  1. 00:02 Recap Depth 100 · Novelty 0/3

    Audience poll, PR volume growth and why review is the bottleneck

    The speakers poll the room: most attendees let AI review pull requests, but nobody lets AI approve them. They cite 1.3 billion pull requests merged on GitHub this year and a rise in PRs started by a coding agent from 17% in March to more than 40% in September, concluding that review is the bottleneck. David Apirian (lead of Copilot code review at GitHub) and Ria Gopu (product manager) introduce themselves and note that Azure Repos will also be covered.

  2. 02:27 Demo Depth 200 · Novelty 1/3

    Walkthrough: Copilot code review on a real OpenCost pull request

    Ria walks through a real PR on the open-source OpenCost repo: the author requests a Copilot review and chooses the Balanced effort level (Light, Balanced and Max are offered). Copilot returns a 'changes recommended' assessment with one high-severity issue (a failing query with an invalid PromQL escape) and a suggested code change; severity reflects production impact. After the author applies the fix and a new review runs, Copilot finds no open issues and approves, either as a real approval or as a comment; with a second human approval the PR is ready to merge.

  3. 04:00 Deep dive Depth 300 · Novelty 2/3

    From diff-only to agentic review: the context of your best reviewer

    David explains that early AI reviewers in 2025 looked only at the diff, and Copilot code review then became agentic, exploring the repo; on average it reads 84 files outside the diff, and the Max tier with parallel agents reads 274. He compares the review to the best reviewer on a team, who knows the surrounding code, why the PR exists, team conventions, past review feedback and other repos and services. Copilot covers these via repo exploration, PR title/description and linked issues, instructions and agent skills, Dreaming (public preview), MCP servers such as Datadog or Splunk, and cross-repo context released into public preview at Ignite.

  4. 09:28 Deep dive Depth 300 · Novelty 2/3

    Context sources in practice: linked issues, agent skills, Dreaming, cross-repo, MCP

    Ria shows Copilot reading a linked issue, identifying two acceptance criteria and flagging that the PR resolves only one. Copilot picks up agent skills anywhere in the repo, including those written for Claude or Gemini; in an example a skill in a Claude directory requires dependency bumps in standalone PRs, so Copilot asks to split out a timeout change and attributes the skill in its comment. Dreaming tracks recurring reviewer feedback in PR conversations, cross-repo context flags issues such as calls using an old signature from another repo, and MCP servers bring in context from Jira, Linear, Microsoft Learn, Confluence, Datadog and Sentry.

  5. 13:11 Deep dive Depth 300 · Novelty 2/3

    Review architecture: parallel agent ensemble, aggregation agent and AI secret scanning

    David describes how a review runs: curated context from the PR (title, description, diff, previous comments and commits) feeds parallel main review agents, which use the same or different models depending on the tier, plus a dedicated Dreaming reviewer and an optional AI secret scanning pass, with MCP servers connected. An aggregation agent normalises findings, assigns standardised severity, deduplicates, filters by a quality bar and produces one review with a verdict. AI secret scanning, launched in public preview, uses a proprietary AI classifier and attributes its findings to the secret scanning agent; multiple models are used because one model finds gaps another misses.

  6. 16:04 New Depth 300 · Novelty 3/3

    Light, Balanced, Max and new Adaptive tier; Copilot code review GA in Azure Repos

    The Light tier runs four smaller models in parallel at about $0.25 per review, Balanced runs three stronger models at about $1.50, and Max runs three models from two providers in an ensemble of eight parallel agents at about $10; Max finds about twice as many high-severity issues as Balanced. Tiers are tuned for best quality at each price point and the composition is adjusted every one to two weeks; the level can be chosen per PR or set as default. A new Adaptive tier in public preview routes PRs by risk and complexity (docs/typos to Light, normal changes to Balanced, high-risk to Max), and Copilot code review is GA in Azure Repos today.

  7. 19:29 Deep dive Depth 300 · Novelty 2/3

    How quality is measured: ReviewBench, precision/recall and the address rate

    Every new version goes through offline evals, then live runs on GitHub's own PRs, then a small share of users, then everyone. ReviewBench, open-sourced at reviewbench.ai, has more than 200 PRs with human-labelled ground truth and an LLM judge scoring precision and recall. Live testing matters because offline results do not always match, e.g. with MCP servers; the main live metric is address rate, judged by an LLM: only about 2% of users click Apply suggestion, but about 77% of Copilot's comments are addressed before merge.

  8. 23:10 New Depth 200 · Novelty 2/3

    Copilot code review metrics in the repository Insights tab

    The address rate is now shown in the repository Insights tab: overall comment address rate, address rate for high-severity comments, PRs merged without a Copilot review (coverage) and addressed comments by category over time, with Bug as the top category in the example. It also shows address rate by customization type, comparing comments that used agent skills or MCP servers with those without customization, based on the attribution in Copilot comments.

  9. 25:02 Deep dive Depth 300 · Novelty 2/3

    Review verdicts, real approvals and approval governance settings

    Each Copilot review ends with a verdict: changes recommended, needs a closer look (deferring to a human when a PR is complex or risky) or approval recommended; the split on real PRs is roughly even. Approval recommended is a comment by default but can be turned into a real approval that counts toward branch protection rules. Real approvals are off by default and can be enabled at enterprise (all or selected organizations), organization (all, repo-decides or selected repositories) and repository level, where approvals can be limited to file paths or directories. The recommendation is to start with low-risk repos or paths and expand.

  10. 27:56 Q&A Depth 300 · Novelty 2/3

    Q&A: cross-repo scoping, auto-merge with Copilot approval, security instructions

    A repeat poll shows slightly more willingness to let AI approve PRs. Answers: cross-repo context currently reads only other public repositories by default, and a per-repo configuration (also via API) of which repos to consult is coming soon. With real approvals and GitHub auto-merge, a PR can merge automatically once CI passes and Copilot approves; riskier setups can require two approvers or enable approvals only for low-risk repos. To prevent reverting security patches, rules can be codified in agents.md, copilot-instructions.md or agent skills, with good adherence; branch-by-branch approvals are not available yet.

Announcements (8)

  • 08:32 public-preview GitHub Copilot

    Dreaming

    Learns from what a team's reviewers have commented on historically to replicate their review patterns in future Copilot reviews.

    Speaker’s quote (at 08:32)
    „with a new feature that we just introduced into public preview called Dreaming, which actually looks at what your reviewers have commented on“
  • 09:02 public-preview GitHub Copilot

    Cross-repo context

    Lets Copilot code review read code in other repositories to flag issues such as downstream dependency impact.

    Speaker’s quote (at 09:02)
    „code and other repos were releasing cross-repo context into public preview now at Ignite.“
  • 15:05 public-preview GitHub Copilot

    AI secret scanning in Copilot code review

    An optional review pass using a proprietary AI classifier that flags secrets leaked into changed lines of a pull request.

    Speaker’s quote (at 15:05)
    „So the secret scanning that we're launching today is in public preview. It uses a proprietary AI classifier model“
  • 17:51 public-preview GitHub Copilot

    Adaptive review effort tier

    Judges each PR's risk and complexity and automatically routes it to a Light, Balanced or Max review.

    Speaker’s quote (at 17:51)
    „We have 3 tiers and one new in public preview, tier called adaptive.“
  • 18:59 GA GitHub Copilot

    Copilot code review in Azure Repos

    Copilot code review is available for pull requests in Azure DevOps Azure Repos.

    Speaker’s quote (at 18:59)
    „for those of you who are in Azure DevOps and Azure repos, Copilot code review is also available in GA in Azure repos today.“
  • 23:10 GA GitHub Copilot

    Copilot code review metrics in repository Insights

    Shows how Copilot code review comments are addressed in a repository, broken down by severity, category, coverage and customization type.

    Speaker’s quote (at 23:10)
    „And now the address rate is available to you in your repo insights tab.“
  • 25:30 not stated GitHub Copilot

    Copilot code review real approvals

    Lets Copilot's approval behave like a human approval that counts toward required approvals, governed at enterprise, organization and repository level with optional file path limits.

    Speaker’s quote (at 25:30)
    „approval recommended, which by default exists as just a comment on your pull request, but you can also turn that into a real approval.“
  • 29:15 roadmap GitHub Copilot

    Per-repo cross-repo context configuration

    Will let admins specify per repository, also via API, which other repositories Copilot code review should read for context.

    Speaker’s quote (at 29:15)
    „Coming soon is a configuration that you can actually specify per repo what other repos it should look at.“

Demos (1)

  • 02:27 Not stated GitHub Copilot

    A PR author gets an AI review of a pull request, fixes the flagged issue and obtains a Copilot approval before merging.

    Steps (7)
    1. Open the pull request (here OpenCost PR 'Sth/gpu bug #4134') and in the Reviewers panel request a review from Copilot.
    2. Choose the Copilot review effort level; Balanced is selected (options shown: Adaptive, Lite, Balanced, Max).
    3. Read Copilot's review: a 'changes recommended' assessment with one high-severity open issue about an invalid PromQL escape in QueryGPUsRequested and a suggested code change.
    4. Apply the suggested change to the pull request.
    5. Request another Copilot review (via automatic review settings).
    6. Copilot marks the issue as resolved, finds no other open issues and approves the PR.
    7. A second reviewer approves; with both approvals the PR is ready to merge.

Watch on Microsoft’s site: BRK278