/flow:dispatchfrom flow
Orchestrates parallel work by spawning manager agents per task, which start worker agents in worktrees, open PRs, and hand them to a reviewer for merge and deploy. Use for multi-task handoffs, parallel worktree fixes, or merge-and-deploy requests.
Ships in flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are the main session. You turn requests into tasks and start one manager per task. Managers start workers (a worktree each, they open PRs), review the PRs and hand them to the reviewer, which merges, runs the full check and deploys. Never write worker briefs, start workers or edit code for a task a manager owns.
Main-only tools are deferred: load them with ToolSearch (select:mcp__flow__push, select:mcp__flow__standing).
references/details.md holds env changes, deploy approvals, person checks, standing answers, lite mode, cleanup, resume and settings: read it when one comes up.
git fetch origin, git log --oneline -30 origin/<base>, gh pr list --state all --limit 30, mcp__flow__status); tell the user what shipped.subagent_type: flow:manager, name: slug of the task, run_in_background: true, prompt: the task in the user's own words, quoted, plus what the manager can't see (it can't see this conversation): decisions, links, constraints.
Attachments: heading, one per line (missing paths refuse the spawn). A pasted image with no path: describe it in words.mode orca or tmux): do not spawn it again; its reports arrive as messages from it.mode orca or tmux (one mode for the whole run; a session start is refused in agent mode). Main tells the user, and the manager does not try it.Size: small|normal|large — <reason>. small = docs-only, a single file, one worker; a bug hunt whose root cause is unknown is never small. large = multi-PR, refactor, cross-cutting, risky (migrations, auth, deploy). small runs on manager_model_small (default sonnet); normal, large, none or doubt on manager_model. Below large the plugin files a manager-size decision the user can overturn: the manager hands off and you restart it as <name>-2.max_managers running (default 20); start the rest as each finishes.mcp__flow__plan (owner main): add, nodes {id: "<manager name>", title, after: [ids]}, until: "reported" if only the report is needed. Start only ready ones. On a flow plan: ready message, start those managers with the merged code in the prompt (git fetch origin first). A blocked node is yours to fix, or mark block/done.Each manager files mcp__flow__preflight before it may start workers. When all managers started together have filed (or preflight_wait minutes pass) one "Pre-flight: N tasks, ..." message reaches you.
mcp__flow__answer ("defaults" -> defaults: true). Managers with only non-blocking questions already started on defaults.mcp__flow__plan.ask_cards on, show blocking questions as AskUserQuestion cards as the message says, then one mcp__flow__answer.A task source is a doc .claude/flow/sources/<name>.md saying how to list tasks, render one, and which write-backs need the user's OK (format: references/sources.md; copy examples/github-issues.md to .claude/flow/sources/issues.md for GitHub Issues). /flow-tasks [source] [ids or filter] starts this.
ls .claude/flow/sources/; one source: use it; none: offer the GitHub Issues example).Source: <name> (<doc path>), source_id: <id>.Never write to the source yourself unless asked.
mcp__flow__ask) arrive in the inbox (/flow inbox, mcp__flow__status). Put every open question to the user as ONE numbered list: owner, question, options with default marked, blocking first. With ask_cards on (default), show blocking ones with AskUserQuestion as the message says (up to 4 per call, default first marked "(Recommended)"); non-blocking as text. Turn the reply ("defaults", "1 b, 3 defaults", free text) into one mcp__flow__answer: {defaults: true} or answers: [{id, choice}] (quote the user's words for free text). The user can also answer with /flow ok [ids|owner|topic], /flow no <id> [what instead], /flow answer <id> <choice>; a question may already be answered when you look. Undelivered answer (asker gone): relay to the successor (<name>-2) by SendMessage and mcp__flow__note. A manager report ending in "?" is still a question: answer by SendMessage.mcp__flow__fyi, ids d1...) are choices agents took themselves ("Decisions agents made" in /flow inbox). Size decisions (worker-size, manager-size) are filed already kept: don't list them; undo one by id only when the user asks. Show the others as a short list (id, owner, decision, why). "Fine": keep in bulk with mcp__flow__answer {defaults: true, ids: [...]}; undo only what the user names, answers: [{id, choice}] with their words. The owner is messaged on undo only.confirm target) and person checks go to the user every time with their options; never answer on your own judgment, never with defaults, never always. Never put a secret value in a message, note or PR text.always: true. Never add rules unasked. The conservative rule is on by default (non-blocking questions take their default; off with conservative_default: false). A "Standing answer?" line in an answer or status result: put it to the user once.mcp__flow__note (manager = its name, kind "decision"), so it survives a restart.HANDOFF: manager <name>): without asking, start a fresh flow:manager <name>-2 (then -3; one size up) with the original task; its prompt says to read the notes first (mcp__flow__note, manager = <name>, no text).mcp__flow__status, answer with one compact table (task, manager, PRs and their state: open, handed over, merged, plan state), then the open inbox as one numbered list, blocking first.mcp__flow__clean (dry run), show it; with cleanup: auto you may apply it. Never delete what it keeps.One clear task, no fan-out, not risky (no migrations, data rewrites, deploy/CI/infra, auth, secrets, deletions; a secret is risky only if code reads, stores, sends, logs or validates its value, or auth/permission logic, anything that could expose a key; renaming, documenting or relabelling a secret setting is fine if tests prove the value is still read, via any existing alias or fallback): start a flow:manager whose prompt has the line Mode: lite (or /flow lite <task>); it skips pre-flight and merges its own PR. You may instead start one flow:worker yourself, review its PR and hand it over with mcp__flow__handover; never edit the main checkout. Otherwise the normal flow.
On /flow resume start one flow:manager per task as the hidden instructions say (named resume-<slug>, up to max_managers), prompt carrying branch, PR number and URL, PR description, worktree path and the owner whose notes to read first. Don't start workers yourself.
Options (/config, flow) and unset-command behaviour: references/details.md.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub ying-kai-liao/flow --plugin flow