Arguments. [run-everything|fix] [--yes] [--unattended]. e.g., /review:fanout, /review:fanout run-everything, /review:fanout --unattended, /review:fanout fix, /review:fanout fix --yes
Repository context. Gather first
<!-- BEGIN GENERATED: gather-block. Edit docs/conventions/gather-block/block.md, then run scripts/sync-gather-block.py -->
Run each command below as its own Bash call, all sent together in one message (worktree isolation).
Keep any bound in the command's own pipe (output limits).
Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).
<!-- END GENERATED: gather-block -->
- Current branch,
git branch --show-current - Working tree status (empty = clean),
git status --porcelain | head -20 - Uncommitted diff size,
git diff --shortstat HEAD - Remote session marker,
printenv CLAUDE_CODE_REMOTE(set means the run is unattended: "Arguments")
Pre-computed context
Open PRs (match headRefName to current branch above; baseRefName is the PR's real base): !gh pr list --json number,title,headRefName,baseRefName --limit 10 2>/dev/null || echo "unknown"
Committed diff size vs default-base merge base (recompute against the PR's baseRefName when it differs): !bash "${CLAUDE_PLUGIN_ROOT}/skills/fanout/scripts/diff-vs-base.sh" 2>/dev/null || echo "unavailable"
Purpose
Breadth review: fan out across many finding-producing surfaces at once (quality-gate picks one lens), then normalize their heterogeneous free-text, which carries two independent axes (severity, confidence) with most surfaces filling only one, through a 5-stage pipeline (extraction → severity crosswalk → confidence enum → dedup → agreement/rank, findings-normalization.md) into one severity-ranked report persisted to disk.
Review modes report; a separate fix action applies. The default and run-everything modes fan out, normalize, and persist findings, mutating nothing but the findings file. The fix action consumes the persisted findings and is the only mode that touches the working tree.
Stub-scaffold phase. When a stub-scaffold phase (the planning plugin's scaffold_stubs setting) is committed, fanout may review that diff before the bodies are filled in, so file layout and signatures get a review while they are still cheap to change. It runs as an ordinary review of the committed diff, with no argument, setting or step of its own.
Shared inputs
- Review diff base: change-set.md "Review diff base". The pre-computed PR list above is the capped list that section names.
- Severity vocabulary: change-set.md "Severity vocabulary".
- Findings location: change-set.md "Findings location". The review modes' writer and the
fixaction's reader both resolve it there.
Arguments
A positional mode token (Step 0) plus two flags:
| Flag | Default | Effect |
|---|---|---|
| --yes / -y | Off | Skip the pre-execution confirmation gate for the fix action. Required for headless runs. |
| --unattended | Off | The caller declares that nobody is present (a loop, a routine, a lane rule). The review modes then run no proposed check and ask nothing. |
Unattended. A review-mode run is unattended when --unattended is passed or the environment
says nobody is present (CLAUDE_CODE_REMOTE set, claude -p, an autonomous loop), the test in