/compound-engineering-orchestrator:orch-fanout [path to a docs/plans/<project-slug>/ task-graph dir. Blank to discover the project interactively]from compound-engineering-orchestrator
Execute a task-graph's ready work in parallel: sequence the collision-free batches into runtime-safe waves, show a visible preview, and drive each wave's nodes through /lfg in worktree-isolated parallel runs, merging in dependency order and checkpointing recovery state at every wave boundary. Runtime-exclusive nodes run as solo waves. Manual-invoke only. Use when a committed task-graph has multiple ready nodes you want shipped as parallel PRs. Builds on the compound-engineering plugin (ce-work / lfg) and the sibling orch-decompose, orch-next, and recovery-manifest scripts.
Ships in compound-engineering-orchestrator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
orch-fanout is the autonomous executor at the top of the orchestrator family. It reads an orch-decompose task-graph, takes the collision-free [[Fan-out batch]]es the partitioner produces, sequences them into waves that are safe to run at once, and drives each wave's nodes through /lfg in worktree-isolated parallel runs — merging in dependency order and writing a recovery checkpoint at every wave boundary.
It composes shipped machinery: ce-work's worktree dispatch + dependency-order merge, /lfg as the per-node pipeline, and the sibling orchestrator scripts. The new surface here is the drain-the-batch loop and the gates — not new execution machinery.
Requires the compound-engineering plugin (
ce-work,/lfg), the siblingorch-decompose(graph_compute.py,reorient.py) andorch-next(frontier.py) skills, plus Claude Code for the bundled scripts. Off-platform invocations report unavailability explicitly rather than degrading. Manual-invoke only. The visible preview (Phase 3) is non-negotiable — it is the antidote to autonomous rubber-stamping and the safety net for an un-flagged runtime-exclusive node.
Resolve the project directory (docs/plans/<project-slug>/): use the argument if given; else glob docs/plans/*/index.md and, if several, ask which (the platform's blocking question tool — AskUserQuestion in Claude Code, ToolSearch select:AskUserQuestion first if needed). If none exists, tell the user to run orch-decompose first and stop.
Run the pipeline and pipe the JSON through. partition.py and wave_plan.py live in this skill; graph_compute.py/reorient.py live in the sibling orch-decompose, frontier.py in orch-next — all resolved relative to this skill's directory. Use the guard so it resolves on Claude Code and degrades visibly elsewhere (<dir> is the project dir from Phase 1):
SELF="${CLAUDE_SKILL_DIR}/scripts"
OD="${CLAUDE_SKILL_DIR}/../orch-decompose/scripts"
ON="${CLAUDE_SKILL_DIR}/../orch-next/scripts"
if [ -n "${CLAUDE_SKILL_DIR}" ] && [ -f "${SELF}/wave_plan.py" ] && [ -f "${SELF}/partition.py" ] \
&& [ -f "${SELF}/resolve_models.py" ] \
&& [ -f "${OD}/graph_compute.py" ] && [ -f "${OD}/reorient.py" ] && [ -f "${ON}/frontier.py" ]; then
# Model-profile discovery (see references/model-profile-schema.md): a project override committed
# with the graph wins, else a user-global file, else the built-in claude-code profile. Add
# `--profile <name>` yourself to pick a non-default profile from whichever file is found.
PROFILE_ARGS=""
if [ -f "<dir>/model-profiles.json" ]; then
PROFILE_ARGS="--profiles <dir>/model-profiles.json"
elif [ -f "${HOME}/.claude/orch-fanout-profiles.json" ]; then
PROFILE_ARGS="--profiles ${HOME}/.claude/orch-fanout-profiles.json"
fi
# Chain with && so a failing producer stops the pipeline — Phase 3 must never read a stale
# or empty artifact left over from a prior run.
python3 "${OD}/graph_compute.py" <dir> > /tmp/orch-graph.json \
&& python3 "${OD}/reorient.py" <dir> > /tmp/orch-status.json \
&& python3 "${ON}/frontier.py" --graph /tmp/orch-graph.json --status /tmp/orch-status.json > /tmp/orch-frontier.json \
&& python3 "${SELF}/partition.py" --graph /tmp/orch-graph.json --frontier /tmp/orch-frontier.json > /tmp/orch-partition.json \
&& python3 "${SELF}/wave_plan.py" --partition /tmp/orch-partition.json --graph /tmp/orch-graph.json > /tmp/orch-waves.json \
&& python3 "${SELF}/resolve_models.py" --waves /tmp/orch-waves.json --graph /tmp/orch-graph.json ${PROFILE_ARGS} > /tmp/orch-resolved.json \
&& cat /tmp/orch-resolved.json
else
echo "orch-fanout requires Claude Code and the sibling orch-decompose/orch-next skills: bundled computation is unavailable on this platform."
fi
If the guard's else branch fired, say so plainly and stop. If graph_compute.py reported a cycle (non-zero exit / a cycle finding), surface it and stop — there is no well-formed frontier until the cycle is broken. Also surface partition's excluded list (non-work, no_pr, and absent-from-graph nodes) so the user sees what was held out of fan-out and why.
Do not recompute the waves, batches, or statuses — present and drive only.
Present the wave plan before spawning anything. Render every node as id (title), never a bare ID (the title is the title column in index.md) — a human reviewing the preview won't recall what n7 is, but n7 (CO canopy data load) is self-explanatory. Bare IDs are for the scripts' JSON only. For each wave, in order, show:
id (title), its target worktree, the agent + model it will run on (read from /tmp/orch-resolved.json — the resolved spawn spec, not the raw tier), and the reason they're safe together (file-disjoint + runtime-independent). Mark any node whose spec has fallback: true (its tier was null/unrecognized and fell back to ceiling) so the user can catch it. If the resolved agent is not claude-code, say so explicitly — that node is a human-dispatch item (see Phase 4), not something this run spawns.id (title), its agent + model, and why it is alone (exclusive_runtime — needs a non-shareable server/DB/port/singleton).Also restate which ready nodes were excluded from fan-out entirely (from Phase 2) and that they must be driven by hand. This preview is the user's gate: a node that should have been exclusive_runtime but wasn't is visible here as a member of a parallel wave — the user can stop and re-flag it before any run starts.
Gate with the platform's blocking question tool (consolidated — one confirmation per wave, not per node):
On confirm, for the wave:
/lfg run per node, reusing ce-work's worktree creation, pre-dispatch file-collision check, and dependency-order merge (abort + re-dispatch on conflict). Run them concurrently./lfg to completion before anything else — never concurrent with another run.Per-run model. Don't map tiers by hand — resolve_models.py (Phase 2) already turned each node's model tier into a concrete spawn spec in /tmp/orch-resolved.json: {id, tier, resolved_tier, fallback, agent, model, base_url_env, api_key_env}. For each node use its spec:
agent: claude-code — spawn its /lfg run with model as the spawn's model override (inherit = the session's current model), the same way ce-code-review tiers its persona dispatches. A single parallel wave can thus run a ceiling node on the top model alongside generation nodes on the mid tier. If the spec has base_url_env/api_key_env, those name the env vars pointing the session at an Anthropic-compatible gateway — they must already be exported for the run; if a named var is unset, stop and tell the user rather than silently falling back to the default endpoint.agent is codex / cursor / opencode — this run cannot spawn that agent (Claude Code has no API to launch a non-Claude agent). Treat the node as a human-dispatch item: do not spawn it, surface it in the wave summary as "run in a Conductor workspace with <agent> (<model>)", and continue with the Claude nodes. The node stays unstarted in the graph until a person drives it.The tier and profile are recommendations: the user can override any node's model/agent at the Phase 3 preview before confirming (or point at a different profile — see references/model-profile-schema.md). A fallback: true spec means the node's tier was null/absent/unrecognized and resolved to ceiling (the safe default — graph_compute flags an unrecognized tier as an invalid_model finding at decompose time, so this should be rare).
After each wave completes and merges, write the recovery manifest via scripts/manifest.py (the wave boundary) so a dead or context-compacted session resumes by reading it. On resume, reconstruct state with scripts/reconcile.py (git is authoritative; the manifest is a hint) and continue from the first unfinished wave.
Mid-wave gate decisions are collected into the single per-wave checkpoint above — not surfaced one-by-one per node.
Circuit breaker. After each wave, append its outcome (pass/fail) to a running list, write that list to a JSON file (e.g. /tmp/orch-outcomes.json, following the Phase 2 file-passing convention), and consult python3 "${SELF}/circuit_breaker.py" --outcomes /tmp/orch-outcomes.json [--threshold K]. If it reports tripped, halt the run and escalate — a systematic problem (bad base commit, broken harness, environment fault) is failing every wave, and continuing would burn the rest of the batch. On a trip: stop spawning, surface the breaker's reason, and leave the recovery manifest at the last wave boundary so the run resumes after the root cause is fixed. A pass resets the streak, so isolated flakes don't trip it.
After a run's PRs merge, re-running orch-fanout (or orch-next) refreshes the frontier from git — the graph is the durable record, so a later session resumes by reading it.
references/model-profile-schema.md (opens in a new tab)references/recovery-manifest-schema.md (opens in a new tab)scripts/circuit_breaker.py (opens in a new tab)scripts/manifest.py (opens in a new tab)scripts/partition.py (opens in a new tab)scripts/reconcile.py (opens in a new tab)scripts/resolve_models.py (opens in a new tab)scripts/wave_plan.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/orch-decomposeDecompose a large project into a committed, diffable task-graph — a markdown index plus one file per node under docs/plans/, each node tagged with its next CE stage (brainstorm/plan/work) and a model tier, embedding a ready plan when a node is settled or a brief otherwise. Manual-invoke only. Use when starting a multi-feature project you want broken into dependency-mapped, individually-drivable tasks instead of one monolithic plan. Builds on the compound-engineering plugin (ce-plan / ce-brainstorm / ce-work / lfg)./orch-nextRead an orch-decompose task-graph, compute the ready frontier, and recommend the single highest-leverage next move — with a one-line rationale and the exact command — then fire it inline. Manual-invoke only. Use when you have a committed task-graph and want to be told what to do next instead of scanning a list. Builds on the compound-engineering plugin (ce-plan / ce-brainstorm / ce-work / lfg) and the sibling orch-decompose skill./orch-ripenMature a task-graph's plan-stage nodes into work-ready nodes in parallel planning waves: compute the planning frontier (nodes whose upstream DECISIONS are settled, not whose code has merged), fan ce-plan over each wave in worktree-isolated runs, gate every stage-flip on human approval, write the approved plans back into the graph, re-audit, and repeat until the frontier is exhausted. Closes the gap between orch-decompose (which leaves a plan-heavy graph) and orch-fanout (which only executes work-stage nodes). Manual-invoke only. Use when a committed task-graph has plan-stage nodes you want ripened into fan-out-ready work. Builds on the compound-engineering plugin (ce-plan / ce-brainstorm) and the sibling orch-decompose, orch-next, and orch-fanout scripts.npx claudepluginhub pjhoberman/compound-engineering-orchestrator --plugin compound-engineering-orchestrator