π Swarm Coordination
/docs/getting-into-the-flow/swarm-coordination
Agents organize into swarms led by queens that coordinate work, prevent drift, and reach consensus on decisionsβeven when some agents fail.
| Layer | Components | What It Does |
|---|---|---|
| Coordination | Queen, Swarm, Consensus | Manages agent teams (Raft, Byzantine, Gossip) |
| Drift Control | Hierarchical topology, Checkpoints | Prevents agents from going off-task |
| Hive Mind | Queen-led hierarchy, Collective memory | Strategic/tactical/adaptive queens coordinate workers |
| Consensus | Byzantine, Weighted, Majority | Fault-tolerant decisions (2/3 majority for BFT) |
Hive Mind Capabilities:
- π Queen Types: Strategic (planning), Tactical (execution), Adaptive (optimization)
- π· 8 Worker Types: Researcher, Coder, Analyst, Tester, Architect, Reviewer, Optimizer, Documenter
- π³οΈ 3 Consensus Algorithms: Majority, Weighted (Queen 3x), Byzantine (f < n/3)
- π§ Collective Memory: Shared knowledge, LRU cache, SQLite persistence with WAL
- β‘ Performance: Fast batch spawning with parallel agent coordination