๐ Hive Mind
/docs/core-features/hive-mind
The Hive Mind system implements queen-led hierarchical coordination where strategic queen agents direct specialized workers through collective decision-making and shared memory.
Queen Types:
| Queen Type | Best For | Strategy |
|---|---|---|
| Strategic | Research, planning, analysis | High-level objective coordination |
| Tactical | Implementation, execution | Direct task management |
| Adaptive | Optimization, dynamic tasks | Real-time strategy adjustment |
Worker Specializations (8 types):
researcher, coder, analyst, tester, architect, reviewer, optimizer, documenter
Consensus Mechanisms:
| Algorithm | Voting | Fault Tolerance | Best For |
|---|---|---|---|
| Majority | Simple democratic | None | Quick decisions |
| Weighted | Queen 3x weight | None | Strategic guidance |
| Byzantine | 2/3 supermajority | f < n/3 faulty | Critical decisions |
Collective Memory Types:
knowledge(permanent),context(1h TTL),task(30min TTL),result(permanent)error(24h TTL),metric(1h TTL),consensus(permanent),system(permanent)
CLI Commands:
bashnpx ruflo hive-mind init # Initialize hive mind npx ruflo hive-mind spawn "Build API" # Spawn with objective npx ruflo hive-mind spawn "..." --queen-type strategic --consensus byzantine npx ruflo hive-mind status # Check status npx ruflo hive-mind metrics # Performance metrics npx ruflo hive-mind memory # Collective memory stats npx ruflo hive-mind sessions # List active sessions
Performance: Fast batch spawning with parallel agent coordination