hive-mind-advanced
БесплатноБез исполняемых скриптовНе проверенAdvanced Hive Mind collective intelligence system for queen-led multi-agent coordination with consensus mechanisms and persistent memory
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Hive Mind Advanced Skill
Master the advanced Hive Mind collective intelligence system for sophisticated multi-agent coordination using queen-led architecture, Byzantine consensus, and collective memory.
CRITICAL: Tool Permissions for Background Agents (SMI-1823)
WARNING: Background agents spawned with Task() can lose tool permissions mid-execution, causing "Permission to use Read has been auto-denied" errors.
ALWAYS specify allowed_tools explicitly in ALL Task() calls:
// CORRECT - Always include allowed_tools
Task({
description: "Implement feature",
prompt: "...",
allowed_tools: ["Read", "Edit", "Write", "Bash", "Grep", "Glob"], // REQUIRED
run_in_background: true
})
// INCORRECT - Will fail with permission errors
Task({
description: "Implement feature",
prompt: "...",
run_in_background: true // Missing allowed_tools!
})
Default Tool Lists by Agent Type
| Agent Type | Default allowed_tools |
|---|---|
coder |
["Read", "Edit", "Write", "Bash", "Grep", "Glob"] |
tester |
["Read", "Bash", "Grep", "Glob"] |
reviewer |
["Read", "Grep", "Glob"] |
researcher |
["Read", "WebFetch", "WebSearch", "Grep", "Glob"] |
architect |
["Read", "Write", "Grep", "Glob"] |
analyst |
["Read", "Grep", "Glob"] |
optimizer |
["Read", "Edit", "Bash", "Grep", "Glob"] |
documenter |
["Read", "Write", "Grep", "Glob"] |
Copy-paste ready tool arrays:
// Coder tools
const CODER_TOOLS = ["Read", "Edit", "Write", "Bash", "Grep", "Glob"];
// Tester tools
const TESTER_TOOLS = ["Read", "Bash", "Grep", "Glob"];
// Reviewer tools
const REVIEWER_TOOLS = ["Read", "Grep", "Glob"];
// Researcher tools
const RESEARCHER_TOOLS = ["Read", "WebFetch", "WebSearch", "Grep", "Glob"];
Overview
The Hive Mind system represents the pinnacle of multi-agent coordination in Claude Flow, implementing a queen-led hierarchical architecture where a strategic queen coordinator directs specialized worker agents through collective decision-making and shared memory.
Core Concepts
Architecture Patterns
Queen-Led Coordination
- Strategic queen agents orchestrate high-level objectives
- Tactical queens manage mid-level execution
- Adaptive queens dynamically adjust strategies based on performance
Worker Specialization
- Researcher agents: Analysis and investigation
- Coder agents: Implementation and development
- Analyst agents: Data processing and metrics
- Tester agents: Quality assurance and validation
- Architect agents: System design and planning
- Reviewer agents: Code review and improvement
- Optimizer agents: Performance enhancement
- Documenter agents: Documentation generation
Collective Memory System
- Shared knowledge base across all agents
- LRU cache with memory pressure handling
- SQLite persistence with WAL mode
- Memory consolidation and association
- Access pattern tracking and optimization
Consensus Mechanisms
Majority Consensus Simple voting where the option with most votes wins.
Weighted Consensus Queen vote counts as 3x weight, providing strategic guidance.
Byzantine Fault Tolerance Requires 2/3 majority for decision approval, ensuring robust consensus even with faulty agents.
Prerequisites (REQUIRED for MCP Integration)
Claude-Flow MCP Server Configuration
For MCP-based agent spawning (recommended), the claude-flow MCP server must be configured:
Option A - Via CLI:
claude mcp add claude-flow -- npx claude-flow@alpha mcp start
Option B - Via .mcp.json (recommended for projects):
{
"mcpServers": {
"claude-flow": {
"command": "npx",
"args": ["claude-flow@alpha", "mcp", "start"],
"env": {
"CLAUDE_FLOW_LOG_LEVEL": "info",
"CLAUDE_FLOW_MEMORY_BACKEND": "sqlite"
}
}
}
}
Verify configuration:
claude mcp list | grep claude-flow
MCP vs CLI Usage
| Method | Command | When to Use |
|---|---|---|
| MCP | mcp__claude-flow__swarm_init() |
Within Claude Code sessions (recommended) |
| CLI | npx claude-flow hive-mind init |
Terminal scripts, CI/CD, standalone |
MCP provides tighter integration with Claude Code's agent system and enables proper specialist agent spawning.
Getting Started
1. Initialize Hive Mind
Via MCP (within Claude Code):
mcp__claude-flow__swarm_init({
topology: "hierarchical",
maxAgents: 4,
queen_model: "sonnet",
worker_model: "haiku"
})
Via CLI (terminal):
# Basic initialization
npx claude-flow hive-mind init
# Force reinitialize
npx claude-flow hive-mind init --force
# Custom configuration
npx claude-flow hive-mind init --config hive-config.json
2. Spawn a Swarm
# Basic spawn with objective
npx claude-flow hive-mind spawn "Build microservices architecture"
# Strategic queen type
npx claude-flow hive-mind spawn "R
Установить hive-mind-advanced в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл hive-mind-advanced?
Advanced Hive Mind collective intelligence system for queen-led multi-agent coordination with consensus mechanisms and persistent memory
Как установить скилл hive-mind-advanced?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hive-mind-advanced запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic