Skip to content

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

claude.dev 16 min read Case study mediumAdept

How the Claude Code team does code review

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.

Assumes: pull request workflowsCI pipelinesfeature flags

Related posts

  • How we built Claude Code auto mode

    Anthropic Engineering mediumAdept

    Claude Code’s auto mode replaces most permission prompts with a two-layer defense: a server-side prompt-injection probe screens tool outputs before they enter context, and a two-stage transcript classifier gates risky actions such as shell commands, external fetches and out-of-project file operations. The classifier runs a fast yes/no filter first, then chain-of-thought only on flagged transcripts, and it is deliberately reasoning-blind by stripping assistant text and tool outputs. Evaluated end to end, it cut false positives on real internal traffic to 0.4% while letting through 17% of real overeager actions and 5.7% of synthetic exfiltration attempts—so it is positioned as safer than --dangerously-skip-permissions but not a replacement for careful manual review on high-stakes infrastructure.

  • A practical guide to shipping with Claude Code

    claude.dev mediumAdept

    Claude Code's /ship command commits pending changes, opens a PR, runs /code-review and fixes valid findings, then watches the PR for up to seven days. While watching it fixes failing checks, resolves conflicts and addresses review comments, and it escalates design-level questions after at most three attempts on an issue. The guide covers the /code-review effort levels and flags, /steward for existing PRs, and the security caveats of the local watch. Merging the base branch runs code under your credentials, and git hooks are bypassed. Recurring feedback should be encoded in CLAUDE.md, REVIEW.md, and verify and steward skill files before asking admins to pilot Claude Ship team-wide with protected branches.

  • 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 Dropbox uses MCP and Dash to close the design-to-code security gap

    Dropbox Tech easyNovice

    Dropbox built a code-review agent that uses Dash's MCP server to retrieve relevant threat models and has a foundational LLM check whether a pull request actually implements the security requirements agreed during design review. Analysis of 150 security design reviews found only 12% of implementing PRs link back to their review, the median gap between review and PR is about five weeks, and 69% of review-to-code connections were recoverable only through semantic search. Surfacing threat-model context exposed missing controls and contradictions that static analysis cannot detect. Design principles include validating findings before showing them, tracing each finding to a source requirement, keeping most findings advisory, and handling stale requirements.

  • Detecting malicious pull requests at scale with LLMs

    Datadog Engineering mediumAdept

    Datadog's SDLC Security team built BewAIre, an LLM-based reviewer that classifies the diff of every merged PR (nearly 10,000 a week) as benign or malicious, with a written rationale emitted as a security signal for real-time triage. Large diffs are recursively chunked at file markers, then newlines, then midpoints, and the most severe chunk verdict wins, with depth and chunk limits to bound cost. A hand-curated, weekly-updated dataset of real and simulated attacks, prompt-level false-positive exclusions, balanced accuracy as the metric, shadow-mode triage and red teaming cut false positives from over 10% to 0.03%. On the curated set it reached over 99.3% accuracy and caught the tj-actions and Nx s1ngularity malicious commits.

The quest for software engineering knowledge.

Look:
Layout: