Skip to content
Book demo
Back to Guides

Deep Code Review: Why Recall Beats Precision for Agents

Jun 1, 2026
Ani Galstian
Ani Galstian
Deep Code Review: Why Recall Beats Precision for Agents

Recall-first review is the better default goal for agent code review because an agent-layer filter can separate broad bug detection from the findings developers actually see.

TL;DR

AI code review usually favors precision because humans read every comment. Agent-first review puts software between the scan and the developer, which changes the cost of false positives while missed bugs can still reach production. Across the studies and benchmarks in this article, recall becomes the stronger scan-layer goal in codebases where cross-file context matters.

Why Developers Distrust AI Code Review

Developers distrust AI code review when comments are almost useful, almost correct, and still unreliable. The 2025 Stack Overflow Developer Survey captures that frustration directly: 46% of developers actively distrust the accuracy of AI tools, and 66% cite "almost right, but not quite" outputs as their largest frustration.

The market responded by reducing visible noise. GitHub Copilot, CodeRabbit, Graphite, Sourcery, and Codacy all emphasize aggressive filtering before developers see anything. That design makes sense when humans remain the first reader of every finding.

Agent-first review changes the first step. The first-pass reviewer can process the repository and pass only filtered findings to a human. The rest of this article explains where file-level review misses bugs that span services, permissions, and workflows, and what makes broader scanning usable rather than noisy.

Cosmos is the cloud agents platform that runs agents across the software development lifecycle, with shared context, persistent memory, and structured human checkpoints.

Try Cosmos

Free tier available · VS Code extension · Takes 2 minutes

Code Review Was Built for Human Readers

Human-centered code review tools reflect human attention limits. That design can reduce bug coverage when an always-on agent analyzes the full repository. Human attention shaped the review interface, workflow, and defaults more than system-level bug coverage did.

Six assumptions baked into tools from GitHub PRs to Gerrit to Phabricator reflect documented human cognitive constraints. Those assumptions create a mismatch when an AI agent occupies the reviewer role.

Reviewers have a hard ceiling on diff size. SmartBear's peer review research established that defect detection ability diminishes beyond 400 lines of code. Google's engineering practices review guidance instruct developers to split large CLs. An AI agent has no equivalent working memory ceiling, so small PR conventions exist because human reviewers have attention limits.

Reviewers experience decision fatigue. Detection rates drop after 60 minutes of continuous review, and inspection rates should remain under 500 LOC per hour. Research on code review bias identifies that under decision fatigue, "the reviewer tends to procrastinate." AI agents do not degrade over time.

Reviewers default to surface-level issues under load. Under time pressure, reviewers "search for fast review approval instead of correct implementation." Static analysis addresses part of that load because some checks move out of the human review path. Google built its Tricorder system to integrate static analysis into developers' workflow and build a data-driven ecosystem around program analysis.

The table below summarizes how each human assumption shapes existing tools and where AI reviewers depart from those constraints.

Human AssumptionTool EncodingAI Mismatch
Diff size ceiling (~400 LOC)PR size norms; split-CL guidanceAgent has no equivalent ceiling
Temporal fatigue (~60 min)Queue limits; multi-reviewer aggregationAgent does not degrade
Social motivationNamed reviewer assignment; threaded dialogueAgent has no organizational stake
Surface-over-logic biasLinters offload style checkingAgent applies uniform attention across severity
Reviewer scarcity as bottleneckReviewer matching UIs; PR waiting periodAgent reviews instantly
Diff-centric comprehensionLinear file-by-file diff UIAgent processes token context across files

Diff-centric review design limits codebase understanding because it centers the code delta over the resulting system behavior. A cognitive model of code review describes developers moving through an orientation phase to establish context and rationale. The analytical phase then covers understanding, assessment, and planning the rest of the review. AI agents bypass the diff UI entirely and can review the resulting state of the code beyond the delta alone.

Precision vs. Recall: What Changes When Agents Review

Precision and recall describe the same review output from two failure modes: noise and misses. When agents handle candidate findings, false positives and missed bugs carry different costs.

Every finding from a code review tool falls into one of four categories. Two of them define the tradeoff: precision = TP / (TP + FP), which asks of all issues flagged what fraction are real, and recall = TP / (TP + FN), which asks of all real issues that exist what fraction the tool catches.

Tools tuned to reduce false positives produce higher false negatives in return. A static analysis comparison of five tools found that Semgrep achieved 67.1% precision by deliberately limiting its default rule set to 53 rules for C/C++. That choice reduced coverage to maintain signal quality.

REDO research suggests a pattern in how these approaches differ. LLMs often obtain better recall scores, while static analysis tools score higher on precision.

