๐Ÿฆž Lobster Raising Diaryโ€บ Skill Storeโ€บ Multi-Agent Orchestration
Advanced

๐Ÿค Multi-Agent Orchestration

One brain isn't enough โ€” coordinate specialized AI agents as a team to tackle complex workflows that scale beyond any single agent

Get OpenClaw โ†’ โ† All Skills

๐Ÿ’ก Real story: In 14 days, Fu Sheng's single AI lobster "Sanwan" evolved into 8 specialized agents. The Commander dispatches tasks via Feishu; the Writer produces content; the Strategist does research; the Ops agent handles daily routines; the Evolution agent writes code; the Community agent manages Discord; the Trading agent monitors stocks. Together they run 7ร—24 โ€” the CEO just says one sentence in the morning.

๐Ÿ›๏ธ Architecture Overview

Multi-agent = one OpenClaw installation ร— multiple independent roles, each with its own persona, memory, and skill set

๐ŸŽฏ Commander (Main Agent)
โ†™ โ†“ โ†˜
โœ๏ธ Writer ๐Ÿ”ฌ Strategist ๐Ÿ“‹ Ops Agent ๐Ÿ’ป Dev Agent ๐Ÿ’ฌ Community
Spawns sub-agents ยท Shares files for collaboration ยท Push-based result reporting

๐Ÿงฉ Why Multiple Agents?

๐ŸŽฏ Specialization beats generalization
A dedicated writer agent with a journalism-style SOUL.md produces far better content than a generalist. Each agent can be tuned for exactly one domain.
โšก Parallel execution
While the Writer drafts an article, the Strategist is doing competitive research, and the Ops agent is checking messages. True parallelism โ€” not sequential.
๐Ÿง  Context isolation
Long-running agents don't pollute each other's context. The trading agent's 10,000 token market analysis doesn't crowd out the writer's creative flow.
๐Ÿ”’ Role-based security
The community-facing agent only sees public information. The financial agent accesses sensitive APIs. Least-privilege per role.

๐Ÿ‘ฅ Classic Role Designs

๐ŸŽฏ Commander โ€” The Orchestrator
Receives tasks from humans (via Feishu/Discord), breaks them into sub-tasks, delegates to the right specialist, consolidates results, and reports back. The only agent the human directly talks to.
โœ๏ธ Writer โ€” Content Specialist
Long-form articles, social posts, email drafts. Trained on the owner's writing style via SOUL.md examples. Never does research itself โ€” relies on Strategist to supply facts.
๐Ÿ”ฌ Strategist โ€” Research & Analysis
Web searches, competitor analysis, market research, data synthesis. Produces structured reports for other agents to consume. No writing, no publishing โ€” just intelligence.
๐Ÿ“‹ Ops Agent โ€” Daily Execution
Calendar, emails, reminders, routine tasks. Runs heartbeat for operational workflows. The agent equivalent of an executive assistant.
๐Ÿ’ป Evolution Agent โ€” Code & Systems
Writes and deploys code, maintains websites, monitors infrastructure, executes Claude Code sessions. Technical depth that other agents don't need.

๐Ÿ”— Communication Patterns

PatternHow It WorksUse Case
Spawn & ReportCommander spawns a sub-agent with a task; sub-agent auto-announces result when doneOne-off complex tasks
Shared FilesAgents read/write shared markdown files in workspace as a bulletin boardAsync collaboration, handoffs
Feishu RelayAgents send results to a shared Feishu channel; others subscribe and reactHuman-in-the-loop approval
Heartbeat PollEach agent runs its own heartbeat, checking a shared task queue fileParallel autonomous execution

๐Ÿ› ๏ธ Building Your First Multi-Agent System

1
Map your workflows to roles
List everything your current single agent does. Group tasks by domain: content vs research vs code vs ops. Each major domain = one potential agent.
2
Create a workspace per agent
Each agent gets its own workspace directory with a SOUL.md, MEMORY.md, and HEARTBEAT.md. Shared resources go in a common shared/ folder.
workspaces/
  commander/   SOUL.md  MEMORY.md  HEARTBEAT.md
  writer/      SOUL.md  MEMORY.md  HEARTBEAT.md
  strategist/  SOUL.md  MEMORY.md  HEARTBEAT.md
  shared/      tasks.md  context.md  results.md
3
Define hand-off protocols
Specify exactly how agents pass work to each other. A simple convention: the Commander writes to shared/tasks.md; specialists poll it during heartbeat.
# shared/tasks.md
## [PENDING] Strategist: Research top 5 AI coding tools
- Output: shared/research-ai-coding.md
- Requested by: Commander

## [DONE] Writer: Draft article on Claude 3.5 Sonnet
- Output: shared/articles/claude-35.md
- Status: โœ… Published 2024-03-14
4
Start simple, evolve gradually
Begin with Commander + one Specialist. Prove the workflow works for 1 week before adding the next agent. Don't design 8 agents on day 1.

โš ๏ธ Common Pitfalls

โŒ Too many agents too soon โ€” Each agent needs its own SOUL.md, memory, and maintenance. Start with 2, not 8.
โŒ No clear ownership โ€” If two agents can both "handle" a task, neither will do it reliably. One task, one agent.
โŒ Over-coupling โ€” Agents that can't work without others are fragile. Each agent should be useful standalone; collaboration is a bonus.
โœ… Right pattern โ€” Start with Commander + Writer. The Writer publishes content autonomously. The Commander handles everything else until a second specialist is needed.
๐Ÿ’ก The 14-day rule: Fu Sheng's team grew from 1 to 8 agents in 14 days โ€” but each agent was only added when a specific bottleneck appeared. You'll know when you need a new agent when one existing agent is constantly overloaded with tasks from one specific domain.

๐Ÿ”— Related Skills

๐Ÿ—๏ธ Multi-Agent Team Setup โ€” Step-by-step configuration guide with code examples
๐Ÿ’“ Heartbeat Mechanism โ€” Keep each agent running autonomously on a schedule
๐Ÿงฌ SOUL.md Design โ€” Define distinct personalities and expertise for each agent role