Orchestrator mode
Delegate repository exploration, research, edits, commands, and verification. The main
thread loads relevant skills, plans, dispatches, handles user decisions, and synthesizes
compact reports. System and developer instructions and the user's scope still govern.
Scope and tools
A request such as "use subagents to check X and Y" delegates those tasks. Explicit
"orchestrator mode" or "delegate everything" applies until the user changes that
instruction. Honor a request to work directly without requiring an exact exit phrase.
Use the active tool schemas to identify spawn, message, resume, wait, stop, and optional
planning capabilities. Omit unsupported fields and use a general worker when no
specialist is exposed. Loading a skill or its relevant reference through a file or
shell read is allowed; delegate ordinary repository reads. If delegation is unavailable,
report that limitation and follow any already-authorized direct-work fallback.
Leave model and reasoning effort unset by default. Override only when the user or an
applicable instruction calls for it and the active schema supports the combination.
Check context inheritance before dispatch. For a self-contained task, use a clean or
bounded context when supported; use a full fork only when it needs conversation history.
Model overrides may require a non-full fork. Runtime schemas decide this, not vendor names.
Workflow
- Plan by area. Batch related work into a bounded dispatch with a checkable outcome.
Keep a short plan in the available plan tool or conversation. Report changes to the
plan rather than repeating the whole list. Report adjacent problems without expanding
the user's scope.
- Dispatch independent work. Assign each worker its task, owned files or resources,
inputs, constraints, and return contract. Parallelize only within available capacity.
Count the root, siblings, and descendants; keep a slot for executable leaf work.
Prefer flat waves. For a subtree that earns separate coordination, read
Nesting first.
- Collect and continue. Use completion notifications and available wait tools according
to their actual semantics. Keep the turn active while required work remains. Resume an
existing worker with the specific gap rather than restarting its investigation. An
unchanged failure calls for diagnosis or another approach, not repeated identical retries.
Continue independent work while a blocked dependency waits for user or external input.
- Integrate. Serialize writers sharing a checkout or external resource. Parallel code
writers use separate worktrees and branches with an immutable base SHA and a dedicated
integration worker. Small edits can simply use one writer. Before creating worktrees,
read Parallel writes.
- Verify. Every implementer inspects its actual diff and runs proportionate checks.
Add a separate verification dispatch for merged parallel work, schema or data changes,
architectural changes, or multi-file changes requiring different decisions per site.
A small edit may not need an independent reviewer; it still needs artifact evidence.
Verify the integrated seams, reusing child evidence for unchanged internals. A verifier
that fixes code sends those fixes to another worker for verification.
- Report. Lead with the outcome and returned artifact paths or IDs. Include relevant
verification results and unresolved limitations. Finish only when the requested work
is complete or a concrete blocker prevents further useful authorized progress.
Handoffs
Give a worker only the context it needs:
- Task and completion criterion, scope, owned paths, and permissions already established.
- Relevant decisions and rationale, unresolved questions, and applicable skill paths.
- Input artifact paths with section names or line locations. Quote exact text when wording
is binding; otherwise use a faithful concise summary with source locations.
- Return fields appropriate to the work, such as
status, files_changed, tests_run,
verification_evidence, decisions_made, open_questions, and artifact_path.
Workers put large findings and command output in artifacts and return a compact summary
plus an index. The main thread forwards those paths to consumers. Keep cumulative decisions
in one handoff artifact and pass only relevant updates, including on inherited forks.
Workers surface decisions requiring the user to the coordinator and continue independent
work. Reuse guidance already loaded; explicit skill requirements remain in force.
Composition
A consumer skill may refine this workflow for its task, for example requiring isolation
for a single ticket or using an integration worker as the independent verifier when it
wrote none of the changes. Resolve actual conflicts against scope, permission, ownership,
and verification evidence. Tool availability and higher-priority instructions still apply.
1---2name: orchestrator-mode3description: Coordinate work through subagents while keeping bulk findings out of the main context. Use when the user requests orchestrator mode, delegation of named tasks, or coordination rather than direct execution.4---56# Orchestrator mode78Delegate repository exploration, research, edits, commands, and verification. The main9thread loads relevant skills, plans, dispatches, handles user decisions, and synthesizes10compact reports. System and developer instructions and the user's scope still govern.1112## Scope and tools1314A request such as "use subagents to check X and Y" delegates those tasks. Explicit15"orchestrator mode" or "delegate everything" applies until the user changes that16instruction. Honor a request to work directly without requiring an exact exit phrase.1718Use the active tool schemas to identify spawn, message, resume, wait, stop, and optional19planning capabilities. Omit unsupported fields and use a general worker when no20specialist is exposed. Loading a skill or its relevant reference through a file or21shell read is allowed; delegate ordinary repository reads. If delegation is unavailable,22report that limitation and follow any already-authorized direct-work fallback.2324Leave model and reasoning effort unset by default. Override only when the user or an25applicable instruction calls for it and the active schema supports the combination.26Check context inheritance before dispatch. For a self-contained task, use a clean or27bounded context when supported; use a full fork only when it needs conversation history.28Model overrides may require a non-full fork. Runtime schemas decide this, not vendor names.2930## Workflow31321. **Plan by area.** Batch related work into a bounded dispatch with a checkable outcome.33 Keep a short plan in the available plan tool or conversation. Report changes to the34 plan rather than repeating the whole list. Report adjacent problems without expanding35 the user's scope.362. **Dispatch independent work.** Assign each worker its task, owned files or resources,37 inputs, constraints, and return contract. Parallelize only within available capacity.38 Count the root, siblings, and descendants; keep a slot for executable leaf work.39 Prefer flat waves. For a subtree that earns separate coordination, read40 [Nesting](references/reference.md#nesting-sub-orchestrators) first.413. **Collect and continue.** Use completion notifications and available wait tools according42 to their actual semantics. Keep the turn active while required work remains. Resume an43 existing worker with the specific gap rather than restarting its investigation. An44 unchanged failure calls for diagnosis or another approach, not repeated identical retries.45 Continue independent work while a blocked dependency waits for user or external input.464. **Integrate.** Serialize writers sharing a checkout or external resource. Parallel code47 writers use separate worktrees and branches with an immutable base SHA and a dedicated48 integration worker. Small edits can simply use one writer. Before creating worktrees,49 read [Parallel writes](references/reference.md#parallel-writes-worktrees).505. **Verify.** Every implementer inspects its actual diff and runs proportionate checks.51 Add a separate verification dispatch for merged parallel work, schema or data changes,52 architectural changes, or multi-file changes requiring different decisions per site.53 A small edit may not need an independent reviewer; it still needs artifact evidence.54 Verify the integrated seams, reusing child evidence for unchanged internals. A verifier55 that fixes code sends those fixes to another worker for verification.566. **Report.** Lead with the outcome and returned artifact paths or IDs. Include relevant57 verification results and unresolved limitations. Finish only when the requested work58 is complete or a concrete blocker prevents further useful authorized progress.5960## Handoffs6162Give a worker only the context it needs:6364- Task and completion criterion, scope, owned paths, and permissions already established.65- Relevant decisions and rationale, unresolved questions, and applicable skill paths.66- Input artifact paths with section names or line locations. Quote exact text when wording67 is binding; otherwise use a faithful concise summary with source locations.68- Return fields appropriate to the work, such as `status`, `files_changed`, `tests_run`,69 `verification_evidence`, `decisions_made`, `open_questions`, and `artifact_path`.7071Workers put large findings and command output in artifacts and return a compact summary72plus an index. The main thread forwards those paths to consumers. Keep cumulative decisions73in one handoff artifact and pass only relevant updates, including on inherited forks.74Workers surface decisions requiring the user to the coordinator and continue independent75work. Reuse guidance already loaded; explicit skill requirements remain in force.7677## Composition7879A consumer skill may refine this workflow for its task, for example requiring isolation80for a single ticket or using an integration worker as the independent verifier when it81wrote none of the changes. Resolve actual conflicts against scope, permission, ownership,82and verification evidence. Tool availability and higher-priority instructions still apply.