The cost tradeoff changes in four ways:

  • Human-first review makes false positives expensive. When a human reads every comment, each false positive consumes developer attention, investigation, and dismissal. At scale, this triggers alert fatigue. Preprint hybrid analysis research (January 2026, not yet peer-reviewed) reports that hybrid LLM and static-analysis techniques can eliminate 94-98% of false positives while maintaining high recall; treat the exact range as directional until replicated. Practitioner reports consistently describe sustained high false positive rates as a leading driver of tool abandonment, though no single threshold is established in the literature.
  • Agent-first review moves this triage into software. Teams comparing how tools handle false-positive filtering can review broader market options in this roundup of enterprise code generators.
  • False negative costs stay high. Missed bugs reach production regardless of who reads the output first. A production bug costs an order of magnitude more than a pre-commit finding because it can require developer diagnosis, engineering hotfixes, incident response, and customer-impact work. A 2002 NIST testing analysis estimated that software bugs cost the U.S. economy approximately $59.5 billion annually at the time, and found that improved testing infrastructure during development substantially reduces these costs. The dollar figure is dated, but the underlying asymmetry between development-time and post-release defect costs continues to hold in more recent industry reporting.
  • The asymmetry favors recall. Sources widely cite Barry Boehm's cost-by-stage research as showing that defects found post-release cost dramatically more than those caught during requirements, though the exact multiplier varies by source. Once software performs first-pass triage, false positives become cheaper while post-release defects still cost dramatically more than earlier detection. That tradeoff holds until noise rises enough to trigger tool dismissal.

Why Every Existing Tool Optimizes for the Wrong Metric

Most AI code review products favor precision because distrust and alert fatigue are real. Precision-first design reduces developer-visible noise, but it leaves file-level review exposed to bugs that span services, permissions, and workflows.

The AI code review market has largely converged on precision-first design, with some variation.

GitHub Copilot's engineering blog describes its design philosophy as prioritizing high-signal feedback that moves a pull request forward quickly. CodeRabbit emphasizes a high signal-to-noise ratio in its AI code reviews, with stated overarching goals of speeding up the code merge process and improving code quality. Graphite explicitly markets as a precision tool that catches critical issues with minimal noise. OpenAI's alignment materials emphasize high-signal, trustworthy oversight and evaluation over maximizing raw recall.

Uber's uReview team explained its reasoning in an engineering post: comment quality matters more than quantity when developer trust is at stake.

Precision-first AI code review design persists because tools lose trust when they send developers too many weak findings. Functions read in isolation without upstream guard context can produce false positives when tools miss the surrounding code path.

File-level analysis cannot see every cross-boundary bug. The ISSTA 2024 study by Charoenwet et al. examined static analysis tools using a dataset of 815 real vulnerability-contributing commits. All five tools missed some vulnerable commits entirely, showing limits in what file-level analysis can catch. For tool-by-tool comparison, see this AI coding assistants comparison covering the leading products in the category.

Benchmark results from a 50-PR evaluation across production codebases show how precision and recall split across leading tools:

ToolPrecisionRecallF-Score
Augment Code~65%~55%59%
Cursor BugBot60%41%49%
Greptile45%45%45%
Codex Code Review68%29%41%
CodeRabbit36%43%39%
Claude Code23%51%31%
GitHub Copilot20%34%25%

Source: Augment Code benchmark on 50 PRs from production codebases (Sentry, Grafana, cal.com, Keycloak, Discourse). Self-reported by Augment Code; treat as directional and weigh accordingly given the vendor relationship.

The missed-bug category increasingly includes logic, authorization, and architectural defects that diff-limited review struggles to catch.

Deep Code Review: The Recall-First Approach

Recall-first review becomes practical only when the system can see enough context, explain why it flagged something, and filter candidate findings. Without those conditions, higher recall becomes higher noise.

Deep code review inverts the usual goal: when the reviewer is an agent, prioritize recall at the scan layer. The approach works when three conditions hold together.

  1. The agent processes full-codebase context. Conventional AI review tools operate on the diff. The bugs that escape file-level review share one property: they appear only when reasoning across multiple files, services, or execution paths at the same time. OWASP's guide to business logic testing states that "automation of business logic abuse cases is not possible" and that it relies on knowledge of the complete business process. Cross-service API contract violations, authorization logic spanning multiple permission models, and race conditions between subsystems each require full architectural context. Cosmos's Deep Code Review agent draws on the Context Engine to reason across 400,000+ files through semantic dependency graph analysis, giving the agent the architectural footing precision-first tools lack.
  2. The agent explains its reasoning, reducing per-false-positive cost. Legacy linters produced flags with no context, so each false positive imposed a high cognitive tax. AI agents can accompany findings with an explanation of why the issue was flagged, what the potential impact is, and under what conditions the concern applies. In Cosmos's Deep Code Review agent, the review scope covers bugs, security vulnerabilities, correctness problems, and cross-system interactions while excluding style, formatting, and subjective concerns.
  3. An agent-layer filter sits between high-recall scanning and the human. Cosmos coordinates multiple agents across review and other software development lifecycle stages, with triage agents structuring candidate findings before any developer-visible comment lands on a pull request. The Pair Reviewer then organizes those candidates into phases for human judgment.

