Loading...
Loading...
使用Orca CLI通过智能体间消息传递、任务DAG、带前置内容注入的调度、决策门和协调器循环来协调多个编码Agent。适用于Agent需要发送或检查智能体间消息、创建/调度/跟踪编排任务、协调多Agent工作流,或作为协调器在终端间调度工作的场景。触发场景包括“orchestrate agents”、“dispatch task”、“send message to agent”、“check inbox”、“coordinate agents”、“multi-agent”、“create task DAG”、“worker_done”、“escalation”,或任何通过Orca进行智能体间协调的任务。
npx skill4agent add stablyai/orca orchestrationorca-cliorca status --jsonruntime: trueorcaorca orchestrationorca orchestration send --to <handle|@group> --subject <text> [--from <handle>] [--body <text>] [--type <type>] [--priority <level>] [--thread-id <id>] [--payload <json>] [--json]
orca orchestration check [--terminal <handle>] [--unread] [--types <type,...>] [--inject] [--wait] [--timeout-ms <n>] [--json]
orca orchestration reply --id <msg_id> --body <text> [--from <handle>] [--json]
orca orchestration inbox [--limit <n>] [--json]--fromORCA_TERMINAL_HANDLE--inject[HIGH][URGENT]--json--wait--types--wait --types worker_done --timeout-ms 120000statusdispatchworker_donemerge_readyescalationhandoffdecision_gatenormalhighurgent| 群组 | 解析目标 |
|---|---|
| 除发送方外的所有终端句柄 |
| 当前Agent处于空闲状态的句柄 |
| 运行Claude Code的句柄 |
| 运行Codex的句柄 |
| 运行OpenCode的句柄 |
| 运行Gemini的句柄 |
| 指定工作树中的所有句柄 |
thread_iddepscompletedreadyorca orchestration task-create --spec <text> [--deps <json_array>] [--parent <task_id>] [--json]
orca orchestration task-list [--status <status>] [--ready] [--json]
orca orchestration task-update --id <task_id> --status <status> [--result <json>] [--json]pendingreadydispatchedcompletedfailedblockedcompletedreadyorca orchestration dispatch --task <task_id> --to <handle> [--from <handle>] [--inject] [--json]
orca orchestration dispatch-show --task <task_id> [--json]--injectorca orchestration send --type worker_doneorca--inject--injectterminal sendcircuit_brokenfailedorca orchestration gate-create --task <task_id> --question <text> [--options <json_array>] [--json]
orca orchestration gate-resolve --id <gate_id> --resolution <text> [--json]
orca orchestration gate-list [--task <task_id>] [--status <status>] [--json]readypendingresolvedtimeoutworker_doneescalationorca orchestration run --spec <text> [--from <handle>] [--poll-interval-ms <n>] [--max-concurrent <n>] [--worktree <selector>] [--json]
orca orchestration run-stop [--json]runorca orchestration task-listdecomposingdispatchingmonitoringmergingdoneorca orchestration reset [--all] [--tasks] [--messages] [--json]--all--tasksorca-cliorca terminal list [--worktree <selector>] [--json]
orca terminal create [--worktree <selector>] [--title <text>] [--command <cmd>] [--json]
orca terminal split --terminal <handle> [--direction horizontal|vertical] [--command <cmd>] [--json]
orca terminal read [--terminal <handle>] [--json]
orca terminal send [--terminal <handle>] --text <text> [--enter] [--json]
orca terminal wait [--terminal <handle>] --for <exit|tui-idle> [--timeout-ms <n>] [--json]
orca terminal show --terminal <handle> [--json]
orca terminal stop [--terminal <handle>] [--json]
orca terminal close [--terminal <handle>] [--json]--terminal--command "claude"--commandterminal wait --for tui-idle--for tui-idle--timeout-ms--direction horizontal--direction verticalterminal listterminal readworker_doneworker_doneescalationorca orchestration checkorca orchestrationgitnpmorca orchestration task-list --readyterminal listtask-createdispatch --injectcheck --wait --types worker_done,escalation --timeout-ms 300000worker_donecheck --wait--wait--timeout-msterminal wait --for tui-idlecheck --waitcheck --waitworker_doneterminal wait --for tui-idleterminal listgate-create# 1. 创建运行Claude Code的终端
orca terminal create --worktree active --title "worker-1" --command "claude" --json
# → handle: term_abc123
# 2. 等待Claude Code启动完成(当提示符出现时触发tui-idle)
orca terminal wait --terminal term_abc123 --for tui-idle --timeout-ms 60000 --json
# 3. 创建并调度带前置注入的任务
orca orchestration task-create --spec "修复登录按钮的CSS" --json
# → id: task_def456
orca orchestration dispatch --task task_def456 --to term_abc123 --inject --json
# 4. 阻塞直到Worker反馈(无需睡眠循环)
orca orchestration check --wait --types worker_done,escalation --timeout-ms 300000 --json
# → 当Worker发送worker_done时立即返回
# 5. 如果--wait超时且无消息,fallback到空闲检测
orca terminal wait --terminal term_abc123 --for tui-idle --timeout-ms 60000 --json
orca terminal read --terminal term_abc123 --json