2.13.0-beta.20). Features may change before the next stable release.Switch to stable →Skills
Coordinate verified agent jobs with ak:orchestrate
Route staged or parallel jobs through live-verified runtimes, isolate writers, capture evidence, resume interrupted work, and require independent arbitration.
Use ak:orchestrate when one outcome benefits from staged dependencies,
parallel work, runtime diversity, or an independent arbiter. The Skill verifies
every runtime and control at execution time, isolates risky writers, captures
bounded evidence, and refuses to call unverified work complete.
Choose ak:orchestrate for a job graph
Use ak:orchestrate when
- Several independent jobs can run in parallel with distinct ownership.
- Later jobs depend on explicit artifacts or checks from earlier jobs.
- You need to route research, implementation, tests, and review by capability and risk.
- A long run needs durable state and bounded resume behavior.
- An independent judgment pass should reconcile conflicting outputs.
Choose another workflow when
- One agent can complete the task without useful fan-out or arbitration.
- Teammates need ongoing direct discussion and shared multi-session state. Use
ak:teamwhen the live runtime supports it. - You only need a fast read-only code map. Use
ak:scout. - You have one accepted implementation plan. Use
ak:cookunless routing diversity or isolation is material.
Prepare the workspace and runtimes
Before you start:
- Complete Onboarding, and confirm Engineer Kit is installed for the runtime and scope you are using.
- Use a Git repository when any job requires worktree isolation.
- Define the outcome, constraints, non-goals, acceptance evidence, allowed files, and external-effect boundary.
- Ensure each candidate CLI runtime is already installed and authenticated. Discovery does not install, update, log in, or change configuration.
- Keep credentials and unrelated private data out of prompts and capture.
| Runtime | Invocation | Availability boundary |
|---|---|---|
| Claude Code | /ak:orchestrate ... | The Skill can consider live in-session subagents and verified headless CLIs. Exact routes and controls are discovered during this run. |
| Cursor | /ak:orchestrate ... | Slash invocation follows the user-verified Engineer Skill spelling. Internal routing is eligible only when the current Cursor surface proves the required dispatch and controls. |
| Codex | $ak:orchestrate ... | Native Skill discovery is supported. In-session routing requires exposed multi-agent capability; otherwise a verified CLI route or a blocked result is used. |
The runtime that invokes the Skill is not automatically the runtime selected for every job.
Run the Skill
/ak:orchestrate "Map the session boundary, propose two designs, implement the accepted low-risk change in isolated ownership, then run an independent review"/ak:orchestrate "Map the session boundary, propose two designs, implement the accepted low-risk change in isolated ownership, then run an independent review"$ak:orchestrate "Map the session boundary, propose two designs, implement the accepted low-risk change in isolated ownership, then run an independent review"For repeatable work, pass a YAML job-spec path. For interrupted work, pass the
existing run directory with --resume.
| Input or option | Behavior | Boundary |
|---|---|---|
| Free-form task | Converts the accepted outcome into a durable job graph before dispatch | The generated graph must still pass validation and safety gates |
| Job-spec path | Uses explicit jobs, dependencies, timeouts, ownership, checks, and expected outputs | Runtime, model, Agent, and control pins remain unverified until live preflight |
--internal | Prefers qualified in-session subagents for unpinned jobs | It is a preference, not a hard mode or permission bypass |
--yes | Carries approval only for the exact destructive or external scope already described | It does not authorize broader credentials, files, release, or deployment |
--resume <run-dir> | Reuses successful outputs and redispatches interrupted work as new attempts | Routes, authentication, controls, and approvals are revalidated |
Describe the jobs clearly
Each job needs:
- Intent: A task class such as scout, architecture, implementation, review, audit, security, test, documentation, or mechanical work.
- Workspace: An exact working directory inside the authorized workspace.
- Ownership: Files it may write, or an explicit read-only scope.
- Dependencies: Jobs that must succeed before this one can start.
- Expected output: A verifiable report, diff, test result, or artifact.
- Checks: Commands or evidence the arbiter must inspect.
- Risk: Read-only, scoped write, isolated high-impact write, or external/destructive effect.
- Bounds: A timeout and any explicit runtime, model, Agent, tool, or budget constraint.
An explicit runtime or model is a constraint, not proof that it is present or safe. If the live candidate cannot satisfy the required capability and control floors, the job blocks rather than silently weakening them.
Understand the workflow
- The Skill accepts the contract. It confirms the outcome, boundaries, expected evidence, dependencies, and external intent.
- The Skill builds and validates the graph. It rejects duplicate IDs, dependency cycles, unsafe working directories, missing bounds, and parallel write overlap.
- The Skill inventories live candidates. It verifies executable or Agent availability, authentication readiness, current command shape, selectable routes, permissions, isolation, timeouts, capture, resume behavior, and host limitations.
- The Skill classifies capability and risk. Read-only extraction, implementation, and independent judgment receive different minimum floors. Safety controls are filtered before cost or latency.
- The Skill applies the approval gate. Destructive, release, deployment, deletion, credentialed, and other external effects require exact approval and a recovery plan.
- The Skill dispatches by stage. Independent jobs run together only within the concurrency limit. Parallel writers use separate worktrees and disjoint ownership.
- The Skill captures durable evidence. State transitions, bounded output, artifacts, errors, duration, and reliably reported usage remain available for diagnosis and resume.
- The Skill runs an arbiter. A separate judgment route checks expected outputs, contradictions, safety gaps, failed checks, unsupported claims, and unresolved questions.
- The Skill reports without integrating silently. Worktree diffs remain awaiting review; merge or cherry-pick is a separate action.
Keep approval and safety with you
A worktree is collision isolation, not a sandbox
Separate worktrees keep concurrent Git edits apart. They do not contain processes, network access, credentials, or writes outside the worktree. A job still needs runtime controls that meet its risk tier.
Every CLI process receives a coordinator-owned timeout. In-session timeouts are only accounting limits unless the live harness proves cancellation; the Skill must not launch another writer into the same ownership while a timed-out Agent may still be running.
Permission bypasses stay off by default. A headless runtime that auto-approves writes is constrained to read/report work or stronger isolated treatment. No job may place tokens, cookies, private keys, raw environment values, or secret arguments in its request or capture.
Verify the result
A complete run should provide:
- A validated job graph with dependencies, ownership, bounds, expected outputs, and checks.
- A live runtime inventory showing verified, constrained, unavailable, and unverified candidates without secret values.
- Per-job status, resolved route, risk and capability classification, artifacts, errors, timeouts, and attempts.
- Preserved failed or interrupted evidence rather than silent retries.
- An arbiter verdict that checks every required artifact and contradiction.
- A final report naming successful, failed, and blocked jobs, checks, worktree diffs awaiting integration, and unresolved questions.
The run is successful only when every required job succeeds, checks pass, claims have evidence, contradictions are resolved, and the arbiter passes.
Troubleshoot or resume
| Symptom | Safe next step |
|---|---|
| A runtime is missing or unauthenticated | Evaluate declared fallbacks through the same live gate, or complete setup outside the run and preflight again. |
| A model or flag is rejected | Return to live help or current official documentation; do not guess or carry identifiers across runtimes. |
| A permission prompt appears | Stop the job and resolve the exact approval boundary. Do not retry with a bypass. |
| A job times out | Preserve bounded partial evidence, mark the job failed, and block dependents until a recovery decision. |
| Parallel writers need the same file | Sequence them or redesign ownership; separate worktrees do not resolve the integration conflict. |
| A run is interrupted | Resume from its durable state, revalidate live routes, and rerun only interrupted work plus the required arbiter. |
| The arbiter fails | Address missing artifacts, failed checks, contradictions, or unsupported claims before integration. |
| The runtime does not recognize the Skill | Confirm target and scope, restart the runtime session, then follow Runtime cannot find a Skill or Agent. |
Compare ak:team for live multi-session collaboration, or continue with the
Engineer Kit overview and
Runtime adapters.
Know the current limits
- Runtime and model catalogs, authentication, flags, and safety controls drift; every run must verify them live.
- In-session Agents may not provide force cancellation, per-job sandboxing, or selectable models.
- Jobs share no implicit memory; dependencies must pass explicit artifacts.
- Worktrees require Git and disk headroom, and integration remains a separate reviewed action.
- Usage and cost appear only when the selected harness reports them reliably.
- The Skill coordinates existing runtimes; it does not create a daemon, dashboard, account pool, or provider adapter.
- Stable and beta contain identical
ak:orchestratepolicy and schema.
Discover the right capability with ak:find-skills
Route to an installed AgentKit Skill first, or search the external Skills ecosystem and install a reviewed package with explicit approval.
Coordinate live teammates with ak:team
Run research, implementation, review, or debugging through independent teammate sessions with shared work, direct communication, ownership, verification, and cleanup.