OpenClaw Agent Orchestrator
Use this skill when the user wants real subagents or when the runtime claims it started agents but openclaw agents list and openclaw agents bindings do not show them.
Durable Agent Rule
For durable subagents in this deployment, use openclaw agents add and verify the result.
Do not use sessions_spawn with mode="session" for durable agent creation here. This runtime has already returned errors such as:
Treat sessions_spawn as ephemeral-only unless the current runtime explicitly proves thread-bound session support.
Workflow
- 1. Run
scripts/verify-runtime.sh to see the current truth. - If the requested durable agent does not exist, run
scripts/create-agent.sh <agent-id> <name> <emoji> [theme]. - If the user asked for routing, add bindings with
openclaw agents bind. - Re-run
scripts/verify-runtime.sh. - Report only what is present in verified runtime output.
Guardrails
- - Never say an agent was created until
openclaw agents list --json shows it. - Never claim bindings exist until
openclaw agents bindings --json shows them. - Do not use
crontab in this environment. Use openclaw cron ... only if a schedule is actually needed. - Do not say
GO, starting now, or spawned successfully before a verified state change.
Commands
Verify:
CODEBLOCK0
Create one durable agent:
CODEBLOCK1
Create one durable agent from a copied workspace and verify:
CODEBLOCK2
OpenClaw Agent Orchestrator
当用户需要真正的子代理,或当运行时声称已启动代理但 openclaw agents list 和 openclaw agents bindings 未显示这些代理时,请使用此技能。
持久化代理规则
对于此部署中的持久化子代理,请使用 openclaw agents add 并验证结果。
请勿在此处使用 sessions_spawn 配合 mode=session 创建持久化代理。此运行时已返回如下错误:
- - mode=session requires thread=true
- thread=true is unavailable because no channel plugin registered subagent_spawning hooks
除非当前运行时明确证明支持线程绑定的会话,否则将 sessions_spawn 视为仅限临时使用。
工作流程
- 1. 运行 scripts/verify-runtime.sh 查看当前真实状态。
- 如果请求的持久化代理不存在,运行 scripts/create-agent.sh [theme]。
- 如果用户要求路由,使用 openclaw agents bind 添加绑定。
- 重新运行 scripts/verify-runtime.sh。
- 仅报告已验证运行时输出中存在的内容。
防护措施
- - 在 openclaw agents list --json 显示代理之前,切勿声称代理已创建。
- 在 openclaw agents bindings --json 显示绑定之前,切勿声称绑定存在。
- 请勿在此环境中使用 crontab。仅在确实需要计划任务时使用 openclaw cron ...。
- 在验证状态变更之前,请勿说 GO、starting now 或 spawned successfully。
命令
验证:
bash
./scripts/verify-runtime.sh
创建一个持久化代理:
bash
./scripts/create-agent.sh oracle Oracle 🔮 qa
从复制的工作空间创建一个持久化代理并验证:
bash
./scripts/create-agent.sh trinity Trinity 🥷 ops
./scripts/verify-runtime.sh