ruvnet avatar

Hive Mind

This is Byzantine fault-tolerant consensus for coordinating multiple Claude instances. You get five consensus strategies (Byzantine, Raft, gossip, CRDT, quorum) and four topologies, from hierarchical queen-worker setups to full mesh networks. The hierarchical mode is explicitly designed to prevent drift during coding tasks, which is the honest reason you'd reach for this instead of just spawning agents manually. Best kept under 8 agents for practical coordination. It's overkill for solo work, but if you're actually running distributed multi-agent operations that need fault tolerance, the Raft consensus with hierarchical-mesh topology is where you'd start.

skills.sh installs
1.1K
GitHub stars
81.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add ruvnet/ruflo --skill hive-mind --agent claude-code

Installs into .claude/skills of the current project.

Files

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

TopologyDescriptionUse Case
hierarchicalQueen controls workersDefault, anti-drift
meshFully connected peersResearch, exploration
hierarchical-meshHybridRecommended for complex
adaptiveDynamic based on loadAuto-scaling

Consensus Strategies

StrategyToleranceUse Case
byzantinef < n/3 faultyUntrusted environment
raftf < n/2 faultyLeader-based, consistent
gossipEventualLarge scale, availability
crdtConflict-freeConcurrent updates
quorumConfigurableTunable 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

Sponsors

Details

Repository
github.com/ruvnet/ruflo
Categories
AI & Agent Building, Productivity & Planning
First seen
Jun 3, 2026

More from ruvnet/ruflo

All 236
1ruvnet avatarclaimsruvnet/rufloClaims-based authorization for agents and operations. Grant, revoke, and verify permissions for secure multi-agent coordination. Use when: permission management1.1Kskills.sh installs
2microsoft avatarmarkdown-token-optimizermicrosoft/github-copilot-for-azureAnalyzes markdown files for token efficiency. TRIGGERS: optimize markdown, reduce tokens, token count, token bloat, too many tokens, make concise, shrink file, 1.1Kskills.sh installs
3modelcontextprotocol avatarmigrate-oai-appmodelcontextprotocol/ext-appsThis skill should be used when the user asks to "migrate from OpenAI Apps SDK", "convert OpenAI App to MCP", "port from window.openai", "migrate from skybridge"1.1Kskills.sh installs
4maplibre avatarmaplibre-tile-sourcesmaplibre/maplibre-agent-skillsHow to choose and configure data sources for MapLibre GL JS — rendering your own data without tiles, hosted tile services, serverless PMTiles, self-hosted tile 1.1Kskills.sh installs
5inference-sh avatarpython-sdkinference-sh/skillsPython SDK for inference.sh - run AI apps, build agents, and integrate with all models. Package: inferencesh (pip install inferencesh). Supports sync/async, str1.1Kskills.sh installs
6denissergeevitch avataragents-best-practicesdenissergeevitch/agents-best-practicesUse this skill when designing, generating an MVP blueprint for, auditing, refactoring, or explaining an agentic harness for any domain. Covers provider-neutral 1.1Kskills.sh installs