v-collect

A command for collecting and reviewing the results of an already dispatched Compound V run. It rebuilds each job's result file, checks that jobs stayed within their allowed file scope, and repeats the review checks.

In plain words
What is it for?
Use it with a run ID to collect results from docs/superpowers/execution/, rerun the scope gate, and rerun the review gate.
Why use it?
It lets you re-check a run without sending workers again. This catches scope or review problems after the work has already been dispatched.

Command

Install

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.

agentmods
npx agentmods add commands/procoders/superpowers-v/v-collect
Clone the repo
git clone --depth 1 https://github.com/procoders/superpowers-v
Per session 70 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,143 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00070 $0.03143
Opus 5 $0.00035 $0.01571
Sonnet 5 $0.00014 $0.00629
Haiku 4.5 $0.00007 $0.00314

Measured 2d ago against content hash 329683e85076, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

v-collect 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 2d 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.

commands/v-collect.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are running /v:collect — the collect → scope-gate → review tail of the Compound V pipeline, on an already-dispatched run. It does not re-dispatch workers (use /v:resume for that). It re-normalizes results, re-runs the file-scope gate, and re-runs the Review Gate — the deterministic, idempotent back half of a run.

The run-id is {{args}}.

The run-dir layout and per-job status semantics are in skills/compound-v/state-machine.md; the manifest each job is checked against is execution-manifest.md; the canonical job_result shape is schemas/job_result.schema.json.

Steps

  1. Locate the run. If {{args}} is empty, list the subdirectories of docs/superpowers/execution/ and ask which run to collect. The run dir is docs/superpowers/execution/<run-id>/. If it does not exist, stop and say so. If no jobs have been dispatched yet (phase earlier than DISPATCHED), tell the user there is nothing to collect and stop.

    Branch on the manifest kind. If manifest.yaml carries a fast_path block (a v2.9 pre-eval-backed fast-path run — its phase is FASTPATH_DISPATCHED), do not run the ordinary three-pass review tail (steps 3–4). Run the fast-path authoritative sequence below instead (CR5-2). Step 2 (collect/normalize) still applies to the single implementer job. A legacy (non-fast_path) manifest uses steps 2–5 unchanged.

  2. Collect — normalize each job's output. The collector is per-job (required --job-id + --run-dir; no positional run-dir). Loop over every dispatched <job-id>, normalizing its heterogeneous worker output into a canonical results/<id>.json:

    # for each dispatched <job-id>:
    python3 scripts/compound-v-collect-results.py \
      --job-id <job-id> \
      --run-dir docs/superpowers/execution/<run-id>/ \
      --scope <scope-verdict.json> \
      --worker-output <last-message> \
      --schema schemas/job_result.schema.json
    

    Output lands in <run-dir>/results/<job-id>.json. The collector validates each result against schemas/job_result.schema.json. Its files_changed / violations / blocked fields are git-derived (folded in from --scope), never model-self-reported; --worker-output feeds only the human summary. It prints no fabricated cost metrics.

  3. Scope gate — git-diff authority, every job. Re-run the scope gate on each job against its write_allowed from the manifest. The script takes a mutually-exclusive mode flag (--worktree OR --repo) plus the allowed globs (--allow-file) — no positional path. Use the mode matching how the job was dispatched (mirrors phase-3-parallel-opus-dispatch.md):

    # worktree jobs:
    python3 scripts/compound-v-scope-check.py --worktree <wt-dir> --allow-file <allow-globs-file>
    # direct (in-repo) jobs:
    python3 scripts/compound-v-scope-check.py --repo <repo-dir> --baseline <pre-dispatch-commit> --allow-file <allow-globs-file>
    

    Exit codes: 0 = pass, 1 = blocked (violations present), 2 = usage/git error. It derives changed files with git -C <worktree-or-repo> diff --name-only HEADgit ... ls-files --others --exclude-standard. Any path outside write_allowed ⇒ the job is BLOCKED: mark it blocked in state.json, retain its worktree, do not merge it, and HALT the run — surface the offending paths to the user. A BLOCKED job is corrected and re-dispatched via /v:resume, not silently merged.

  4. Review Gate — three passes (Opus), AC-gated. If every job passes the scope gate, run spec-reviewer's three passes:

    • SPEC — each job satisfies its own acceptance in the manifest.
    • QUALITY — code quality, no regressions, no fabricated metrics.
    • INTEGRATION — cross-job seams build, and the composite change satisfies the feature-level acceptance_criteria. DONE is gated on all three. Unresolvable reviewer ISSUES ⇒ HALT (do not merge).

Read the full file on GitHub · 96 lines

Changes

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.

  1. 2d ago First seen · 96 lines · 70 tokens per session scan A 329683e85076

Subscribe to this mod's changes

v-collect is a command published in the GitHub repository procoders/superpowers-v (35 stars, last pushed 2d ago), licensed MIT. It adds 70 tokens to every session and 3,143 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.