hive-mind
What it does
This skill explains how to set up a team of agents with a leader and different ways of reaching agreement. It is for people who need reliable coordination when work is spread across many agents.
When to use it
- ✓When a task is too big or risky for one agent to handle alone.
- ✓When the team must keep working even if one agent fails.
- ✓When the group needs to agree on important decisions together.
Skill link
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/hive-mind/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Set up a coordinated team of agents with a leader that uses majority agreement for important decisions.”
5 new skills a week. 1 minute to read.
How it works
The agent starts a team with a chosen layout and agreement method, spawns a leader, and checks the consensus status and active sessions.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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 |
Dynamic based on load | Auto-scaling |
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
FAQ
What agreement methods are supported?
The skill lists byzantine, raft, gossip, crdt and quorum strategies.
Which layout should I pick?
The skill suggests hierarchical for coding tasks and mesh for research, with a hybrid for complex work.
Should I use it for small jobs?
No. The skill says to skip it for simple or single-agent tasks.
Details
Original description by the author
Byzantine 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.
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1532
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.