Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/procoders/superpowers-v/v-resumegit clone --depth 1 https://github.com/procoders/superpowers-vWrote 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/procoders/superpowers-v/v-resume)<a href="https://agentmods.dev/commands/procoders/superpowers-v/v-resume"><img src="https://agentmods.dev/badge/commands/procoders/superpowers-v/v-resume.svg" alt="Measured on agentmods" 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 | $0.00055 | $0.02588 |
| Opus 5 | $0.00028 | $0.01294 |
| Sonnet 5 | $0.00011 | $0.00518 |
| Haiku 4.5 | $0.00006 | $0.00259 |
Grade A, and why
v-resume 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 3d 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 — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are about to resume the Compound V orchestrator run {{args}} after an interruption or crash. Resume is idempotent — resuming a fully-MERGED run is a no-op.
Resume is Engine-A-owned: it does not rely on Workflows (whose resume is same-session-only and fails the crash case). The reconcile + re-dispatch logic below is the authoritative procedure defined in skills/compound-v/state-machine.md.
Steps
-
Locate the run. If
{{args}}is empty, list the subdirectories ofdocs/superpowers/execution/and ask which run to resume. The run dir isdocs/superpowers/execution/<run-id>/. If it does not exist, stop and say so. -
Read
state.jsonandmanifest.yamlfrom the run dir. Ifphaseis alreadyMERGED, report nothing to do and stop. -
Reconcile against git reality (git-wins). For each job, derive what actually landed using the same git signal the scope gate uses:
git -C <worktree-or-repo> diff --name-only HEAD∪git -C <worktree-or-repo> ls-files --others --exclude-standard.- When
state.jsonand git disagree, git wins:doneinstate.jsonbut the job'swrite_allowedfiles are not in git → reclassify as not-done, re-dispatch.pending/runninginstate.jsonbut the files are fully present and within scope → reclassify asdone, skip.
-
Reconcile the circuit breaker (neither a silent retry nor a permanent lockout).
circuit_openis an object per backend —{ "<backend>": { "open": bool, "reason": "out_of_credits|auth", "opened_at": "<iso-ts>", "cleared_by": null } }(seestate-machine.md). For each entry, decide whether to keep it open or clear it before any re-dispatch:reason == "out_of_credits"→ keep the breaker OPEN unless the user confirms a credit top-up, or a cheap liveness probe — a tiny "reply ok" call to that backend — returns success. Only then setcleared_by("top_up"or"probe") and re-dispatch that backend'sfailedjobs. The run-leveltotal_retriesbudget persists across the resume.reason == "auth"→ keep the breaker OPEN until the user re-authenticates (point them at/v:init). Only after re-auth setcleared_by: "reauth"and re-dispatch itsfailedjobs.- Cooldown-only (no open breaker) → a backend whose
cooldowns[backend]timestamp has merely expired is half-opened: probe it once before full re-dispatch. A clean probe clears the cooldown; a repeat failure re-cools it via the policy. - Never silently re-dispatch to a still-open breaker. If neither the top-up/probe (credits) nor the re-auth (auth) has happened, leave the breaker open, leave its jobs
failed, and report exactly what the user must do to unblock — do not retry behind their back. - Update
circuit_open[backend].cleared_byand writestate.jsonfor every breaker transition.
-
Re-dispatch only the incomplete jobs — those that are
pending,failed, orblockedafter steps 3–4 (and not behind a still-open breaker) — via Engine A (compound-v:parallel-dispatcher/ the backend-launcher), honoringdepends_on,run, andmax_parallelexactly as the original dispatch. Each re-dispatch replays the captured prompt atjobs/<id>.prompt.mdverbatim.- A Codex worktree job's resume-vs-recreate decision is governed by the resume-eligibility rule below — reproduced verbatim so it agrees word-for-word with
parallel-dispatcher.mdand kills the old contradiction (this step once said "may usecodex exec resume" unconditionally, while the dispatcher's invariant recreates the worktree fresh at HEAD). Either way — resumed session or fresh recreate — the scope gate re-runs on return. - Update each job's
statusand writestate.jsonafter every transition.
- A Codex worktree job's resume-vs-recreate decision is governed by the resume-eligibility rule below — reproduced verbatim so it agrees word-for-word with
Both inputs the rule needs live in state.json jobs[<id>] — session_id (the captured UUID) and failure_class — written there by the dispatcher on the job's return (Step 2 already reads state.json; you do not need to open results/<id>.json for this). A job with an empty session_id has no session to resume ⇒ recreate fresh regardless.
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.
- 3d ago First seen · 65 lines · 55 tokens per session scan A 4cd8769841b5
v-resume is a command published in the GitHub repository procoders/superpowers-v (35 stars, last pushed 4d ago), licensed MIT. It adds 55 tokens to every session and 2,588 once invoked, about $0.0003 per session on Opus 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-30.
Other commands, from other repositories
build
Plan-then-execute against SPEC.md. Native Claude Code loop, no sub-agents.
deepen
Spare-budget design pass. Make one shallow module deep — smaller interface, behavior held, tests green before & after.
research
Gather external knowledge into §R so build grounds in facts, not hallucinations. Every finding cites a source.
review
Adversarial senior review of the spec before build. Refute, don't rubber-stamp. Ends in a go/no-go gate.
check
Drift detector. Diff SPEC.md against code. Read-only, zero writes.
session-end
Guided end-of-session ritual. Writes structured handoff (session-handoff.md), appends progress.md entry, and offers over-budget state archival + TOC refresh + git commit.