Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add juanmhidalgo/claude-plugins/plugin install code-reviewWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/juanmhidalgo/claude-plugins/staged-pipeline)<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/staged-pipeline"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/staged-pipeline/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/staged-pipeline"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/staged-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.03025 |
| Opus 5.5 | $0.00018 | $0.01210 |
| Sonnet 5.5 | $0.00009 | $0.00605 |
| Haiku 4.5 | $0.00004 | $0.00302 |
Grade A, and why
staged-pipeline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 293 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Context
- Current branch: !
git branch --show-current - Staged files: !
git diff --cached --name-only - Arguments: !
bash "${CLAUDE_PLUGIN_ROOT}/scripts/args.sh" '$ARGUMENTS' - All arguments: $ARGUMENTS
Phase 0: Validate
The Arguments line is the parsed form of what the user typed: one JSON
object with pane, spec, effort and positional. Read its fields; do not
parse the raw arguments yourself. The focus area is positional joined
with spaces (empty when none was given); effort is the level, medium when
null; spec goes to find-spec.sh, which searches on its own when it is
null (a path with spaces cannot be passed).
- Check staged changes exist:
git diff --cached --name-onlymust return files. If empty, STOP and tell user to stage changes first. - Note the staged file list for later phases.
Herdr pane
When pane is true, after Phase 0 passes, run the whole pipeline in a Herdr
pane in worktree mode with --worktree-staged. pane: null means no pane:
this command has no configured default, and false is what the pane session
itself receives. Follow
${CLAUDE_PLUGIN_ROOT}/references/herdr-pane.md. The worktree starts at
HEAD with exactly what is staged here. Phase 3's approval happens in the
pane, and Herdr notifies the user when it is waiting.
- Command string:
/code-review:staged-pipeline <focus area, if any> --no-pane - Report:
<scratchpad dir>/staged-pipeline-<branch>.md - On exit 0: read the report, then bring the fixes back:
herdr-pane.sh staged-patch <worktree_path> <base_tree> <scratchpad dir>/staged-pipeline-<branch>.patchprints the patch's stat, oremptywhen nothing was fixed.- If not empty, show the stat and apply it with
git apply --index --3way <patch>. This is the step Phase 4 would have done here, and the user already approved it in the pane. If it conflicts (you edited those files meanwhile), stop, keep the patch, and say which files conflicted. - Present the report's Phase 6 summary, then offer
herdr-pane.sh cleanup <workspace_id> --force --delete-branch <worktree_branch>. Use--forceonly after the patch applied (or was empty): until then the fixes exist only in that worktree.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 26d ago Changed · -7 lines c80d43d94702
- 1mo ago Changed · +10 lines dd056fddd720
- 1mo ago Changed · +11 lines 6285780b15e1
- 1mo ago Changed · +29 lines 8e013caac793
- 2mo ago Changed · -4 lines 500674e7c205
- 2mo ago Changed · +22 lines 8991787c1484
- 3mo ago First seen · 232 lines · 44 tokens per session scan A 9447df75e3d2
staged-pipeline is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 18d ago), licensed MIT. It adds 44 tokens to every session and 3,025 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
staged-pipeline compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| staged-pipelinejuanmhidalgo/claude-plugins | Command | 8 | 18d ago | MIT | A | 44 | Claude Code |
| elegant-code-reviewathola/claude-night-market | Command | 358 | today | MIT | A | 27 | Claude Code |
| prp-commitFmarzochi/EGC | Command | 70 | today | Apache-2.0 | A | 15 | Claude Code |
| pr-riskkumaran-is/claude-code-onboarding | Command | 37 | today | MIT | A | 0 | Claude Code |
| validate-pr-descriptionrjmurillo/ai-agents | Command | 50 | today | Apache-2.0 | A | 22 | Claude Code |
| gsd:pr-branchkryptobaseddev/cleo | Command | 159 | 2d ago | MIT | A | 24 | Claude Code |
| check-prFirstp1ck/pi-coding-agent-forge | Command | 96 | yesterday | MIT | A | 17 | Claude Code |