Skip to main contentByzantine fault-tolerant consensus and distributed coordination. Queen-led hierarchical swarm management with multiple consensus strategies.
Use when: distributed coordination, fault-tolerant operations, multi-agent consensus, collective decision making.
Skip when: single-agent tasks, simple operations, local-only work.
npxskills add ruvnet/claude-flow--skill hive-mind
claude-codeswarmagentic-aiagentic-engineeringagentic-frameworkagentic-rag
Hive-Mind Skill
Purpose
Byzantine fault-tolerant consensus and distributed swarm coordination.
When to Trigger
- Multi-agent distributed tasks
- Fault-tolerant operations needed
- Collective decision making
- Complex coordination patterns
Topologies
| Topology | Description | Use Case |
|---|
hierarchical | Queen controls workers | Default, anti-drift |
mesh | Fully connected peers | Research, exploration |
hierarchical-mesh | Hybrid | Recommended for complex |
adaptive |
Consensus Strategies
| Strategy | Tolerance | Use Case |
|---|
byzantine | f < n/3 faulty | Untrusted environment |
raft | f < n/2 faulty | Leader-based, consistent |
gossip | Eventual | Large scale, availability |
crdt | Conflict-free | Concurrent updates |
quorum | Configurable | Tunable consistency |
Commands
Initialize Hive-Mind
npx claude-flow hive-mind init --topology hierarchical-mesh --consensus raft
Spawn Queen
npx claude-flow hive-mind spawn --role queen --name coordinator
Check Consensus Status
npx claude-flow hive-mind consensus --status
View Sessions
npx claude-flow hive-mind sessions --active
Best Practices
- Use hierarchical for coding tasks (anti-drift)
- Use raft consensus for consistency
- Keep agent count under 8 for coordination
- Run frequent checkpoints
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).