Multi-agent collaboration and task orchestration for OpenClaw.
When a single agent isn't enough — orchestrate a team.
Task Decomposition:
Agent Coordination:
Result Synthesis:
Trigger Phrases:
Use Cases:
Orchestrate this: Research the top 5 AI frameworks and compare their features, performance, and community support.
The orchestrator will:
Orchestrate with options:
- Task: Analyze our Q4 sales data
- Agents: 4 (by region: North/South/East/West)
- Parallel: true
- Synthesis: consolidated_report
┌─────────────────┐
│ Orchestrator │
│ (Main) │
└────────┬────────┘
│
┌────┴────┬────────────┐
│ │ │
┌───▼───┐ ┌──▼────┐ ┌────▼────┐
│Agent 1│ │Agent 2│ │Agent 3 │
│ Task A│ │ Task B│ │ Task C │
└───┬───┘ └───┬───┘ └────┬────┘
│ │ │
└─────────┴────────────┘
│
┌────▼────┐
│Synthesis│
│ Result │
└─────────┘
| Strategy | Description | Best For |
|---|---|---|
| ---------- | ------------- | ---------- |
parallel | All sub-tasks run concurrently | Independent tasks |
sequential | Tasks run one after another | Dependent tasks |
hybrid | Mix of parallel and sequential | Complex workflows |
| Mode | Description | Use Case |
|---|---|---|
| ------ | ------------- | ---------- |
auto | Orchestrator decides agent count | General purpose |
fixed | Specific number of agents | Resource-constrained |
per_task | One agent per sub-task | Maximum parallelization |
| Option | Description |
|---|---|
| -------- | ------------- |
merge | Combine all results as-is |
summarize | Generate executive summary |
compare | Highlight differences and similarities |
consolidate | Merge with conflict resolution |
Task: Research the competitive landscape for project management software
Decomposition:
- Agent 1: Analyze Asana features and pricing
- Agent 2: Analyze Monday.com features and pricing
- Agent 3: Analyze Notion features and pricing
- Agent 4: Analyze ClickUp features and pricing
- Agent 5: Analyze emerging competitors
Synthesis: Comparative analysis report with recommendations
Task: Review the entire codebase for security vulnerabilities
Decomposition:
- Agent 1: Review authentication module
- Agent 2: Review API endpoints
- Agent 3: Review database queries
- Agent 4: Review file handling
- Agent 5: Review third-party dependencies
Synthesis: Security audit report with prioritized fixes
Task: Write a comprehensive guide to OpenClaw skills
Decomposition:
- Agent 1: Introduction and setup
- Agent 2: Basic skill structure
- Agent 3: Advanced patterns
- Agent 4: Best practices
- Agent 5: Troubleshooting
Synthesis: Complete guide with consistent voice and formatting
{
"runtime": "subagent",
"mode": "run",
"task": "<specific sub-task>",
"timeoutSeconds": 300,
"streamTo": "parent"
}
pending → running → completed/failedWhen sub-agents produce conflicting results:
| Error | Handling |
|---|---|
| ------- | ---------- |
| Timeout | Retry once with extended timeout |
| Crash | Spawn replacement agent |
| Invalid output | Request clarification |
| Resource exhausted | Queue and retry later |
| Error | Handling |
|---|---|
| ------- | ---------- |
| Missing results | Proceed with available data, flag gaps |
| Conflicting data | Flag for human review |
| Format mismatch | Normalize before merging |
✅ Clear task boundaries - Each sub-task should be self-contained
✅ Explicit success criteria - Define what "done" looks like
✅ Reasonable timeouts - Account for complexity
✅ Progressive synthesis - Synthesize as results arrive
✅ Human escalation - Know when to involve the user
❌ Over-parallelize - Too many agents creates coordination overhead
❌ Vague instructions - Sub-agents need clear, specific tasks
❌ Ignore dependencies - Sequential tasks must respect order
❌ Blind synthesis - Review before merging conflicting results
❌ No fallback - Always have a plan B for failures
Solution:
compare synthesis mode to highlight differencesSolution:
Solution:
consolidate synthesis modeorchestrate <task> [options]
Options:
--agents <n> Number of sub-agents (default: auto)
--mode <mode> Execution mode: parallel|sequential|hybrid
--timeout <sec> Timeout per sub-agent (default: 300)
--synthesis <type> Synthesis type: merge|summarize|compare|consolidate
--verbose Show detailed progress
orchestrate status <session_id>
Shows current orchestration session status
MIT
Part of the multi-agent toolkit for OpenClaw
"Alone we can do so little; together we can do so much."
共 1 个版本