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 musingfox/cc-plugins/plugin install pi-dispatchWrote 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/skills/musingfox/cc-plugins/pi-dispatch)<a href="https://agentmods.dev/skills/musingfox/cc-plugins/pi-dispatch"><img src="https://agentmods.dev/badge/skills/musingfox/cc-plugins/pi-dispatch/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/skills/musingfox/cc-plugins/pi-dispatch"><img src="https://agentmods.dev/badge/skills/musingfox/cc-plugins/pi-dispatch.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.00117 | $0.03016 |
| Opus 5.5 | $0.00047 | $0.01206 |
| Sonnet 5.5 | $0.00023 | $0.00603 |
| Haiku 4.5 | $0.00012 | $0.00302 |
Grade B, and why
pi-dispatch scanned grade B with 1 finding 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 25d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
4. Ask whether to keep it. On yes, edit `~/.claude/settings.json`: set How it starts
The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.
pi-dispatch — offload usage
${CLAUDE_PLUGIN_ROOT}/scripts/pi-agent.sh is the name-addressed unified entry point over the pi
worker primitives. The registry is the filesystem: $PI_RUNS_DIR/agents/<NAME>
symlinks to the run's RUNDIR. Main reads this whole file and runs the verbs
itself.
How main uses this
-
Decompose the work into self-contained briefs (one observable outcome each). For code-writing tasks, create one worktree per task, put its ABSOLUTE path in the brief, and launch with
PI_CWD=<worktree> ${CLAUDE_PLUGIN_ROOT}/scripts/pi-agent.sh start …. The brief tells the worker where to work; onlyPI_CWDmakes it start there, and it is what arms the worktree fence (git shim + write/edit extension). A fresh dispatch without it is refused (exit 2). To run a worker in the current directory on purpose, say so withPI_CWD="$PWD". Everycreateflag is required:${CLAUDE_PLUGIN_ROOT}/scripts/pi-worktree.sh create \ --repo_root <repo root> --branch_name <new branch> \ --base_ref <BASE_REF sha> --base_branch <branch to diff against> \ --work_path <worktree path> --diff_out <diff file> \ --cleanup_out <cleanup script> --rundir-file <rundir file>It prints the worktree path and appends a cleanup block to
<cleanup script>. Afterstart, write the worker's RUNDIR into<rundir file>(startprints it asRUNDIR=…; pipe throughsed -n 's/^RUNDIR=//p') so cleanup can kill a live worker; an empty file skips the kill. When the work is merged or dropped, run${CLAUDE_PLUGIN_ROOT}/scripts/pi-worktree.sh clean <cleanup script>: it saves the diff to<diff file>and removes the worktree. -
Run
${CLAUDE_PLUGIN_ROOT}/scripts/pi-agent.sh startper task, arm one backgroundwatch(below), and run each worker's acceptance check when it settles. -
Terminal status lines persist in the RUNDIR and replay on re-poll; raw stream is kept as
pi.stream.jsonl, distilled final text asresult.md. -
stop NAMEonce a worker's result is consumed. The registry never self-prunes, and everywatchre-prints each of ITS named terminal agents on its first sweep. -
watchrequires the names because the registry is machine-wide: an unscoped watch would report on — and quota-abort — another dispatch's workers.lsis the global view. -
When a batch ends on
QUOTAorQUOTA-WINDOW(see the provider wall below), hand the SAME brief to a Claude seat on the same worktree: do it yourself, or dispatch it as a muster run. One shot: if that fails too, the task is failed.
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.
- 25d ago Changed · -4 lines · -20 tokens per session 6362df57ae4c
- 1mo ago Changed · +26 lines · +2 tokens per session 94e1bc045724
- 2mo ago Changed · +16 lines scan A → B d47f68d9f329
- 2mo ago Changed · +14 lines 63f90a82b3bb
- 2mo ago Changed · +7 lines 7a9110f3cd1b
- 2mo ago Changed · -18 lines a82e2cd464fe
- 2mo ago Changed · +12 lines fc8d88b390f8
- 2mo ago Changed · +7 lines · +64 tokens per session d96db956597f
- 2mo ago First seen · 158 lines · 71 tokens per session scan A b4e3ebfcc085
pi-dispatch is a skill published in the GitHub repository musingfox/cc-plugins (2 stars, last pushed 4d ago), licensed MIT. It adds 117 tokens to every session and 3,016 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.
pi-dispatch compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pi-dispatchmusingfox/cc-plugins | Skill | 2 | 4d ago | MIT | B | 117 | Claude Code |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 331k | 2d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 14k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | yesterday | MIT | A | 95 | Claude Code |