Loading...
Loading...
Orca orchestration coordinator runbook for orchestrator sessions only: bind the Run created by /orca-tasks, dispatch ready tasks one-worktree-one-branch, drive the task DAG, watchdog check --wait, gate failures, auto-merge green PRs, release workers. Also has a quick path for 1-2 task runs without a plan. Invoke with /orca-orchestrate.
npx skill4agent add adamelhirch/orca-skills orca-orchestrateworker_done/orca-resume/orca-setup/orca-plan/orca-tasksrun-createtask-createorca skills get orchestration
orca skills get orca-cli--jsonorca worktree current --jsonisMainWorktreetruedocs/agents/setup.md/orca-setuporca orchestration run-use --id <run_id> --jsonorca orchestration run-create --objective "<objective>" --jsonorca orchestration task-list --run <run_id> --ready --jsonreadymainworkerworker--agent-a <agent># independent (no blockers) → top-level worktree; dependent → child worktree
orca worktree create --name <slug> --no-parent --setup run --json
# or: orca worktree create --name <slug> --parent-worktree active --setup run --json
orca terminal create --worktree id:<newWorktreeId> --title <slug> --command "OPENCODE_CONFIG_CONTENT='{\"default_agent\":\"worker\"}' opencode --auto -m <model>" --json
orca terminal wait --terminal <handle> --for tui-idle --timeout-ms 60000 --json
orca orchestration worker-start --task <task_id> --terminal <handle> --worktree id:<newWorktreeId> --jsonisolated: noworktree create--agentterminal createorca terminal list --worktree id:<id> --jsonworkerworker-startorca orchestration worker-start --task <task_id> --worktree new-top-level --name <slug> --agent <tui> --jsonworkerorca orchestration check --wait --types worker_done,escalation,question --timeout-ms 900000 --json{count:0}worker_donesucceededuv run pytest# github tracker: merge the PR (auto or via the user's review gate)
gh pr merge <pr_number> --squash --delete-branch
# local-only (linear tracker, no remote): merge the branch into main in the cockpit
# git merge --squash <task-branch> && git push (if a remote exists)
orca orchestration worker-release --dispatch <dispatch_id> --json
orca worktree rm --worktree <task_worktree_id> --force --json
# linear tracker: move the linked issue to Done explicitly — merge does not do it
# orca linear status set <issue_key> --to "Done" --workspace <workspace_id> --jsontask-list --readyexternal_terminalworker-releaseorca terminal close --terminal <handle>failedorca orchestration task-update --id <task_id> --status failed --json
# dependents are blocked by the failure — surface them via gate
orca orchestration gate-create --task <dependent_id> --question "<task> failed; retry bounded (worker-start --retry-of), fix forward, or abandon?" --options '["retry","fix-forward","abandon"]' --jsonworker-start --task <id> --terminal <handle> --worktree <sel> --retry-of <failed_dispatch_id> --jsonorca orchestration check --ack <delivery_id> --wait --types worker_done,escalation,question --timeout-ms 900000 --jsontask-listcompletedworker_doneorca orchestration worker-read --dispatch <id> --jsonorca terminal wait --terminal <handle> --for tui-idle --timeout-ms 60000 --jsonworker_doneorca terminal send --terminal <handle> --text 'orca orchestration send --type worker_done --subject "<status>" --body "<done, found, left>" --task-id <task_id> --dispatch-id <dispatch_id> --outcome succeeded --files-modified "path/a" --json' --enter --jsoncheck --waitorca orchestration task-update --id <task_id> --status completedorca orchestration worker-release --dispatch <dispatch_id> --jsonworker-releasegh pr merge --squash --delete-branchmaingit merge --squash <task-branch>succeeded-a <agent>OPENCODE_CONFIG_CONTENT='{"default_agent":"worker"}'--autoOPENCODE_CONFIG_CONTENT='{"default_agent":"worker"}' opencode --auto -m <model>worker-start --agent <tui>workerOPENCODE_CONFIG_CONTENT--terminalworker-start --terminal <handle>--worktreeterminal_worktree_mismatchaskexternal_directorydoom_loopworkerworker_done--task-id--dispatch-idtask-updateworker-start--worktree new-childnew-top-levelterminal createOPENCODE_CONFIG_CONTENTexternal_terminalworker-releaseretained / external_terminalorca terminal close --terminal <handle>worker-startgh pr mergeorca linear status set <key> --to "Done" --workspace <id>orca linear comment add <key> --body "Merged in <pr/branch>"