Performs incremental code review of new commits since the last review on the current branch. Supports full review, branch targeting, and explicit git ranges.
Ships in pirategoat-tools. Installing the plugin adds it to Claude Code.
You are a code review orchestrator. Your mission: ensure the review pipeline runs to completion with dedication, precision, and care — producing a comprehensive, accurate, and actionable review of the code changes that the author can act on and that maintains a high quality bar for the codebase and its users.
This run reviews new commits since the last review on this branch. On
first run, reviews all changes (same as /full-code-review).
A Python script provides step-specific briefings. Call it once per step, read the briefing carefully, execute every action in it, then call it again for the next step indicated in the output.
Each briefing specifies required artifacts. Treat each as a contract — write the file, verify it exists, then move on. Do not skip verification.
Parse arguments: $ARGUMENTS
full or reset: delete the review baseline and do a full review..): review that rangeDetect dependency refresh mode: If the user's input clearly asks to refresh or install dependencies before the review (e.g., "refresh deps", "refresh dependencies", "update dependencies first", "install deps first"), add --refresh-deps to the first pipeline.py call. This is trusted-branch mode: after a clean-tracked-worktree safety check, the interactive orchestrator inspects the trusted worktree and refreshes dependencies adaptively — only add the flag when the user asked. Examples:
/code-review refresh deps → add --refresh-deps/code-review → omit the flagAn omitted flag falls back to the requester's machine-local default
(~/.config/pirategoat/config.json with review.refresh_dependencies: true
turns refresh on for every interactive run). If the user asks to skip the
refresh for this run, add --no-refresh-deps.
Construct output directory (sanitize all fragments):
REPO_ROOT=$(git rev-parse --show-toplevel)
OUTPUT_DIR=$(python3 ${CLAUDE_PLUGIN_ROOT}/scripts/review/run_paths.py allocate --kind branch --repo-root "$REPO_ROOT" --target "$(git branch --show-current)")
# Default review mode; full/reset switches it to a clean full review below.
MODE=incremental
Handle full/reset mode:
If $ARGUMENTS is full or reset, delete the baseline and switch to full mode:
TARGET_DIR=$(dirname "$(dirname "$OUTPUT_DIR")")
rm -f "${TARGET_DIR}/.branch-review-baseline.json"
MODE=full
Run Step 1:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/review/pipeline.py \
--step 1 --mode "$MODE" --output-dir "$OUTPUT_DIR" \
--session-id "${CLAUDE_SESSION_ID}" [--refresh-deps]
If an explicit git range was provided, add --git-range "<RANGE>". Add
--refresh-deps only if the user asked to refresh dependencies.
Execute the briefing printed by the script. Then call with --step N
where N is the next step indicated in the output. Continue until the
script signals PIPELINE COMPLETE.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
/pirategoat-tools:code-reviewfrom pirategoat-tools
npx claudepluginhub vladolaru/claude-code-plugins --plugin pirategoat-tools8 commands in this plugin
/copy-asStep 1: Identify Target Format, Then Extract ContentCopy content to clipboard formatted for the target destination (markdown by default, Slack mrkdwn or P2/Gutenberg HTML when specified)/full-code-reviewWorkflowRun a full multi-agent code review on the current branch's changes (no PR required)/iterative-reviewSetupMulti-round independent Codex review on the current branch with pushback tracking and convergence detection. Use when you want an independent external review before creating a PR or merging./pr-branch-updateStep 1: Find the PR and pin what the update needsUpdate a PR branch with its latest base branch and resolve merge conflicts — by PR number or URL, or the current branch's PR/pr-reviewWorkflowEnd-to-end PR review — gathers context, dispatches all review agents, validates findings, and saves a comprehensive review document/pr-updateStep 1: Detect PR and Validate StateAnalyze the current PR branch and update the PR description with an accurate, validated summary proportional to PR sizeOther plugins' commands for the same job