有效编排 OpenClaw 子代理,覆盖全部三种代理类型(Worker、Researcher、Council),包括正确的生成模式和沙箱约束等。
TypeToolsUse ForWorkerDefault (no web)File ops, script execution, git, code changesResearcherollama_web_search, ollama_web_fetchWeb research, API lookups, live dataCouncilDefault (no web)Analysis, review, decision-making with passed context
Default subagents (Worker/Council) cannot:
ollama_web_fetch or ollama_web_searchpython3 -c "..." inline commandsThey can:
.py files ( python3 /path/to/script.py)exec, read, write, edit toolstext
sessions_spawn(
toolsAllow: ["ollama_web_fetch", "ollama_web_search"],
runtime: "subagent",
mode: "run",
lightContext: true,
runTimeoutSeconds: 600,
task: "Research X. Return: findings, sources, key metrics."
)
text
sessions_spawn(
runtime: "subagent",
mode: "run",
lightContext: true,
runTimeoutSeconds: 300,
task: "Run python3 /path/to/script.py. Report output."
)
text
# Spawn 3 parallel subagents with different models and perspectives
# See skills/council-of-llms/SKILL.md for full details
sessions_spawn(model: "ollama/kimi-k2.6:cloud", label: "Council-Strategos", ...)
sessions_spawn(model: "ollama/deepseek-v4-pro:cloud", label: "Council-Analyticos", ...)
sessions_spawn(model: "ollama/gemma4:31b-cloud", label: "Council-Creativos", ...)
# Then synthesize all 3 outputs into a unified verdict
text
# WARNING: Single-model councils cause context overflow and produce shallow analysis
# Use multi-model pattern above instead
sessions_spawn(
runtime: "subagent",
mode: "run",
lightContext: true,
runTimeoutSeconds: 900,
task: "Review this data and decide: [data pasted inline]. Return: verdict, conditions, risks."
)
Task TypeMin TimeoutRecommendedSimple file ops120s180sResearch (web)300s600sCouncil/review300s600sComplex multi-step600s900s
Never rush agents. Quality > speed. If an agent takes >60s, give the user a brief status update.
.py files first — don't pass inline Python to subagents.SymptomCauseFixAgent times outCan't access web toolsUse toolsAllow or pre-fetch contentAgent times outCan't run inline PythonWrite .py file, pass pathAgent times outrunTimeoutSeconds too lowSet runTimeoutSeconds: 900 in spawn callAgent times outGateway under load (10s spawn timeout)Kill zombie subagents, wait, retryAgent returns nothingMissing contextPaste data in task parameterAgent stuck in loopVague taskAdd explicit "return X" instructionGateway crashesContext overflow on spawnUse lightContext: trueSpawn fails (10s gateway timeout)Gateway CPU overloadKill stale subagents first, then retry
python3 -c inline in task descriptionsSet subagent defaults in ~/.openclaw/openclaw.json:
json
{
"agents": {
"defaults": {
"subagents": {
"runTimeoutSeconds": 900,
"maxConcurrent": 5
}
}
}
}
Also set in ~/.openclaw/council-config.json:
json
{
"default_timeout": 900,
"max_tokens": 8192
}