fan-out

fan-out is a command for coding agents from RasputinKaiser/Self-Improvement-Plugin. It costs 57 tokens per session (874 once invoked), scanned A, original, MIT.

A command that splits one large task into separate pieces and sends each piece to its own working agent. Each piece gets its own directory and handoff notes.

In plain words
What is it for?
Use it to divide a broad project into parallel slices, track each slice, and attach the results to a shared campaign.
Why use it?
It helps work on independent parts at the same time while keeping their results and responsibilities separate.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the harness-self-improvement plugin — 10 skills, 12 commands, 5 agents, 7 hooks, 1 MCP server shipped together

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/rasputinkaiser/self-improvement-plugin/fan-out
Clone the repo
git clone --depth 1 https://github.com/RasputinKaiser/Self-Improvement-Plugin

Or install harness-self-improvement, the plugin that ships this one along with the rest of its 10 skills, 12 commands, 5 agents, 7 hooks, 1 MCP server.

Wrote 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.

agentmods badge for fan-out

README.md
[![agentmods](https://agentmods.dev/badge/commands/rasputinkaiser/self-improvement-plugin/fan-out.svg)](https://agentmods.dev/commands/rasputinkaiser/self-improvement-plugin/fan-out)
Your own site
<a href="https://agentmods.dev/commands/rasputinkaiser/self-improvement-plugin/fan-out"><img src="https://agentmods.dev/badge/commands/rasputinkaiser/self-improvement-plugin/fan-out.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 874 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.00057 $0.00874
Opus 5 $0.00028 $0.00437
Sonnet 5 $0.00011 $0.00175
Haiku 4.5 $0.00006 $0.00087

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

Security

Grade A, and why

fan-out 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 4d 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/fan-out.md · 78 lines

How it starts

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

/fan-out — multi-agent fan-out coordinator

Fan-out outputs can be displayed as board cards when attached to a runtime campaign. Preserve the role boundary in each card (Scout, Judge, Worker, or PM) and keep SLICE, DIFF, and LESSON as separate receipt fields. LESSON is a candidate memory record until it passes the existing verify-before-use path; a progress card is not evidence of execution.

When the host creates child tasks or conversations, attach the returned handles to the campaign spine explicitly rather than guessing them:

python3 scripts/sips_campaign_fleet.py attach <campaign_id> \
  --child-id <slice_id> --title "<slice objective>" \
  --role Worker --thread-id <host_thread_id> --task-id <runtime_task_id>

Archive a finished child in the projection with archive <campaign_id> <child_id>; use reopen when the work returns to the foreground. Reopen creates a new child incarnation, so attach a new thread/task handle when one exists. This keeps archived chat receipts searchable while leaving the host conversation store untouched.

Parse user arguments:

/fan-out "<parent objective>"

  1. Split the objective from the slices. The user's input format: <parent objective> | slice 1; slice 2; slice 3
  2. Call:
    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/fan_out.py prepare \
      --parent "<parent objective>" \
      --slices "<slice 1>" "<slice 2>" "<slice 3>" \
      --campaign-id "<campaign_id>"
    
  3. Read the resulting JSON. It contains a runId and per-slice cwd paths.
  4. For each slice, dispatch a fan-out agent in parallel:
    • subagent_type: fan-out
    • cwd: the slice's directory (from cwd in the run state)
    • prompt: "Read HANDOFF.md in your cwd. Do your slice. End with SLICE/DIFF/LESSON or BLOCKED as the format requires."
  5. Wait for all agents to return. Collect each agent's result field as the response for that slice.
  6. Replay results back into the run state:
    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/fan_out.py ingest --run-id <runId> \
      --outputs '[{"sliceId":"slice_1","response":"..."},{"sliceId":"slice_2","response":"..."}]'
    
  7. Read the resulting summary. Surface disagreements and lessons to the user. --campaign-id only adds the explicit campaign reference to the fan-out projection; child host/thread handles are still attached after dispatch.

Read the full file on GitHub · 78 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. 4d ago First seen · 78 lines · 57 tokens per session scan A 86153fd54be7

Subscribe to this mod's changes

fan-out is a command published in the GitHub repository RasputinKaiser/Self-Improvement-Plugin (6 stars, last pushed 7d ago), licensed MIT. It adds 57 tokens to every session and 874 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-31.