seamux-dispatch
Skill4 starsChanged 58 days agoMITView on GitHub
Split work into independent pieces that each run as their own top-level Claude session, then collect every result at once. Use when a task divides into parts that can proceed in parallel (a sweep over many items, several unrelated fixes, research across separate sources), instead of running them as subagents or worktrees inside this one session. Also use when asked to "dispatch", "fan out", or "split this into sessions".
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Run the wait in the background, so you are notified once, when every worker has reported:
- Very specific: line 56
Check progress without blocking with {{SEAMUX_BIN}} status <dispatch-id>.
- Very specific: line 60
Read results only from workers whose handback says ok.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
seamux dispatch
Each piece of work gets its own top-level session, visible and drivable on the seamux board. You declare the whole set first, spawn it, then wait on a barrier that returns every handback at once, keyed by worker. You never react to results one at a time as they arrive.
The CLI is {{SEAMUX_BIN}}.
When to use it
Use it when the pieces are independent: no piece needs another's output to start. If a piece is small enough to finish in a few tool calls, do it yourself instead. If pieces depend on each other, dispatch the first stage, wait, then dispatch the next.
1. Declare the set
Write a manifest. Every worker needs a key (lowercase, digits, -, _), an absolute cwd (or one starting ~/), and a self-contained prompt: the worker starts with none of your context, so say exactly what to do and where to write its output. Give each worker its own output path, so no two workers write the same file.
{
"title": "Classify firms, batches 1-3",
"workers": [
{ "key": "batch-01", "cwd": "~/project", "prompt": "Classify the firms in inbox/batch-01.md ... Write results to out/batch-01.md." },
{ "key": "batch-02", "cwd": "~/project", "prompt": "..." },
{ "key": "batch-03", "cwd": "~/project", "prompt": "...", "worktree": true }
]
}Set "worktree": true for a worker that edits a git repo alongside other workers in the same repo, so each gets its own worktree.
2. Spawn it
{{SEAMUX_BIN}} fanout manifest.jsonIt writes the manifest before spawning anything, starts each worker as its own session with instructions for reporting back, and prints the dispatch id.
3. Wait on the barrier
Run the wait in the background, so you are notified once, when every worker has reported:
{{SEAMUX_BIN}} wait <dispatch-id>It exits 0 when all workers have reported, and 2 on timeout (default one hour, --timeout <seconds>), printing JSON either way:
{ "complete": true, "pending": [], "failed": ["batch-02"],
"handbacks": { "batch-01": { "status": "ok", "summary": "...", "result": "out/batch-01.md" }, ... } }Check progress without blocking with {{SEAMUX_BIN}} status <dispatch-id>.
4. Merge
- Read results only from workers whose handback says
ok. A worker reports only after its outputs are fully written, so a result file existing is never the signal; the handback is. - Merge by worker key, and make the merge idempotent: running it twice gives the same result. Never overwrite hand-authored entries in the target.
- For a
failedworker, read its summary, then fix and re-dispatch just that piece as a new, smaller set.
Worker side
Workers get their reporting instructions appended to their prompt. For reference, a worker reports with:
{{SEAMUX_BIN}} done <dispatch-id> <worker-key> --summary "<what it did and found>" [--result <path>] [--status failed]Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

