name: review description: Independent review of the current change by the reviewer agent. argument-hint: "[slug or handoff file]" disable-model-invocation: true
Review the current change (handoff file $ARGUMENTS, or the one whose Status is built).
- Get the models in force: run
python3 <plugin folder>/hooks/dw.py models --project <project root>(the plugin folder is two levels above this file). Start thedev-workflow:revieweragent with thereviewmodel (Opus by default), the handoff file path, the base branch and the full paths of the playbooks under the handoff'sDepartments(as the build step names them), and nothing else. Never pass your own conclusions; it must judge independently. Achorebelow the one-person risk tier and aspikeneed no review. Cross-check: whenSizeisstandardorhard,Typeisdata, or the diff touches a path insensitivePaths(.claude/dev-workflow.json), start a seconddev-workflow:reviewerin the same message with thecrossCheckmodel (Sonnet by default; none when it isoff) and the same brief. Neither sees the other's report. - If the diff touches a path in
sensitivePaths, the handoff file'sTypeisdata, or itsDepartmentsincludesecurity,privacy,paymentsorai, also run the bundled security review on the change and add its findings. If it cannot run here (it needs a repository with a remote), have the main reviewer do the security pass on the diff instead and say that it did. A change that cannot be undone (a migration, a deploy step) is named as such in the verdict so the user sees it. - Before acting on anything, copy each report word for word under a
Reviewheading in the handoff file, labelled with its model. Then settle the findings:- raised by both reviewers: fix it;
- raised by one: reproduce it with a test or command. If it reproduces, fix it. If not, record
the command and its output beside the finding as the reason.
You never dismiss a finding on your own judgment. The verdict is the main reviewer's (the
reviewmodel), and a finding of its own that you could not reproduce stays open until it accepts your evidence in round 2 or the user does. A reproduced blocker means FAIL whichever model found it.
- Show the user the verdict and findings in at most 10 lines. Under
Statusrecord the verdict and, per model, how many findings were confirmed and how many only that model found. - On FAIL, fix the findings (through
dev-workflow:builderon the model the task'sSizepicks, for anything non-trivial, its brief naming the playbooks as the build step does), then run round 2. A task gets at most 2 review rounds. Round 2 gets the handoff file path, the round-1 findings with any reproduction evidence and the commit range of the fix only, and checks those and the new diff. It runs the main reviewer, plus the second one only if a finding it alone raised was fixed. If round 2 fails, set the handoff Status topausedwith the open findings and stop for the user; do not start a third round.