jellologic/claude-code-muse/muse-fleet
Claude Code and agent skill by jellologic/claude-code-muse
- community
Checking that the SKILL.md file is still in the repository.
Delegate several independent mechanical edits to Muse Code (`muse exec`) workers in isolated git worktrees, each supervised until its patch is right. Use whenever the user names Muse Code, `muse exec`, or a muse run or its results — including asking to put muse on a single coherent change, debugging, or design decisions (the skill tells you to push back), and judging or merging the patches a muse run produced. Also for repetitive refactors or tests across many files, offloading to a cheaper model, fan-out to muse workers, grunt work or "don't burn my tokens on this". Requires the `muse` binary on PATH. Not for parallelism unrelated to muse: human git worktrees, Task-tool/Agent subagents, background jobs.
Install
npx vskill@latest install jellologic/claude-code-muse/muse-fleetSKILL.md
Muse Fleet
Run many Muse Code instances at once, each sealed in its own git worktree and each owned by an Opus supervisor that spawns it, reads what came back, runs the acceptance check, and sends it back for revisions until the work is right.
allowed-tools pre-approves the tools it lists; it does not restrict anything else. This skill pre-approves only read-only status/doctor shims and readers, so an inferred trigger cannot run muse, spawn agents or start a workflow without a prompt. Omitting Write and Edit does not forbid them, it only leaves them prompted. The structural guarantee for the supervisor is the PreToolUse hook hooks/supervisor_guard.py — see rule 3.
The economic case is the whole point. muse-spark-1.3-contributor is Meta's discounted tier — for the 1.2 generation that was 0.10/0.20 USD per M tokens against 1.25/4.25 USD for the full model. Mechanical edits do not need a frontier model deliberating over them. Push that work down, spend your own budget on judgment.
The architectural case matters just as much. Cheap delegation fails in exactly one place: a model grading its own homework. So the grading is moved out — to a supervisor that can actually do something about what it finds, in the round where fixing it is still cheap.
The shape
A task does not finish when muse stops. It finishes when its supervisor says accept, revise or reject — and accept requires a check that the supervisor ran itself.
The plugin surface
Seven commands you type — /muse:delegate, /muse:ask, /muse:fleet, /muse:status, /muse:model, /muse:cleanup, /muse:doctor — one agent the fan-out spawns, and the scripts under both. "Running it" below says which to reach for.
The muse-supervisor agent is what /muse:delegate and the fleet workflow spawn: one Opus agent that owns one task to a verdict. It has no Write or Edit tool. That is not an oversight — a supervisor that can patch the worktree itself will, and then the next round starts from a tree muse did not produce, finish folds the hand-edit into the patch and misattributes it, and you are paying Opus rates to type.
Removing the tool is a strong default, not an enforced boundary: the supervisor has Bash, and > is a write. finish therefore fingerprints the patch muse produced and compares it with the one it harvests, reporting out_of_band_edit and naming any acceptance check that accounts for part of the difference. /muse:status prints it on the task's row.
None of the commands apply a patch. They stop at a verdict and a patch path and hand the decision to you, because an accepted patch is still a patch you have not read.
If a /muse:* command does not exist in the user's session, the plugin was installed after that session started — commands, skills and agents register at session start. Tell them to start a new session or /clear; reinstalling again will not help.
Decide whether to fan out
Fan-out pays when tasks are independent and mechanical. It costs more than it saves when they are neither.
Good candidates: add tests for each of 12 modules; add type hints file by file; convert every callsite of a deprecated API; write a docstring per public function; draft three competing implementations of one function to compare.
Poor candidates: a single change threaded through many files (one coherent edit, not N); anything needing a design decision; debugging (needs the whole picture); tasks that all rewrite the same file.
The deciding question is: could a competent contractor do this task knowing only this one prompt and the repo? If it needs context that lives in your head or in the other tasks, it is not ready to delegate.
Disjoint files is the load-bearing rule
Worktrees isolate agents from each other's process, not from each other's intentions. Two agents editing calc.py will each produce a clean patch, and those patches will conflict when you merge them. Partition the work by file. If two tasks must touch one file, either merge them into a single task or run them in sequential waves.
Feature-level disjointness is not enough, because some files are touched by nearly every change. Watch for these conflict magnets: routing tables, config files, component or plugin registries, DI containers, dependency manifests and lockfiles, barrel exports and __init__.py, and migration directories. Either give exactly one task ownership of the shared file, or do that edit yourself before fanning out.
The canonical failure, reported by several teams independently, is "refactor the backend" handed to three agents: one moves to async handlers, one restructures error types, one renames half the functions. Three coherent patches, mutually incompatible, nothing merges. Vague tasks give you 5x the mess, not 5x the output.
Every task needs a runnable check
This is a hard requirement here, not advice. The supervisor's leverage comes from running an executable oracle against the patch — pytest tests/test_auth.py, mypy utils.py, node -e "require('./dist')". One team attributed roughly an 80% drop in failures to this gate alone.
A task with no runnable check cannot be supervised, only guessed at. If a task genuinely has none — a docs rewrite, a naming change — say so up front and plan to review that patch by hand. Do not invent a check that always passes.
Running it
Pick the path before doing anything else. Four exist and they are not interchangeable.
| Situation | Do | |
|---|---|---|
| A question, an inventory, one small contained edit | muse-ask | |
| One task needing a check and revision rounds | Spawn the muse-supervisor agent with the brief | |
| 2–5 independent tasks, files already partitioned | One muse-supervisor agent per task, all spawned in one message | |
| A job that still needs decomposing | Run the registered workflow muse-supervised-fleet by name (code in ${CLAUDE_PLUGIN_ROOT}/workflows/muse-supervised-fleet.js) | |
| 20+ trivial tasks, review batched to the end | muse-fleet |
Spawning `muse-supervisor` is the default for one or a few tasks. Hand-driving muse_task.py yourself puts the same agent in both the driving and the judging seat, which is the one separation this whole design exists to keep.
When the job still needs decomposing, run the supervised fleet workflow below. It plans the partition, spawns one Opus supervisor per task, and returns a merge order. (/muse:fleet <job> runs exactly this; these steps are the path for when this skill triggered on its own rather than by a typed command.)
The Workflow tool requires explicit opt-in. A typed /muse:fleet is that opt-in and needs no further confirmation. When this skill fired on an inferred trigger instead, state the plan and its cost and get a yes first — a fleet spawns N muse runs and N Opus supervisors, every worker runs --yolo, and it all costs real money. An inferred trigger is not consent to spend it.
The script is registered by the plugin. Run it by name — reading it and pasting it into script: is the one step on this path that used to go wrong, because a dropped line surfaced as a throw after the planning agents had already been paid for.
${CLAUDE_PLUGIN_ROOT}/references/workflow.md is the reasoning behind its shape; the code is ${CLAUDE_PLUGIN_ROOT}/workflows/muse-supervised-fleet.js.
Two args need your help. stamp is required because workflow scripts cannot call Date.now(). pluginRoot is optional: run echo ${CLAUDE_PLUGIN_ROOT} in Bash first and pass it so the script can fall back to the absolute bin/muse-task when the plugin is not enabled in the session running the workflow.
Driving one task by hand
muse-task is the instrument the supervisor holds, and it works on its own when you want one delegated task without the orchestration. Each subcommand is one turn of the loop; every one prints a single JSON object on stdout.
run refuses over an id that already has a task, because re-running would overwrite its patch.diff and orphan its worktree. Copy the patch first and pass --force, or use a new --id.
Rounds share one worktree, so revise edits the previous round's output rather than starting over, and the harvested patch is always the cumulative diff against base — the thing you would actually merge. --max-rounds (${user_config.max_rounds}) is a hard ceiling: the script refuses past it rather than letting a supervisor loop up a bill. It is accepted only on `run`, where it goes into state.json and is then enforced on every later revise — passing it to revise is an argparse error. Use --feedback-file for a review longer than a sentence; it avoids shell-quoting a paragraph and keeps the text intact.
Artifacts land in <out>/<id>/ (<out> defaults to .muse-fleet/tasks):
Raw throughput without supervision
muse-fleet still runs the old unsupervised fan-out: N tasks, one round each, a report at the end and nothing checked in between. Reach for it when there are thirty trivial tasks and per-task supervision costs more than it saves — and know that you are buying a pile of unreviewed patches.
3–5 concurrent is the reported sweet spot. Past roughly five, the limit stops being the tooling and becomes merge complexity plus your own capacity to review what comes back.
Seed the worktrees with what git doesn't track
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/muse-fleet/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jellologic/claude-code-muse/muse-fleet)