/orchestrate:orchestrate <job-spec.yaml | task description | --resume <run-dir>> [--yes] [--internal]from orchestrate
Coordinates staged or parallel jobs across headless coding-agent runtimes, agent sessions, and in-session subagents with worktree isolation, resumable state, and safety gates.
Ships in orchestrate. 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.
Coordinate headless coding-agent jobs, agent sessions and in-session subagents through a staged, captured, resumable workflow. The skill owns routing and judgment; the coordinator owns deterministic plan state, process supervision and observable evidence. No service or dashboard is required. This skill targets any harness that implements the Agent Skills contract; harness-portability.md owns the conformance surface, the harness features this skill may never depend on, and the install paths.
Engine. The coordinator path is canonical: it owns the run directory
described in job-spec.md, and nothing in this skill
requires the AgentKit CLI. When that CLI is installed, ak orchestrate is an
equivalent accelerator for the same contract — it must produce the same
run-directory state, so a run started one way can be resumed the other, and no
step depends on it being present. The engine is the coordinator path, and no
harness CLI is required: the harness is the thing that loads this skill, while
the coordinator owns the run.
Runtime and model catalogs drift. Resolve every route from live evidence; never treat a runtime, provider, model, flag, or agent seen in this file or an older report as currently available.
Accepted forms:
/orchestrate "research three implementation options and compare them"
/orchestrate "run the three scouts as pi sessions, then one arbiter"
/orchestrate plans/orchestrate-jobs.yaml [--yes]
/orchestrate --resume plans/reports/orchestrate-<timestamp>
Use a YAML job spec for repeatable runs; for a free-form request, write one
to plans/reports/orchestrate-<timestamp>/jobs.yaml before dispatch.
--internal is a routing preference, not a hard mode: it asks the selection
policy to consider in-session subagents first for jobs without an explicit
runtime:, and a job needing model selection or stronger isolation may still
use a live-verified CLI fallback. Never override an explicit runtime, model,
or agent pin silently. Naming a runtime in the request ("as pi sessions") is
an explicit ask: that candidate joins the set, and if it is missing or not
authenticated its onboarding runs as a visible setup step before routing.
Keep durable facts in one place. Every contract below has exactly one owner.
Runtime layer
runtimes.json, support states,
timeouts, and the annotation-only auto-profiler.pi, omp, agy and grok probe targets.Policy layer
Execution layer
On-demand layer
When references disagree, stop and report the contract mismatch.
intake
↓
job graph (System 2: the planner authors it)
↓
live inventory + profile runtime-profile.md
↓
═════════════ deterministic safety boundary ═════════════
safety gate safety-policy.md — what may run
↓
hard filter routing-policy.md — eligibility, floors
↓
semantic rank decision-plane.md supplies signals → routing-policy.md applies them
↓
graph optimizer graph-optimizer.md — post-routing reduction
↓
═════════════════════════════════════════════════════════
dispatch runtime-adapter-contract.md + verified profile
↓
normalized events event-protocol.md
↓
trace watchdog decision-plane.md signals → observation.md rules
↓
triage / retry decision-plane.md taxonomy → failure-modes.md hard stop
↓
deterministic checks verification.md layer 1
↓
micro-arbiter gate verification.md escalation matrix
↓
accept ────────────────────────────────► report
│
└── escalate ──► C3 arbiter ──────────► report
verification.md layer 3
Which layer owns each hop. The planner owns the graph. The safety gate owns
whether anything runs. The hard filter owns eligibility and floors; the decision
plane supplies scored signals, capabilityFloorDelta, and riskFloorDelta, which
may only raise a floor — a risk-floor raise also forces C3. The optimizer owns
reduction, after routing. Deterministic checks own failure. The escalation matrix
owns acceptance. The C3 arbiter owns judgment where escalated. Nothing
probabilistic decides any of these.
task, cwd, timeout,
expected output, and file ownership.depends_on to form stages; run same-stage jobs concurrently only when
ownership and outputs do not overlap.importance: high; set isolation: worktree for parallel
writers, untrusted write prompts, and harnesses with a weak write boundary.blocked when no candidate meets both capability and risk
floors; never budget-route judgment or silently weaken safety.Owned by safety-policy.md. This is the single brief in this file; the authority is that file.
authority. Request
approval only for an action outside that scope; prior authorization stays
valid without repeating --yes.plans/reports/orchestrate-<timestamp>/, with secrets
redacted from prompts, commands, logs, decision traces, and reports.unsettled, and a cancelled
request is not proof of a stopped writer.review or any
job whose artifact is a verdict on another job's work, architecture, high-impact
implementation, external/destructive work, any attempt whose tier was raised by
a riskFloorDelta, contradictory evidence, an absent injection-fixture result,
and any malformed or low-confidence micro-arbiter result.not-independent and
either substitute a fresh, independently configured context or block.plans/reports/orchestrate-<timestamp>/report.md.The System-1 decision plane is provider-neutral and optional. It prefers a
role: classifier candidate already in runtimes.json that proves structured
output and verified tool gating. Jev (TypeSafe) is the reference implementation
and one optional provider — never a requirement.
It supplies scored signals for the trace watchdog, failure triage, semantic
routing, the micro-arbiter gate, profiling, and graph relations. It never
authorizes a safety decision, sets approval, emits a dispatch, mutates shared
state, weakens review independence, or replaces the C3 arbiter.
Degradation is normal. With no eligible classifier, a timeout, or malformed
output, the affected decision records none and deterministic policy decides.
A classifier outage never blocks a run and never re-labels a runtime: unverified
means the deterministic probe did not prove the behavior, not that the model did
not confirm it.
See decision-plane.md.
Pi is orchestrable because every run is a resumable session file. The coordinator keeps those files under the run directory, records each job's session id as its handle, and chains dependent jobs by continuing or forking the upstream session instead of re-sending its output. Headless Pi has no sandbox and no per-operation approval, so its writes belong in a coordinator-created worktree and it starts offline so a job cannot install packages mid-run.
Probe budgets, flags, capture and the RPC intervention channel are in runtimes/pi.md; install, profile, authentication and kit projection are in runtimes/pi-onboarding.md.
Full schema: job-spec.md. Placeholders below are resolved after live discovery:
version: 1
concurrency: 2
jobs:
- id: scout-session-api
runtime: internal
task: scout
cwd: <workspace-root>
prompt: "Inspect the session API and report extension points."
timeout: 10m
expected_output: "Markdown report with files read and recommended seams."
- id: independent-review
runtime: <verified-cli-runtime>
fallback_runtime: [<verified-fallback-runtime>]
task: review
cwd: <workspace-root>
prompt: "Review the proposed change and verify its evidence."
timeout: 10m
expected_output: "Independent verdict with checks and unresolved risks."
Do not replace placeholders from memory. Resolve and record them during that run.
End with:
**Orchestrate Result**
- Spec: <path or inline request>
- Report: <plans/reports/orchestrate-.../report.md>
- Jobs: <success>/<failed>/<blocked>
- Arbiter: pass|fail|blocked
- Accepted without C3: <n> of <total> (R0/R1 only)
- Decision plane: enabled(<candidate>)|disabled|degraded(<reason>)
- Credentials: `credentialSource`=<env|project-env|skills-env|skill-env|absent> `credentialTrust`=<process|working-tree> `credential-shadowed`=<none|the ignored source>
- Checks: <commands or none>
Unresolved questions:
- None
references/benchmark-evidence.md (opens in a new tab)references/decision-plane.md (opens in a new tab)references/dispatch-hardening.md (opens in a new tab)references/event-protocol.md (opens in a new tab)references/failure-modes.md (opens in a new tab)references/fallback-policy.md (opens in a new tab)references/graph-optimizer.md (opens in a new tab)references/harness-portability.md (opens in a new tab)references/internal-routing.md (opens in a new tab)references/job-spec.md (opens in a new tab)references/metrics-and-self-improvement.md (opens in a new tab)references/observation.md (opens in a new tab)references/output-layout.md (opens in a new tab)references/routing-policy.md (opens in a new tab)references/runtime-adapter-contract.md (opens in a new tab)references/runtime-profile.md (opens in a new tab)references/safety-policy.md (opens in a new tab)references/trace-and-logging.md (opens in a new tab)references/verification.md (opens in a new tab)runtimes/README.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Invoke when work should be split across multiple headless runtimes, agent sessions, or in-session subagents, routed by task capability and risk, isolated where needed, and reviewed before handoff; also when Pi must be installed and set up before it can take orchestrated jobs, or when a new runtime adapter needs to be probed and conformed.
Three short reads, in order
multi-agent, orchestration, runtime-adapter, workflow, subagents
Other plugins' skills for the same job
npx claudepluginhub bestagentkits/orchestrate --plugin orchestrate