Agent Shipped

Issue · 2026-10-19 · Claude Code · Subagents · Hooks · Workflows

How the Claude Code Team Reviews 30,000 Changes a Day

Agent Shipped: Let the agents read, let people decide

Last week the Claude Code team published how they review code now that agents write most of it, and it's the most useful thing I've read on the topic. I've pulled out the parts you can copy into your own repo. Plus a default that changed under your claude -p scripts, and a trick for making an agent follow a rule it keeps forgetting.

What changed: fork subagents are on by default outside the terminal

Claude Code 2.1.302 (October 16) turns fork subagents (subagent_type: "fork") on by default in claude -p, the Agent SDK, the desktop app and VS Code. They were already on in the terminal.

Do this today: if you run headless jobs with claude -p or the SDK, rerun one and check the output looks the same. If something changed and you want the old behavior, set CLAUDE_CODE_FORK_SUBAGENT=0.

Also in this release:

Workflow of the week: review the way the Claude Code team does

In How the Claude Code team does code review (October 15), Addy Osmani, Morgan Westlee Lunt and Qing Wang lay out their setup. Their goal: most PRs merge with at most one human in the loop, with no rise in reverts or incidents. From June to September, merged PRs more than doubled and the revert share fell by more than 40%. (Simon Willison's summary is a good short version.)

Their pipeline, in the order it runs:

  1. Before the PR, locally: Claude runs the tests, build and linter and shows the output instead of claiming success. A subagent reviews the diff in a fresh context. /code-review and /security-review are there for a lighter local pass. Hooks run formatters and linters.
  2. On every PR: required CI (lint, types, tests, build) blocks merge when red. Then AI code review, then a separate security review. Open findings from either block merge.
  3. Approval by risk, not by author: docs and flagged additive changes need no human once checks are green; ordinary product changes need one person; the riskiest paths need two.
  4. After merge: feature flags, internal users first, and fast reverts.

The rules I'd adopt first, even on a solo project:

My take: step 1 needs no extra tooling. Make "show me the test output" part of how you ask for every change.

Copy this: a REVIEW.md for your repo

The same post recommends a REVIEW.md written by code owners. Their guidance: say what failure looks like in this repo, cap nits, list paths to skip, require a file and line as evidence, and start the summary with a count, saying plainly when nothing needs fixing.

Here's a starter I wrote from that guidance (paths and rules are mine; edit them):

# REVIEW.md

## What failure looks like here
- API handlers: a change that skips the auth check.
- Migrations: anything that can't be rolled back.

## Skip
- dist/**
- **/__snapshots__/**

## Rules
- At most 3 nits per review.
- Every finding cites file:line.
- Start the summary with the number of findings. If nothing needs fixing, say "0 findings".

Point your reviewer at it. For a local pass, tell Claude: "Review this diff against REVIEW.md in a fresh subagent and show me the summary."

Bonus, for a rule your agent keeps forgetting: Geoffrey Huntley describes a pre-commit hook that checks the git diff for direct calls to observability modules, fails the commit, and injects a prompt telling the agent to use his diagnostics library instead. Updating AGENTS.md alone left a gap that drifted; with the hook, he says compliance went to "ten out of ten." He doesn't publish the script, but the pattern works for any "always use X, never Y" rule: grep the staged diff, exit non-zero, and print the instruction you want the agent to read.

Worth your time

Reply and tell me

Who reviews your agent's code today: you, a second agent, CI, or nobody? Hit reply and tell me your setup. I'll share the best ones (with permission) in a future issue.

Get the field guide

Join builders who use coding agents every day. Free, twice a week, unsubscribe in one click.

No spam. The CLAUDE.md starter pack comes in your confirmation email. Not seeing it? Check spam or Promotions.

Related guides