Skip to content

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.ts

What It Does

  1. Defines four agent roles (planner, coder, reviewer, tester)
  2. Spawns them in a hierarchical mesh topology
  3. Coordinates work through shared SptDB memory
  4. Demonstrates task decomposition and result aggregation

Released under the MIT License.