How Humans Stay in the Loop

Human oversight remains necessary in recall-first review because filtered output, escalation decisions, and override behavior determine whether broader scanning stays usable. Teams need to decide where humans enter the workflow and what quality of findings they receive.

Open source
augmentcode/auggie222
Star on GitHub

Recall-first review generates more candidate findings than precision-first tools. Without structured human involvement, this volume creates the same alert fatigue that precision-first tools aim to prevent. The BitsAI-CR research identifies a failure mode as low precision in automated code review: false positives, hallucinations, and superfluous comments can undermine the usefulness of generated feedback.

In Cosmos, the Pair Reviewer is the human-in-the-loop checkpoint that organizes candidate findings into phases and guides reviewer decisions. The Pair Reviewer is the only stage of Deep Code Review that requires human input: the reviewer evaluates its output and then shares it with the author.

Three mechanisms prevent false positive overload from reaching developers:

  • Scope restriction to objective issues. The Deep Code Review agent prioritizes correctness and architectural issues over style nits, focusing on bugs, security, correctness, and cross-system problems. The enterprise setup guide directs setup away from low-value style comments.
  • Adaptive learning from human actions. CMU's Software Engineering Institute found that adaptive ranking surfaces 81% of true positive alerts after investigating only 20% of alerts.
  • Agent-layer filtering before developer exposure. The Pair Reviewer triages, categorizes, and structures output before presenting it, so developers do not receive raw findings directly. Two failure modes still require ongoing monitoring: alert fatigue causes developers to disable the tool when noise is too high, and automation complacency causes developers to rubber-stamp agent suggestions without reading carefully. Guidance on review quality metrics notes that teams can track escalation rate and human override rate to assess review quality. Ongoing human review and audit processes maintain independent evaluation capacity.

How Cosmos's Deep Code Review Catches What Others Miss

Cosmos's Deep Code Review analyzes interactions across services, modules, permissions, and workflows that file-level review cannot see. That broader coverage changes which bugs the system can detect.

Cosmos's recall-first architecture targets bug categories that precision-first, file-level tools struggle to detect. Security researcher Gary McGraw estimates that roughly half of all security defects are architectural design flaws beyond implementation bugs. These design-level vulnerabilities remain invisible to any tool that does not know what the software is supposed to prevent.

Cosmos's Deep Code Review targets these categories directly:

  • Cross-service API contract violations: Two services can each pass review in isolation but break when they interact, because the agent traces call chains across service boundaries.
  • Authorization logic flaws involving complex permission models: OWASP's secure review guidance categorizes these under "Human Expertise Advantages."
  • Error handling inconsistencies across module boundaries: A fault handling study of production cloud incidents documents how inconsistent error paths propagate across modules.
  • Workflow state bypass bugs: The OWASP business logic abuse list identifies workflow step skipping as a vulnerability class that spans technology stacks. False positives remain part of the tradeoff. The benchmark data shows 65% precision alongside 55% recall, for a 59% F-score. Precision is competitive with, though not the highest among, tested tools. Recall marks the clearest gap: 55% recall exceeds Codex Code Review (29%), Cursor BugBot (41%), and GitHub Copilot (34%) by 26, 14, and 21 percentage points, respectively, in that 50-PR benchmark. Those margins represent bugs that can remain undetected when review is tuned primarily to minimize noise.

Audit Cross-Service Review Before Your Next PR

Cross-service review strategy determines whether AI code review favors developer comfort at comment display or bug detection across the full codebase. That tradeoff matters most in cross-service changes, permission logic, workflow-heavy systems, and error-handling paths that no single-file diff exposes clearly.

Start by auditing where review failures already happen. Look for defects that emerge across service boundaries, authorization layers, workflow state transitions, or module interactions. Then decide whether your tools should search broadly first and filter findings before developers read them.

A useful audit can focus on three questions:

  1. Where do review failures emerge across service boundaries or module interactions?
  2. Which authorization layers or workflow transitions are easy to miss in diff-only review?
  3. Should the review process search broadly at the scan layer and filter tightly at the presentation layer?

Cosmos applies Deep Code Review to those three questions through full-codebase scanning, agent-layer triage, and human review of structured findings.

Try Cosmos

Free tier available · VS Code extension · Takes 2 minutes

ci-pipeline
···
$ cat build.log | auggie --print --quiet \
"Summarize the failure"
Build failed due to missing dependency 'lodash'
in src/utils/helpers.ts:42
Fix: npm install lodash @types/lodash

FAQ

Written by

Ani Galstian

Ani Galstian

Ani writes about enterprise-scale AI coding tool evaluation, agentic development security, and the operational patterns that make AI agents reliable in production. His guides cover topics like AGENTS.md context files, spec-as-source-of-truth workflows, and how engineering teams should assess AI coding tools across dimensions like auditability and security compliance

Get Started

Give your codebase the agents it deserves

Install Augment to get started. Works with codebases of any size, from side projects to enterprise monorepos.