Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

GitHub Engineering 10 min read Case study mediumAdept

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

At a fixed budget, several smaller independent AI reviewers using complementary models often catch more bugs than one stronger-model reviewer, because the chance that at least one of n reviewers flags a bug is 1 − (1 − p)^n and different model families have different blind spots. On ReviewBench at $3 per PR, mixing GPT and Claude models raised critical-bug recall from 61.3% to 66.2%. Findings are merged by either cheap threshold voting or a costlier agentic aggregator that verifies each finding. That aggregator produced higher-quality reviews and now powers Copilot code review's rebuilt Lite, Balanced and new Max tiers. Online results show precision of 69/75/73%, recall of 57/61/67%, median cost of $0.19/$1.18/$7.90 and median latency of 4/4/12 minutes.

Assumes: LLM-based agentsprecision and recallpull request code review

Related posts

  • Experiments with AI Code Review

    Wealthfront Engineering mediumAdept

    Wealthfront built Iris, an in-house AI code reviewer, iterating from a failed document-gathering design to a structured Gemini 2.5 Pro/Flash research-recursion pipeline and finally to an antagonistic review where Opus 4 acts as judge over a GPT-5 prosecution and a Gemini Flash defense for each suspected problem. Supporting tactics include letting the model draft a freeform review before forcing a structured tool call, replacing many bespoke MCP-style tools with a sandboxed filesystem plus shell, and spawning directed sub-agents for project background, production data and an 80-item checklist. Engineer ratings shifted from a bell curve centered on 'neutral' to mostly useful, driven largely by far fewer false positives, at about 10 minutes and $4 per review. AI review is non-blocking and runs between self-review and human peer review.

  • Better tools made Copilot code review worse. Here’s how we actually improved it.

    GitHub Engineering mediumAdept

    Swapping Copilot code review's bespoke exploration tools for the shared Copilot CLI tools (grep, glob, view) initially raised review cost and reduced useful comments, because the tool instructions encouraged broad, repo-browsing behavior instead of diff-anchored investigation. Benchmark traces exposed the browsing loop, and rewriting tool guidance around a reviewer's workflow (form questions from the diff, narrow with grep/glob, batch discovery, view only known ranges, recover from failed searches with simpler queries or glob) cut average review cost about 20% in production without a quality regression. The same focused instructions did not help the interactive CLI, so tool prompting must match the product's job.

  • Keeping code moving with clearer review expectations

    Sourcegraph mediumAdept

    Sourcegraph is experimenting with an AI agent that routes each pull request to one of three review paths: Ship (no review), Show (review after merge) or Ask (review before merge). The agent inspects the diff, surrounding code and the author's history, and application code applies explicit rules to pick a path. Familiarity requires two merged, reviewed PRs plus a relevant contribution in the past 30 days, and changes to authentication or sensitive-data exposure always require review. Early lessons: familiarity must be scoped to specific components, visible reasoning makes decisions contestable, and the bot's own comments can become interruptions. Fewer stamp requests so far says little about review quality.

  • How the Claude Code team does code review

    claude.dev mediumAdept

    Claude Code's review process aims for the minimum human review time that doesn't raise reverts or incidents. Merged PRs more than doubled from June to September while the revert share fell over 40%. Review is layered: self-verification before a PR, multi-agent AI review with voting to filter false positives, blocking security review, CI checks, risk-tiered human approval set by classifiers, then merge queue, flags, staged releases and fast rollback. The reviewer is improved with a daily eval built from past incidents, noise is measured from how authors respond to comments, and runaway agent-vs-agent loops are stopped with a three-round cap and diff-only re-review.

  • Did Your AI Harness Change Actually Help? Cases From Squarespace

    Squarespace Engineering mediumAdept

    Squarespace evaluated four Claude Code harness changes by running the agent repeatedly with and without each change on tasks with known answers, using decision rules written down before the first run, A/A noise measurement and checks on the AI graders. A table-comparison skill kept accuracy unchanged while cutting cost per correct answer about 14% and run time about 24%. A read-only command allow list nearly halved permission stops and cut median cost 10%. A code-review skill produced four to five times more code-quality comments and fewer false correctness claims, but caught no more bugs. Across about 1,200 runs, same-setup noise reached 3–5% on catch rate and cost, so changes should be measured against that baseline rather than judged by feel.

The quest for software engineering knowledge.

Look:
Layout: