Split any task into subtasks, hand each one to a predefined agent type and pick Haiku, Sonnet, Opus or Fable for it by the kind of work. Ten agents (scout, mechanic, researcher, builder, writer, reviewer, verifier, architect, debugger, specialist), seven task templates (feature, bugfix, refactor, migration, research, review, docs), a plan checker that catches overlapping file ownership and unjustified model picks before any agent starts, a run log whose stats suggest route changes, a compiler that turns big plans into Workflow scripts, and a scaffolder for new agents and agent plugins.
A Claude Code plugin that splits a task into subtasks, hands each one to a
predefined agent type, and picks Haiku, Sonnet, Opus or Fable for each by the
kind of work. The main session is the foreman: it plans, launches the agents in
dependency waves, reads every result and verifies once at the end. A plan
checker runs before any agent starts, and a scaffolder writes new agents and
whole agent plugins in the same format.
/foreman:dispatch add CSV export to the users API and a download button on the users page
/foreman:new-agent agent migration-auditor
Both skills also load on their own when a request matches: "split this up",
"use subagents", "which model should do which part" for dispatch; "create
an agent", "make an agent plugin", "why is my agent ignored" for new-agent.
A task that is one unit of work is done inline: delegation costs tokens.
How a task runs
The figure plays examples/feature-plan.json
as plan.py check routes it; the build-ui rerun is staged to show the
failure ladder. python scripts/how_it_works_svg.py redraws all four files.
Qualify. One file, a handful of tool calls, or parts that each need the
previous part's full context: no agents.
Template. Pick the closest of seven task templates.
Plan. Fill subtasks: goal, the files each may write (owns), what it
waits for (after), the one check that proves it (verify).
Route. Each kind of work has a default agent, model and effort. Any
change needs a written reason, and the top tier is capped at two subtasks
a plan.
Check.plan.py check rejects overlapping file ownership inside a
wave, read-only agents that own files, writers that own nothing, cycles,
missing checks and silent model changes, then prints the waves.
Run. Each wave goes out as parallel Agent calls with model set per
subtask; results feed the next wave. A subtask that stopped short reruns
once at higher effort; one that tried and was wrong reruns once a tier up.
Verify once. The project's own check runs one time, the foreman reads
the full diff, and the report says how each result was checked.
Log. Each subtask's outcome goes to the run log, which plan.py stats
turns into a success table and tune hints.
The dispatch turn itself runs on Sonnet (model: sonnet in the skill):
following a written procedure is Sonnet work by foreman's own rule, and the
judgement calls go to the architect and debugger on Opus. In the v0.1 demo
run, an Opus coordinator was 98% of the cost (0.90 of 0.92 USD) while the
Haiku agents did the edits.
A skill's model holds only for the turn it loads in, so where the agents'
reports come back decides which model integrates them:
session
agents run
integration runs on
claude -p, Agent SDK
in the background unless the call asks to wait; dispatch asks (run_in_background: false), so the turn waits
Sonnet
interactive terminal, VS Code, desktop app
in the background; reports arrive in later turns
the session's model
Agents start in the background everywhere. In claude -p and the Agent SDK
the coordinator can wait for them, and since 0.3.1 dispatch asks it to. A
0.3.0 run in claude -p (Claude Code 2.1.322) did not ask: all three agents
started in the background and the turns after the wave ran on Opus. A 0.3.1
run on the same version kept both of its waves in the foreground and every
turn on Sonnet (four Sonnet subtasks, 0.61 USD in total).