Set up layered agent code reviews
A team had Claude Code write most code, then used multiple review layers to catch bugs before merge.
- What they did
- Anthropic’s Claude Code team changed its review flow so the coding agent first checked its own changes by running tests, builds, or screenshots. A separate fresh-context subagent then reviewed the diff, and every pull request also went through parallel bug-hunting agents, with additional agents voting on each issue they found. Security review and CI still blocked merges, while a classifier decided whether humans needed zero, one, or two approvals based on risk. After that, changes moved through a merge queue, feature flags, and a gradual rollout.
- How it went
- Between June and September, the number of merged pull requests more than doubled, and the share that got reverted dropped by more than 40%. A convergence change also reduced the average number of reviews needed to pass from 2.08 to 1.32. They still do not have circuit breakers that automatically raise the approval bar when risk increases.
- Tips
- Keep the reviewer from rereading the same proposal forever: this team caps repeat review rounds at three and only asks it to inspect the new diff. Use the agent for checks, but keep a human approval gate for anything that could merge, ship, or change access.
Try it yourself with Claude Code
Review the pull request on [branch name] in [repo]. First compare the changes with the goal described in [PR description or ticket link]. Then inspect the diff for bugs, missing tests, security problems, and style issues against [conventions doc or file]. If useful, run or suggest checks such as tests, builds, or screenshots, but do not modify code. Stop before any action that would merge, deploy, send, delete, or submit anything, and ask for approval if that step is needed. Finish with a severity-ranked issue list and a clear recommendation on whether this is safe to merge.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use Claude to code a PDP-7 Forth quickly
A retired engineer had Claude produce a PDP-7 Forth, plus graphics and display tooling, in a single morning.
Use a browser agent to find and fix UI bugs
A frontend developer uses a browser agent and a coding agent together to spot UI issues, trace them in Chrome, and patch the code.
Let Claude Code text you only when it needs help
A solo SaaS founder let Claude Code handle most coding and interrupt them by Telegram only for decisions, errors, and approvals.
Split frontend and backend work between two agents
A poster used Claude Code for the frontend and Codex for the backend while sharing one live workspace to cut down on handoff work.
Turn a requirements doc into a live blog aggregator
Use Claude Code to convert a dense spec into a Vue site that gathers posts from multiple platforms and deploys it to Netlify.
Use Claude Code to open and prepare an AWS account
A developer used Claude Code to handle AWS sign-up, setup checks, and a small test deployment.