Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Multi-agent orchestration patterns for OpenClaw. Quick reference for spawning sub-agents, parallel work, and basic coordination. Use when: simple parallel ta...
Multi-agent orchestration patterns for OpenClaw. Quick reference for spawning sub-agents, parallel work, and basic coordination. Use when: simple parallel ta...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Simple patterns for multi-agent coordination. For advanced dynamic orchestration, see cord-trees.
ToolPurposesessions_spawnCreate isolated sub-agent with tasksubagents listCheck status of running agentssubagents steerSend guidance to running agentsubagents killTerminate an agentsessions_sendMessage another session
Two context strategies for sub-agents:
Spawn N independent agents, wait for all to complete. # Pseudocode tasks = ["research A", "research B", "research C"] for task in tasks: sessions_spawn(task=task, label=f"research-{i}") # Poll until all complete while not all_complete(subagents list): wait(30s) # Collect results from session histories See: references/fan-out.md
Each agent's output feeds the next. Agent 1: Research β Agent 2: Analyze (using research) β Agent 3: Write (using analysis) Implementation: Spawn agent 1, wait for completion, spawn agent 2 with agent 1's result, etc. See: references/pipeline.md
Tasks with explicit dependencies. Don't start X until Y completes. #1 Research API surface #2 Research GraphQL tradeoffs #3 Analysis (blocked-by: #1, #2) #4 Recommendation (blocked-by: #3) Implementation: Track state in a JSON file. Poll and spawn when dependencies clear. See: references/dependency-tree.md
Pause workflow for human input at checkpoints. Agent 1: Draft proposal β [CHECKPOINT: Human approves/rejects] β Agent 2: Implement approved proposal Implementation: Agent 1 completes, orchestrator messages human via sessions_send or channel message, waits for response before spawning agent 2.
Orchestrator monitors agents and intervenes when stuck. while agents_running: status = subagents list for agent in status: if stuck_too_long(agent): subagents steer(target=agent, message="Try alternative approach...") if clearly_failed(agent): subagents kill(target=agent) # Retry or escalate
For complex orchestrations, track state in a file: // orchestration-state.json { "tasks": { "research-a": {"status": "complete", "result": "...", "sessionKey": "..."}, "research-b": {"status": "running", "sessionKey": "..."}, "synthesis": {"status": "blocked", "blockedBy": ["research-a", "research-b"]} } } Update after each spawn, completion check, or state change.
Label agents clearly β Use descriptive labels for subagents list readability Set timeouts β Use runTimeoutSeconds to prevent runaways Don't over-parallelize β More agents β better. Consider token costs. Checkpoint expensive work β Write intermediate results to files Handle failures β Decide: retry, skip, or escalate to human Keep tasks focused β One clear goal per agent. Easier to debug.
β Polling in tight loops β Use reasonable intervals (30s+) β Spawning agents for trivial tasks β Just do it yourself β Giant context dumps β Summarize, don't copy entire histories β No failure handling β Agents fail. Plan for it.
SituationPatternN independent research tasksFan-outStep A β Step B β Step CPipelineComplex task with prerequisitesDependency treeNeed human approval mid-flowHuman-in-the-loopLong-running with potential issuesSupervisorSimple one-off subtaskJust spawn one agent
# Spawn a sub-agent sessions_spawn(task="Do X", label="my-task", runTimeoutSeconds=300) # Check status subagents(action="list") # Send guidance subagents(action="steer", target="my-task", message="Focus on Y instead") # Kill runaway subagents(action="kill", target="my-task")
Agent frameworks, memory systems, reasoning layers, and model-native orchestration.
Largest current source with strong distribution and engagement signals.