/swarm-orchestration:swarm-orchestrationfrom swarm-orchestration
Coordinates multi-agent swarms via a Technical Director that decomposes tasks and delegates to specialized agents (Architect, Programmer, QA, Critic, Security Engineer, Red Team). Supports Notion persistence for cross-session continuity. Use for parallel specialist work or coordinated implementation pipelines.
Ships in swarm-orchestration. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Multi-agent orchestration with TD (Technical Director) coordinating specialized agents through shared channel communication.
Coordinating multiple AI agents on complex decomposed tasks is error-prone without structured orchestration. Without a clear protocol for task decomposition, agent spawning, inter-agent communication, and result merging, swarm-based workflows produce fragmented outputs, deadlocked dependencies, and lost context between sessions.
TD (You) ──┬── Architect (design)
├── Programmer (implementation)
├── QA Engineer (validation)
├── Critic (adversarial review)
├── Security Engineer (hardening)
├── Red Team Operator (offensive)
└── [+ Network, Hardware, CTI, Data, Game-Master]
References:
references/roles.mdreferences/message-protocol.mdreferences/notion-persistence.mdTeammate({ operation: "spawnTeam", team_name: "{project}", description: "{goal}" })
Break into discrete tasks. Match ownership to expertise:
TaskCreate({ subject: "Design auth", description: "..." })
TaskCreate({ subject: "Implement auth", description: "..." })
TaskUpdate({ taskId: "2", addBlockedBy: ["1"] })
Task({
team_name: "{project}",
name: "programmer",
subagent_type: "general-purpose",
prompt: `You are Programmer on team {project}.
ROLE: Implementation. TOOLS: All. AUTONOMY: supervised
PROTOCOL:
1. Read: python3 scripts/channel.py read --team {project}
2. Write: python3 scripts/channel.py write --team {project} --from programmer --content "msg"
3. Address: @td, @architect, @qa, etc.
4. EMIT REASONING in channel before decisions.
Begin by reading channel, then TaskList().`,
run_in_background: true
})
cat ~/.claude/teams/{project}/channel.jsonl | tail -50Teammate({ operation: "requestShutdown", target_agent_id: "programmer", reason: "Complete" })
Teammate({ operation: "cleanup" })
Container resets between sessions. Persist everything to Notion for complete audit trail. See reference.md for full API documentation, scripts reference, and Notion page structure.
| Component | What's Captured | Script |
|---|---|---|
| Request | Original user prompt | swarm_persistence.py |
| Dialogue | Full user <> Claude conversation turns | swarm_persistence.py |
| Thinking | Claude's extended thinking blocks | swarm_persistence.py |
| Agent Logs | Channel communication between agents | notion_persistence.py |
| Artifacts | Code, config files, markdown docs | swarm_persistence.py |
| Outputs | Final deliverables and summaries | swarm_persistence.py |
Setup (one-time): Create Swarm Hub database. See references/notion-persistence.md for schema.
The first sync is deliberately two-phase. Run notion_sync.py sync, create the
hub row, save the returned ID with notion_sync.py save-ids --hub-row-id, then
rerun sync to generate child-page operations with a concrete parent. Never
substitute or execute unresolved page-ID placeholders.
State defaults to ~/.claude/teams. Set SWARM_TEAMS_BASE when the runtime uses
a different durable directory. Team names are restricted to letters, digits,
dot, underscore, and hyphen to prevent path traversal.
| Level | Behavior |
|---|---|
autonomous | Proceeds without approval |
supervised | Reports decisions, TD can intervene (default) |
gated | Requires TD approval |
addBlockedBy dependencies)| Action | Command |
|---|---|
| Create team | Teammate({ operation: "spawnTeam", team_name: "X" }) |
| Create task | TaskCreate({ subject: "...", description: "..." }) |
| Set dependency | TaskUpdate({ taskId: "N", addBlockedBy: ["M"] }) |
| Spawn agent | Task({ team_name: "X", name: "role", prompt: "...", run_in_background: true }) |
| Read channel | cat ~/.claude/teams/X/channel.jsonl | tail -50 |
| Shutdown | Teammate({ operation: "requestShutdown", target_agent_id: "role" }) |
| Init persistence | python3 scripts/swarm_persistence.py init --team X --description "..." |
| Export full | python3 scripts/swarm_persistence.py export-full --team X |
| Prepare first sync | python3 scripts/notion_sync.py sync --team X --hub-id ID |
tasks.json contains discrete tasks with clear ownership and dependency ordering--from attributionaddBlockedBy predecessors are incompleteswarm_persistence.py export-full produces a complete session export; first-run notion_sync.py sync emits only hub creation, and the second run emits child operations containing the saved concrete hub IDreference.mdreference.md (opens in a new tab)references/message-protocol.md (opens in a new tab)references/notion-persistence.md (opens in a new tab)references/roles.md (opens in a new tab)scripts/channel.py (opens in a new tab)scripts/notion_persistence.py (opens in a new tab)scripts/notion_sync.py (opens in a new tab)scripts/swarm_persistence.py (opens in a new tab)tests/test_runtime_contracts.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub dmaynor/dmaynor-skills-marketplace --plugin swarm-orchestration