Swarm: Multi-Agent Deployment
A full swarm deployment example with hierarchical topology, four agent types, and memory coordination.
Source: examples/swarm/multi-agent-deployment.ts
Usage
bash
# Requires tsx and ANTHROPIC_API_KEY
npx tsx examples/swarm/multi-agent-deployment.tsWhat It Does
- Defines four agent roles (planner, coder, reviewer, tester)
- Spawns them in a hierarchical mesh topology
- Coordinates work through shared SptDB memory
- Demonstrates task decomposition and result aggregation