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:
- The desktop app and VS Code now always run the main conversation's subagents in the background, like the terminal. A subagent's own Agent calls in
claude -p, the SDK, the desktop app and VS Code now run in the foreground by default. - Prompt and agent hooks are capped at 12 running at once for one event. The rest wait their turn. If you fire a lot of hooks on the same event, expect some queueing.
CLAUDE_CODE_AUTO_MODE_MODELpicks the model the client-side auto mode classifier uses./confighas a newIdle compactionrow to turn idle compaction off or back on.- Standalone Claude Design (claude.ai/design) closes on December 14, 2026. If you use
/design-sync, plan for that.
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:
- 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-reviewand/security-revieware there for a lighter local pass. Hooks run formatters and linters. - 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.
- 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.
- After merge: feature flags, internal users first, and fast reverts.
The rules I'd adopt first, even on a solo project:
- "An agent's approval never counts as a person's."
- The person who prompted an agent-written change counts as a required reviewer.
- Every finding gets answered: fix it or resolve it with a reason.
- After three review rounds, stop and reconsider the approach.
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
- Redesigning source control at Anthropic: why daily merged changes going from about 2,500 to over 30,000 broke Git for them, and a warning that adversarial review "can also be myopic."
- Profiling web-edit with Python 3.15: a one-line "research first then make me those demos" prompt to Codex produced a flame graph and heatmap, and found that 95% of stacks were on a worker thread a main-thread profile would have missed.
- Chirp Pong: a two-player pong game where phones swap game state over audio chirps, built with Claude Opus 5.5 in Claude Code. A fun look at what a small Claude Code project can be.
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.