@monoes/monomindcli 2.9.4 → 2.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/mastermind/approvev1.md +94 -0
- package/.claude/commands/mastermind/architect.md +52 -0
- package/.claude/commands/mastermind/autodev.md +28 -0
- package/.claude/commands/mastermind/build.md +23 -0
- package/.claude/commands/mastermind/finish.md +17 -0
- package/.claude/commands/mastermind/runorgv1.md +159 -0
- package/.claude/commands/mastermind/taskdev.md +23 -0
- package/.claude/commands/mastermind/tdd.md +19 -0
- package/.claude/commands/mastermind/verify.md +19 -0
- package/.claude/helpers/intelligence.cjs +6 -27
- package/.claude/skills/agentic-jujutsu/SKILL.md +15 -17
- package/.claude/skills/hive-mind-advanced/SKILL.md +559 -212
- package/.claude/skills/hooks-automation/SKILL.md +1 -1
- package/.claude/skills/mastermind-approvev1/SKILL.md +191 -0
- package/.claude/skills/mastermind-architect/SKILL.md +862 -0
- package/.claude/skills/mastermind-autodev/SKILL.md +360 -0
- package/.claude/skills/mastermind-build/SKILL.md +169 -0
- package/.claude/skills/mastermind-companies/SKILL.md +256 -0
- package/.claude/skills/mastermind-content/SKILL.md +197 -0
- package/.claude/skills/mastermind-costs/SKILL.md +151 -0
- package/.claude/skills/mastermind-finance/SKILL.md +166 -0
- package/.claude/skills/mastermind-finish/SKILL.md +251 -0
- package/.claude/skills/mastermind-heartbeatv1/SKILL.md +167 -0
- package/.claude/skills/mastermind-instance-settings/SKILL.md +315 -0
- package/.claude/skills/mastermind-marketing/SKILL.md +228 -0
- package/.claude/skills/mastermind-marketing/references/copywriting-frameworks.md +181 -0
- package/.claude/skills/mastermind-marketing/references/persuasion-psychology.md +158 -0
- package/.claude/skills/mastermind-ops/SKILL.md +168 -0
- package/.claude/skills/mastermind-org-chart/SKILL.md +209 -0
- package/.claude/skills/mastermind-project-detail/SKILL.md +249 -0
- package/.claude/skills/mastermind-project-workspace/SKILL.md +244 -0
- package/.claude/skills/mastermind-projects/SKILL.md +167 -0
- package/.claude/skills/mastermind-runorgv1/SKILL.md +731 -0
- package/.claude/skills/mastermind-sales/SKILL.md +170 -0
- package/.claude/skills/mastermind-taskdev/SKILL.md +377 -0
- package/.claude/skills/mastermind-taskdev/code-quality-reviewer-prompt.md +60 -0
- package/.claude/skills/mastermind-taskdev/final-reviewer-prompt.md +144 -0
- package/.claude/skills/mastermind-taskdev/implementer-prompt.md +114 -0
- package/.claude/skills/mastermind-taskdev/spec-reviewer-prompt.md +80 -0
- package/.claude/skills/mastermind-tdd/SKILL.md +424 -0
- package/.claude/skills/mastermind-verify/SKILL.md +196 -0
- package/.claude/skills/mastermind-wiki/SKILL.md +314 -0
- package/.claude/skills/monolean-review/SKILL.md +57 -0
- package/.claude/skills/pair-programming/SKILL.md +1 -1
- package/.claude/skills/performance-analysis/SKILL.md +484 -228
- package/.claude/skills/swarm-advanced/SKILL.md +2 -2
- package/.claude/skills/swarm-orchestration/SKILL.md +150 -220
- package/.claude/skills/verification-quality/SKILL.md +571 -247
- package/README.md +3 -3
- package/dist/src/commands/agent-lifecycle.js +3 -3
- package/dist/src/commands/agent-lifecycle.js.map +1 -1
- package/dist/src/commands/autopilot.d.ts.map +1 -1
- package/dist/src/commands/autopilot.js +1 -7
- package/dist/src/commands/autopilot.js.map +1 -1
- package/dist/src/commands/doc.d.ts.map +1 -1
- package/dist/src/commands/doc.js +3 -14
- package/dist/src/commands/doc.js.map +1 -1
- package/dist/src/commands/doctor-env-checks.d.ts +1 -1
- package/dist/src/commands/doctor-env-checks.d.ts.map +1 -1
- package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
- package/dist/src/commands/doctor-project-checks.js +37 -3
- package/dist/src/commands/doctor-project-checks.js.map +1 -1
- package/dist/src/commands/doctor.d.ts.map +1 -1
- package/dist/src/commands/doctor.js +1 -30
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/hooks-coverage-commands.d.ts.map +1 -1
- package/dist/src/commands/hooks-coverage-commands.js +67 -75
- package/dist/src/commands/hooks-coverage-commands.js.map +1 -1
- package/dist/src/commands/hooks-workers.d.ts.map +1 -1
- package/dist/src/commands/hooks-workers.js +10 -41
- package/dist/src/commands/hooks-workers.js.map +1 -1
- package/dist/src/commands/hooks.js +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +7 -80
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/mcp.d.ts.map +1 -1
- package/dist/src/commands/mcp.js +2 -78
- package/dist/src/commands/mcp.js.map +1 -1
- package/dist/src/commands/org.d.ts.map +1 -1
- package/dist/src/commands/org.js +3 -116
- package/dist/src/commands/org.js.map +1 -1
- package/dist/src/commands/performance.js +1 -1
- package/dist/src/commands/performance.js.map +1 -1
- package/dist/src/commands/security-cve.d.ts.map +1 -1
- package/dist/src/commands/security-cve.js +11 -1
- package/dist/src/commands/security-cve.js.map +1 -1
- package/dist/src/commands/security-misc.d.ts +9 -0
- package/dist/src/commands/security-misc.d.ts.map +1 -1
- package/dist/src/commands/security-misc.js +54 -33
- package/dist/src/commands/security-misc.js.map +1 -1
- package/dist/src/commands/security-scan.d.ts.map +1 -1
- package/dist/src/commands/security-scan.js +11 -3
- package/dist/src/commands/security-scan.js.map +1 -1
- package/dist/src/commands/swarm.d.ts.map +1 -1
- package/dist/src/commands/swarm.js +2 -7
- package/dist/src/commands/swarm.js.map +1 -1
- package/dist/src/init/claudemd-generator.js +1 -1
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +3 -13
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/kimi-generator.d.ts +2 -3
- package/dist/src/init/kimi-generator.d.ts.map +1 -1
- package/dist/src/init/kimi-generator.js +13 -45
- package/dist/src/init/kimi-generator.js.map +1 -1
- package/dist/src/init/statusline-generator.d.ts +1 -1
- package/dist/src/init/statusline-generator.js +1 -1
- package/dist/src/mcp-tools/embeddings-tools.js +2 -2
- package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-intelligence.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-intelligence.js +3 -29
- package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -1
- package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-routing.js +19 -32
- package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
- package/dist/src/mcp-tools/monograph/query-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph/query-tools.js +18 -48
- package/dist/src/mcp-tools/monograph/query-tools.js.map +1 -1
- package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/performance-tools.js +10 -15
- package/dist/src/mcp-tools/performance-tools.js.map +1 -1
- package/dist/src/memory/embedding-operations.d.ts +0 -4
- package/dist/src/memory/embedding-operations.d.ts.map +1 -1
- package/dist/src/memory/embedding-operations.js +32 -125
- package/dist/src/memory/embedding-operations.js.map +1 -1
- package/dist/src/memory/hnsw-operations.d.ts +1 -1
- package/dist/src/memory/hnsw-operations.js +1 -1
- package/dist/src/memory/memory-read.d.ts +1 -1
- package/dist/src/memory/memory-read.js +2 -2
- package/dist/src/memory/memory-read.js.map +1 -1
- package/dist/src/monovector/diff-classifier.js +3 -3
- package/dist/src/monovector/diff-classifier.js.map +1 -1
- package/dist/src/orgrt/checkpoint-ops.d.ts +1 -11
- package/dist/src/orgrt/checkpoint-ops.d.ts.map +1 -1
- package/dist/src/orgrt/checkpoint-ops.js +1 -15
- package/dist/src/orgrt/checkpoint-ops.js.map +1 -1
- package/dist/src/orgrt/checkpoint.js +1 -1
- package/dist/src/orgrt/checkpoint.js.map +1 -1
- package/dist/src/orgrt/daemon.d.ts +0 -6
- package/dist/src/orgrt/daemon.d.ts.map +1 -1
- package/dist/src/orgrt/daemon.js +0 -26
- package/dist/src/orgrt/daemon.js.map +1 -1
- package/dist/src/orgrt/decisions.d.ts +0 -13
- package/dist/src/orgrt/decisions.d.ts.map +1 -1
- package/dist/src/orgrt/decisions.js +0 -95
- package/dist/src/orgrt/decisions.js.map +1 -1
- package/dist/src/orgrt/kimicode-runner.js +1 -1
- package/dist/src/orgrt/kimicode-runner.js.map +1 -1
- package/dist/src/orgrt/opencode-runner.js +1 -1
- package/dist/src/orgrt/opencode-runner.js.map +1 -1
- package/dist/src/orgrt/session.d.ts +1 -27
- package/dist/src/orgrt/session.d.ts.map +1 -1
- package/dist/src/orgrt/session.js +3 -42
- package/dist/src/orgrt/session.js.map +1 -1
- package/dist/src/orgrt/task-dag.d.ts +1 -11
- package/dist/src/orgrt/task-dag.d.ts.map +1 -1
- package/dist/src/orgrt/task-dag.js +2 -93
- package/dist/src/orgrt/task-dag.js.map +1 -1
- package/dist/src/orgrt/templates.d.ts.map +1 -1
- package/dist/src/orgrt/templates.js +0 -24
- package/dist/src/orgrt/templates.js.map +1 -1
- package/dist/src/orgrt/types.d.ts +1 -70
- package/dist/src/orgrt/types.d.ts.map +1 -1
- package/dist/src/orgrt/types.js +0 -19
- package/dist/src/orgrt/types.js.map +1 -1
- package/dist/src/orgrt/vercel-providers.d.ts.map +1 -1
- package/dist/src/orgrt/vercel-providers.js +4 -9
- package/dist/src/orgrt/vercel-providers.js.map +1 -1
- package/dist/src/orgrt/vercel-runner.d.ts +23 -0
- package/dist/src/orgrt/vercel-runner.d.ts.map +1 -1
- package/dist/src/orgrt/vercel-runner.js +1 -26
- package/dist/src/orgrt/vercel-runner.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -6,342 +6,689 @@ description: |
|
|
|
6
6
|
|
|
7
7
|
# Hive Mind Advanced Skill
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Master the advanced Hive Mind collective intelligence system for sophisticated multi-agent coordination using queen-led architecture, Byzantine consensus, and collective memory.
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Overview
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
The Hive Mind system represents the pinnacle of multi-agent coordination in Monomind, implementing a queen-led hierarchical architecture where a strategic queen coordinator directs specialized worker agents through collective decision-making and shared memory.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
## Core Concepts
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
### Architecture Patterns
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
**Queen-Led Coordination**
|
|
20
|
+
- Strategic queen agents orchestrate high-level objectives
|
|
21
|
+
- Tactical queens manage mid-level execution
|
|
22
|
+
- Adaptive queens dynamically adjust strategies based on performance
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
**Worker Specialization**
|
|
25
|
+
- Researcher agents: Analysis and investigation
|
|
26
|
+
- Coder agents: Implementation and development
|
|
27
|
+
- Analyst agents: Data processing and metrics
|
|
28
|
+
- Tester agents: Quality assurance and validation
|
|
29
|
+
- Architect agents: System design and planning
|
|
30
|
+
- Reviewer agents: Code review and improvement
|
|
31
|
+
- Optimizer agents: Performance enhancement
|
|
32
|
+
- Documenter agents: Documentation generation
|
|
22
33
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
34
|
+
**Collective Memory System**
|
|
35
|
+
- Shared knowledge base across all agents
|
|
36
|
+
- LRU cache with memory pressure handling
|
|
37
|
+
- SQLite persistence with WAL mode
|
|
38
|
+
- Memory consolidation and association
|
|
39
|
+
- Access pattern tracking and optimization
|
|
26
40
|
|
|
27
|
-
|
|
41
|
+
### Consensus Mechanisms
|
|
28
42
|
|
|
29
|
-
|
|
43
|
+
**Majority Consensus**
|
|
44
|
+
Simple voting where the option with most votes wins.
|
|
30
45
|
|
|
31
|
-
|
|
46
|
+
**Weighted Consensus**
|
|
47
|
+
Queen vote counts as 3x weight, providing strategic guidance.
|
|
32
48
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- **Specialist** — worker with a defined specialty.
|
|
36
|
-
- **Scout** — worker role for exploration / information gathering.
|
|
49
|
+
**Byzantine Fault Tolerance**
|
|
50
|
+
Requires 2/3 majority for decision approval, ensuring robust consensus even with faulty agents.
|
|
37
51
|
|
|
38
|
-
|
|
52
|
+
## Getting Started
|
|
39
53
|
|
|
40
|
-
|
|
54
|
+
### 1. Initialize Hive Mind
|
|
41
55
|
|
|
42
|
-
|
|
56
|
+
```bash
|
|
57
|
+
# Basic initialization
|
|
58
|
+
npx monomind hive-mind init
|
|
43
59
|
|
|
44
|
-
|
|
60
|
+
# Force reinitialize
|
|
61
|
+
npx monomind hive-mind init --force
|
|
45
62
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
| `raft` | `floor(n/2) + 1` (majority) | `f < n/2` | One pending proposal per `term`. Re-proposal timeout defaults to 30s. No leader election. |
|
|
50
|
-
| `quorum` | Configurable preset | depends on preset | Presets: `majority`, `supermajority`, `unanimous`. `unanimous` rejects on the first dissent. |
|
|
63
|
+
# Custom configuration
|
|
64
|
+
npx monomind hive-mind init --config hive-config.json
|
|
65
|
+
```
|
|
51
66
|
|
|
52
|
-
|
|
67
|
+
### 2. Spawn a Swarm
|
|
53
68
|
|
|
54
|
-
|
|
69
|
+
```bash
|
|
70
|
+
# Basic spawn with objective
|
|
71
|
+
npx monomind hive-mind spawn "Build microservices architecture"
|
|
55
72
|
|
|
56
|
-
|
|
73
|
+
# Strategic queen type
|
|
74
|
+
npx monomind hive-mind spawn "Research AI patterns" --queen-type strategic
|
|
57
75
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
| Real CLI to register agents, set topology, run an objective | `monomind swarm init/start/status/stop` (real commands) |
|
|
61
|
-
| Threshold-vote a decision and keep an audit trail | `mcp__monomind__hive-mind_*` (this skill) |
|
|
62
|
-
| Both at once | Initialize a swarm for execution **and** a hive-mind for the decision record |
|
|
76
|
+
# Tactical queen with max workers
|
|
77
|
+
npx monomind hive-mind spawn "Implement API" --queen-type tactical --max-workers 12
|
|
63
78
|
|
|
64
|
-
|
|
79
|
+
# Adaptive queen with consensus
|
|
80
|
+
npx monomind hive-mind spawn "Optimize system" --queen-type adaptive --consensus byzantine
|
|
65
81
|
|
|
66
|
-
|
|
82
|
+
# Generate Claude Code commands
|
|
83
|
+
npx monomind hive-mind spawn "Build full-stack app" --claude
|
|
84
|
+
```
|
|
67
85
|
|
|
68
|
-
|
|
86
|
+
### 3. Monitor Status
|
|
69
87
|
|
|
70
|
-
|
|
88
|
+
```bash
|
|
89
|
+
# Check hive mind status
|
|
90
|
+
npx monomind hive-mind status
|
|
71
91
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
maxAgents: 15, // default: 15
|
|
78
|
-
persist: true,
|
|
79
|
-
memoryBackend: "hybrid"
|
|
80
|
-
}
|
|
92
|
+
# Get detailed metrics
|
|
93
|
+
npx monomind hive-mind metrics
|
|
94
|
+
|
|
95
|
+
# Monitor collective memory
|
|
96
|
+
npx monomind hive-mind memory
|
|
81
97
|
```
|
|
82
98
|
|
|
83
|
-
|
|
99
|
+
## Advanced Workflows
|
|
84
100
|
|
|
85
|
-
|
|
86
|
-
mcp__monomind__hive-mind_spawn {
|
|
87
|
-
count: 1, // 1-20 per call
|
|
88
|
-
role: "worker" | "specialist" | "scout", // default: worker
|
|
89
|
-
agentType: "worker", // recorded on agent record
|
|
90
|
-
prefix: "hive-worker" // agent-id prefix
|
|
91
|
-
}
|
|
92
|
-
```
|
|
101
|
+
### Session Management
|
|
93
102
|
|
|
94
|
-
|
|
103
|
+
**Create and Manage Sessions**
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# List active sessions
|
|
107
|
+
npx monomind hive-mind sessions
|
|
95
108
|
|
|
109
|
+
# Pause a session
|
|
110
|
+
npx monomind hive-mind pause <session-id>
|
|
111
|
+
|
|
112
|
+
# Resume a paused session
|
|
113
|
+
npx monomind hive-mind resume <session-id>
|
|
114
|
+
|
|
115
|
+
# Stop a running session
|
|
116
|
+
npx monomind hive-mind stop <session-id>
|
|
96
117
|
```
|
|
97
|
-
|
|
98
|
-
|
|
118
|
+
|
|
119
|
+
**Session Features**
|
|
120
|
+
- Automatic checkpoint creation
|
|
121
|
+
- Progress tracking with completion percentages
|
|
122
|
+
- Parent-child process management
|
|
123
|
+
- Session logs with event tracking
|
|
124
|
+
- Export/import capabilities
|
|
125
|
+
|
|
126
|
+
### Consensus Building
|
|
127
|
+
|
|
128
|
+
The Hive Mind builds consensus through structured voting:
|
|
129
|
+
|
|
130
|
+
```javascript
|
|
131
|
+
// Programmatic consensus building
|
|
132
|
+
const decision = await hiveMind.buildConsensus(
|
|
133
|
+
'Architecture pattern selection',
|
|
134
|
+
['microservices', 'monolith', 'serverless']
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
// Result includes:
|
|
138
|
+
// - decision: Winning option
|
|
139
|
+
// - confidence: Vote percentage
|
|
140
|
+
// - votes: Individual agent votes
|
|
99
141
|
```
|
|
100
142
|
|
|
101
|
-
|
|
143
|
+
**Consensus Algorithms**
|
|
144
|
+
|
|
145
|
+
1. **Majority** - Simple democratic voting
|
|
146
|
+
2. **Weighted** - Queen has 3x voting power
|
|
147
|
+
3. **Byzantine** - 2/3 supermajority required
|
|
148
|
+
|
|
149
|
+
### Collective Memory
|
|
102
150
|
|
|
151
|
+
**Storing Knowledge**
|
|
152
|
+
|
|
153
|
+
```javascript
|
|
154
|
+
// Store in collective memory
|
|
155
|
+
await memory.store('api-patterns', {
|
|
156
|
+
rest: { pros: [...], cons: [...] },
|
|
157
|
+
graphql: { pros: [...], cons: [...] }
|
|
158
|
+
}, 'knowledge', { confidence: 0.95 });
|
|
103
159
|
```
|
|
104
|
-
|
|
160
|
+
|
|
161
|
+
**Memory Types**
|
|
162
|
+
- `knowledge`: Permanent insights (no TTL)
|
|
163
|
+
- `context`: Session context (1 hour TTL)
|
|
164
|
+
- `task`: Task-specific data (30 min TTL)
|
|
165
|
+
- `result`: Execution results (permanent, compressed)
|
|
166
|
+
- `error`: Error logs (24 hour TTL)
|
|
167
|
+
- `metric`: Performance metrics (1 hour TTL)
|
|
168
|
+
- `consensus`: Decision records (permanent)
|
|
169
|
+
- `system`: System configuration (permanent)
|
|
170
|
+
|
|
171
|
+
**Searching and Retrieval**
|
|
172
|
+
|
|
173
|
+
```javascript
|
|
174
|
+
// Search memory by pattern
|
|
175
|
+
const results = await memory.search('api*', {
|
|
176
|
+
type: 'knowledge',
|
|
177
|
+
minConfidence: 0.8,
|
|
178
|
+
limit: 50
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
// Get related memories
|
|
182
|
+
const related = await memory.getRelated('api-patterns', 10);
|
|
183
|
+
|
|
184
|
+
// Build associations
|
|
185
|
+
await memory.associate('rest-api', 'authentication', 0.9);
|
|
105
186
|
```
|
|
106
187
|
|
|
107
|
-
|
|
188
|
+
### Task Distribution
|
|
108
189
|
|
|
109
|
-
|
|
190
|
+
**Automatic Worker Assignment**
|
|
110
191
|
|
|
192
|
+
The system intelligently assigns tasks based on:
|
|
193
|
+
- Keyword matching with agent specialization
|
|
194
|
+
- Historical performance metrics
|
|
195
|
+
- Worker availability and load
|
|
196
|
+
- Task complexity analysis
|
|
197
|
+
|
|
198
|
+
```javascript
|
|
199
|
+
// Create task (auto-assigned)
|
|
200
|
+
const task = await hiveMind.createTask(
|
|
201
|
+
'Implement user authentication',
|
|
202
|
+
priority: 8,
|
|
203
|
+
{ estimatedDuration: 30000 }
|
|
204
|
+
);
|
|
111
205
|
```
|
|
112
|
-
|
|
206
|
+
|
|
207
|
+
**Auto-Scaling**
|
|
208
|
+
|
|
209
|
+
```javascript
|
|
210
|
+
// Configure auto-scaling
|
|
211
|
+
const config = {
|
|
212
|
+
autoScale: true,
|
|
213
|
+
maxWorkers: 12,
|
|
214
|
+
scaleUpThreshold: 2, // Pending tasks per idle worker
|
|
215
|
+
scaleDownThreshold: 2 // Idle workers above pending tasks
|
|
216
|
+
};
|
|
113
217
|
```
|
|
114
218
|
|
|
115
|
-
|
|
219
|
+
## Integration Patterns
|
|
220
|
+
|
|
221
|
+
### With Claude Code
|
|
222
|
+
|
|
223
|
+
Generate Claude Code spawn commands directly:
|
|
116
224
|
|
|
225
|
+
```bash
|
|
226
|
+
npx monomind hive-mind spawn "Build REST API" --claude
|
|
117
227
|
```
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
228
|
+
|
|
229
|
+
Output:
|
|
230
|
+
```javascript
|
|
231
|
+
Task("Queen Coordinator", "Orchestrate REST API development...", "coordinator")
|
|
232
|
+
Task("Backend Developer", "Implement Express routes...", "backend-dev")
|
|
233
|
+
Task("Database Architect", "Design PostgreSQL schema...", "code-analyzer")
|
|
234
|
+
Task("Test Engineer", "Create Jest test suite...", "tester")
|
|
123
235
|
```
|
|
124
236
|
|
|
125
|
-
|
|
237
|
+
### With GitHub Integration
|
|
126
238
|
|
|
239
|
+
```bash
|
|
240
|
+
# Repository analysis with hive mind
|
|
241
|
+
npx monomind hive-mind spawn "Analyze repo quality" --objective "owner/repo"
|
|
242
|
+
|
|
243
|
+
# PR review coordination
|
|
244
|
+
npx monomind hive-mind spawn "Review PR #123" --queen-type tactical
|
|
127
245
|
```
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
246
|
+
|
|
247
|
+
## Performance Optimization
|
|
248
|
+
|
|
249
|
+
### Memory Optimization
|
|
250
|
+
|
|
251
|
+
The collective memory system includes advanced optimizations:
|
|
252
|
+
|
|
253
|
+
**LRU Cache**
|
|
254
|
+
- Configurable cache size (default: 1000 entries)
|
|
255
|
+
- Memory pressure handling (default: 50MB)
|
|
256
|
+
- Automatic eviction of least-used entries
|
|
257
|
+
|
|
258
|
+
**Database Optimization**
|
|
259
|
+
- WAL (Write-Ahead Logging) mode
|
|
260
|
+
- 64MB cache size
|
|
261
|
+
- 256MB memory mapping
|
|
262
|
+
- Prepared statements for common queries
|
|
263
|
+
- Automatic ANALYZE and OPTIMIZE
|
|
264
|
+
|
|
265
|
+
**Object Pooling**
|
|
266
|
+
- Query result pooling
|
|
267
|
+
- Memory entry pooling
|
|
268
|
+
- Reduced garbage collection pressure
|
|
269
|
+
|
|
270
|
+
### Performance Metrics
|
|
271
|
+
|
|
272
|
+
```javascript
|
|
273
|
+
// Get performance insights
|
|
274
|
+
const insights = hiveMind.getPerformanceInsights();
|
|
275
|
+
|
|
276
|
+
// Includes:
|
|
277
|
+
// - asyncQueue utilization
|
|
278
|
+
// - Batch processing stats
|
|
279
|
+
// - Success rates
|
|
280
|
+
// - Average processing times
|
|
281
|
+
// - Memory efficiency
|
|
133
282
|
```
|
|
134
283
|
|
|
135
|
-
|
|
284
|
+
### Task Execution
|
|
136
285
|
|
|
137
|
-
|
|
286
|
+
**Parallel Processing**
|
|
287
|
+
- Batch agent spawning (5 agents per batch)
|
|
288
|
+
- Concurrent task orchestration
|
|
289
|
+
- Async operation optimization
|
|
290
|
+
- Non-blocking task assignment
|
|
291
|
+
|
|
292
|
+
**Benchmarks**
|
|
293
|
+
- 10-20x faster batch spawning
|
|
294
|
+
- 2.8-4.4x speed improvement overall
|
|
295
|
+
- 32.3% token reduction
|
|
296
|
+
- 84.8% SWE-Bench solve rate
|
|
297
|
+
|
|
298
|
+
## Configuration
|
|
138
299
|
|
|
300
|
+
### Hive Mind Config
|
|
301
|
+
|
|
302
|
+
```javascript
|
|
303
|
+
{
|
|
304
|
+
"objective": "Build microservices",
|
|
305
|
+
"name": "my-hive",
|
|
306
|
+
"queenType": "strategic", // strategic | tactical | adaptive
|
|
307
|
+
"maxWorkers": 8,
|
|
308
|
+
"consensusAlgorithm": "byzantine", // majority | weighted | byzantine
|
|
309
|
+
"autoScale": true,
|
|
310
|
+
"memorySize": 100, // MB
|
|
311
|
+
"taskTimeout": 60, // minutes
|
|
312
|
+
"encryption": false
|
|
313
|
+
}
|
|
139
314
|
```
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
proposalId: "<id>",
|
|
153
|
-
vote: true | false
|
|
315
|
+
|
|
316
|
+
### Memory Config
|
|
317
|
+
|
|
318
|
+
```javascript
|
|
319
|
+
{
|
|
320
|
+
"maxSize": 100, // MB
|
|
321
|
+
"compressionThreshold": 1024, // bytes
|
|
322
|
+
"gcInterval": 300000, // 5 minutes
|
|
323
|
+
"cacheSize": 1000,
|
|
324
|
+
"cacheMemoryMB": 50,
|
|
325
|
+
"enablePooling": true,
|
|
326
|
+
"enableAsyncOperations": true
|
|
154
327
|
}
|
|
155
328
|
```
|
|
156
329
|
|
|
157
|
-
|
|
330
|
+
## Hooks Integration
|
|
158
331
|
|
|
159
|
-
|
|
332
|
+
Hive Mind integrates with Monomind hooks for automation:
|
|
160
333
|
|
|
161
|
-
|
|
334
|
+
**Pre-Task Hooks**
|
|
335
|
+
- Auto-assign agents by file type
|
|
336
|
+
- Validate objective complexity
|
|
337
|
+
- Optimize topology selection
|
|
338
|
+
- Cache search patterns
|
|
162
339
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
340
|
+
**Post-Task Hooks**
|
|
341
|
+
- Auto-format deliverables
|
|
342
|
+
- Train neural patterns
|
|
343
|
+
- Update collective memory
|
|
344
|
+
- Analyze performance bottlenecks
|
|
167
345
|
|
|
168
|
-
|
|
346
|
+
**Session Hooks**
|
|
347
|
+
- Generate session summaries
|
|
348
|
+
- Persist checkpoint data
|
|
349
|
+
- Track comprehensive metrics
|
|
350
|
+
- Restore execution context
|
|
169
351
|
|
|
170
|
-
##
|
|
352
|
+
## Best Practices
|
|
171
353
|
|
|
172
|
-
###
|
|
354
|
+
### 1. Choose the Right Queen Type
|
|
173
355
|
|
|
174
|
-
|
|
356
|
+
**Strategic Queens** - For research, planning, and analysis
|
|
357
|
+
```bash
|
|
358
|
+
npx monomind hive-mind spawn "Research ML frameworks" --queen-type strategic
|
|
359
|
+
```
|
|
175
360
|
|
|
361
|
+
**Tactical Queens** - For implementation and execution
|
|
362
|
+
```bash
|
|
363
|
+
npx monomind hive-mind spawn "Build authentication" --queen-type tactical
|
|
176
364
|
```
|
|
177
|
-
# 1. Initialize hive with a known queen and byzantine threshold
|
|
178
|
-
mcp__monomind__hive-mind_init {
|
|
179
|
-
topology: "hierarchical",
|
|
180
|
-
queenId: "architect-1",
|
|
181
|
-
consensus: "byzantine"
|
|
182
|
-
}
|
|
183
365
|
|
|
184
|
-
|
|
185
|
-
|
|
366
|
+
**Adaptive Queens** - For optimization and dynamic tasks
|
|
367
|
+
```bash
|
|
368
|
+
npx monomind hive-mind spawn "Optimize performance" --queen-type adaptive
|
|
369
|
+
```
|
|
186
370
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
371
|
+
### 2. Leverage Consensus
|
|
372
|
+
|
|
373
|
+
Use consensus for critical decisions:
|
|
374
|
+
- Architecture pattern selection
|
|
375
|
+
- Technology stack choices
|
|
376
|
+
- Implementation approach
|
|
377
|
+
- Code review approval
|
|
378
|
+
- Release readiness
|
|
379
|
+
|
|
380
|
+
### 3. Utilize Collective Memory
|
|
381
|
+
|
|
382
|
+
**Store Learnings**
|
|
383
|
+
```javascript
|
|
384
|
+
// After successful pattern implementation
|
|
385
|
+
await memory.store('auth-pattern', {
|
|
386
|
+
approach: 'JWT with refresh tokens',
|
|
387
|
+
pros: ['Stateless', 'Scalable'],
|
|
388
|
+
cons: ['Token size', 'Revocation complexity'],
|
|
389
|
+
implementation: {...}
|
|
390
|
+
}, 'knowledge', { confidence: 0.95 });
|
|
391
|
+
```
|
|
195
392
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
393
|
+
**Build Associations**
|
|
394
|
+
```javascript
|
|
395
|
+
// Link related concepts
|
|
396
|
+
await memory.associate('jwt-auth', 'refresh-tokens', 0.9);
|
|
397
|
+
await memory.associate('jwt-auth', 'oauth2', 0.7);
|
|
398
|
+
```
|
|
201
399
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
400
|
+
### 4. Monitor Performance
|
|
401
|
+
|
|
402
|
+
```bash
|
|
403
|
+
# Regular status checks
|
|
404
|
+
npx monomind hive-mind status
|
|
405
|
+
|
|
406
|
+
# Track metrics
|
|
407
|
+
npx monomind hive-mind metrics
|
|
207
408
|
|
|
208
|
-
#
|
|
209
|
-
|
|
210
|
-
npx monomind@latest swarm init --topology hierarchical --max-agents 6
|
|
211
|
-
npx monomind@latest swarm start --objective "Implement modular monolith per decision-architecture-v1"
|
|
409
|
+
# Analyze memory usage
|
|
410
|
+
npx monomind hive-mind memory
|
|
212
411
|
```
|
|
213
412
|
|
|
214
|
-
###
|
|
413
|
+
### 5. Session Management
|
|
215
414
|
|
|
415
|
+
**Checkpoint Frequently**
|
|
416
|
+
```javascript
|
|
417
|
+
// Create checkpoints at key milestones
|
|
418
|
+
await sessionManager.saveCheckpoint(
|
|
419
|
+
sessionId,
|
|
420
|
+
'api-routes-complete',
|
|
421
|
+
{ completedRoutes: [...], remaining: [...] }
|
|
422
|
+
);
|
|
216
423
|
```
|
|
217
|
-
mcp__monomind__hive-mind_init { topology: "star", queenId: "release-manager", consensus: "raft" }
|
|
218
|
-
mcp__monomind__hive-mind_spawn { count: 3, role: "specialist", agentType: "reviewer" }
|
|
219
424
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
225
|
-
# Reviewers vote; majority of 4 nodes = 3 votes needed
|
|
425
|
+
**Resume Sessions**
|
|
426
|
+
```bash
|
|
427
|
+
# Resume from any previous state
|
|
428
|
+
npx monomind hive-mind resume <session-id>
|
|
226
429
|
```
|
|
227
430
|
|
|
228
|
-
|
|
431
|
+
## Troubleshooting
|
|
432
|
+
|
|
433
|
+
### Memory Issues
|
|
434
|
+
|
|
435
|
+
**High Memory Usage**
|
|
436
|
+
```bash
|
|
437
|
+
# Run garbage collection
|
|
438
|
+
npx monomind hive-mind memory --gc
|
|
229
439
|
|
|
230
|
-
|
|
440
|
+
# Optimize database
|
|
441
|
+
npx monomind hive-mind memory --optimize
|
|
231
442
|
|
|
443
|
+
# Export and clear
|
|
444
|
+
npx monomind hive-mind memory --export --clear
|
|
232
445
|
```
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
446
|
+
|
|
447
|
+
**Low Cache Hit Rate**
|
|
448
|
+
```javascript
|
|
449
|
+
// Increase cache size in config
|
|
450
|
+
{
|
|
451
|
+
"cacheSize": 2000,
|
|
452
|
+
"cacheMemoryMB": 100
|
|
237
453
|
}
|
|
238
|
-
# Any single dissent rejects the proposal immediately.
|
|
239
454
|
```
|
|
240
455
|
|
|
241
|
-
###
|
|
242
|
-
|
|
243
|
-
For loose coordination without a formal vote — skip consensus entirely.
|
|
456
|
+
### Performance Issues
|
|
244
457
|
|
|
458
|
+
**Slow Task Assignment**
|
|
459
|
+
```javascript
|
|
460
|
+
// Enable worker type caching
|
|
461
|
+
// The system caches best worker matches for 5 minutes
|
|
462
|
+
// Automatic - no configuration needed
|
|
245
463
|
```
|
|
246
|
-
mcp__monomind__hive-mind_init { topology: "mesh", queenId: "coord-1", consensus: "raft" }
|
|
247
|
-
mcp__monomind__hive-mind_join { agentId: "agent-a", role: "worker" }
|
|
248
|
-
mcp__monomind__hive-mind_join { agentId: "agent-b", role: "worker" }
|
|
249
464
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
465
|
+
**High Queue Utilization**
|
|
466
|
+
```javascript
|
|
467
|
+
// Increase async queue concurrency
|
|
468
|
+
{
|
|
469
|
+
"asyncQueueConcurrency": 20 // Default: min(maxWorkers * 2, 20)
|
|
470
|
+
}
|
|
253
471
|
```
|
|
254
472
|
|
|
255
|
-
|
|
473
|
+
### Consensus Failures
|
|
256
474
|
|
|
257
|
-
|
|
475
|
+
**No Consensus Reached (Byzantine)**
|
|
476
|
+
```bash
|
|
477
|
+
# Switch to weighted consensus for more decisive results
|
|
478
|
+
npx monomind hive-mind spawn "..." --consensus weighted
|
|
258
479
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
| `topology` | One of `mesh` / `hierarchical` / `ring` / `star` (label only) |
|
|
263
|
-
| `queen` | `{ agentId, electedAt, term }` |
|
|
264
|
-
| `consensusStrategy` | `bft` / `raft` / `quorum` — the default for `hive-mind_consensus` |
|
|
265
|
-
| `workers` | Array of joined agent IDs (≤100) |
|
|
266
|
-
| `sharedMemory` | Free-form key/value object (≤1000 keys) |
|
|
267
|
-
| `consensus.pending` / `consensus.history` | Open and resolved proposals (history capped at 1000) |
|
|
480
|
+
# Or use simple majority
|
|
481
|
+
npx monomind hive-mind spawn "..." --consensus majority
|
|
482
|
+
```
|
|
268
483
|
|
|
269
|
-
|
|
484
|
+
## Advanced Topics
|
|
270
485
|
|
|
271
|
-
|
|
486
|
+
### Custom Worker Types
|
|
272
487
|
|
|
273
|
-
|
|
488
|
+
Define specialized workers in `.claude/agents/`:
|
|
274
489
|
|
|
275
|
-
|
|
276
|
-
-
|
|
277
|
-
|
|
278
|
-
|
|
490
|
+
```yaml
|
|
491
|
+
name: security-auditor
|
|
492
|
+
type: specialist
|
|
493
|
+
capabilities:
|
|
494
|
+
- vulnerability-scanning
|
|
495
|
+
- security-review
|
|
496
|
+
- penetration-testing
|
|
497
|
+
- compliance-checking
|
|
498
|
+
priority: high
|
|
499
|
+
```
|
|
279
500
|
|
|
280
|
-
###
|
|
501
|
+
### Neural Pattern Training
|
|
281
502
|
|
|
282
|
-
|
|
503
|
+
The system trains on successful patterns:
|
|
283
504
|
|
|
284
|
-
|
|
505
|
+
```javascript
|
|
506
|
+
// Automatic pattern learning
|
|
507
|
+
// Happens after successful task completion
|
|
508
|
+
// Stores in collective memory
|
|
509
|
+
// Improves future task matching
|
|
510
|
+
```
|
|
285
511
|
|
|
286
|
-
|
|
512
|
+
### Multi-Hive Coordination
|
|
287
513
|
|
|
288
|
-
|
|
514
|
+
Run multiple hive minds simultaneously:
|
|
289
515
|
|
|
290
|
-
|
|
516
|
+
```bash
|
|
517
|
+
# Frontend hive
|
|
518
|
+
npx monomind hive-mind spawn "Build UI" --name frontend-hive
|
|
291
519
|
|
|
292
|
-
|
|
520
|
+
# Backend hive
|
|
521
|
+
npx monomind hive-mind spawn "Build API" --name backend-hive
|
|
293
522
|
|
|
294
|
-
|
|
523
|
+
# They share collective memory for coordination
|
|
524
|
+
```
|
|
295
525
|
|
|
296
|
-
###
|
|
526
|
+
### Export/Import Sessions
|
|
297
527
|
|
|
298
|
-
|
|
528
|
+
```bash
|
|
529
|
+
# Export session for backup
|
|
530
|
+
npx monomind hive-mind export <session-id> --output backup.json
|
|
299
531
|
|
|
300
|
-
|
|
532
|
+
# Import session
|
|
533
|
+
npx monomind hive-mind import backup.json
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
## API Reference
|
|
537
|
+
|
|
538
|
+
### HiveMindCore
|
|
539
|
+
|
|
540
|
+
```javascript
|
|
541
|
+
const hiveMind = new HiveMindCore({
|
|
542
|
+
objective: 'Build system',
|
|
543
|
+
queenType: 'strategic',
|
|
544
|
+
maxWorkers: 8,
|
|
545
|
+
consensusAlgorithm: 'byzantine'
|
|
546
|
+
});
|
|
547
|
+
|
|
548
|
+
await hiveMind.initialize();
|
|
549
|
+
await hiveMind.spawnQueen(queenData);
|
|
550
|
+
await hiveMind.spawnWorkers(['coder', 'tester']);
|
|
551
|
+
await hiveMind.createTask('Implement feature', 7);
|
|
552
|
+
const decision = await hiveMind.buildConsensus('topic', options);
|
|
553
|
+
const status = hiveMind.getStatus();
|
|
554
|
+
await hiveMind.shutdown();
|
|
555
|
+
```
|
|
301
556
|
|
|
302
|
-
###
|
|
557
|
+
### CollectiveMemory
|
|
558
|
+
|
|
559
|
+
```javascript
|
|
560
|
+
const memory = new CollectiveMemory({
|
|
561
|
+
swarmId: 'hive-123',
|
|
562
|
+
maxSize: 100,
|
|
563
|
+
cacheSize: 1000
|
|
564
|
+
});
|
|
565
|
+
|
|
566
|
+
await memory.store(key, value, type, metadata);
|
|
567
|
+
const data = await memory.retrieve(key);
|
|
568
|
+
const results = await memory.search(pattern, options);
|
|
569
|
+
const related = await memory.getRelated(key, limit);
|
|
570
|
+
await memory.associate(key1, key2, strength);
|
|
571
|
+
const stats = memory.getStatistics();
|
|
572
|
+
const analytics = memory.getAnalytics();
|
|
573
|
+
const health = await memory.healthCheck();
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
### HiveMindSessionManager
|
|
303
577
|
|
|
304
|
-
|
|
578
|
+
```javascript
|
|
579
|
+
const sessionManager = new HiveMindSessionManager();
|
|
305
580
|
|
|
306
|
-
|
|
581
|
+
const sessionId = await sessionManager.createSession(
|
|
582
|
+
swarmId, swarmName, objective, metadata
|
|
583
|
+
);
|
|
307
584
|
|
|
308
|
-
|
|
585
|
+
await sessionManager.saveCheckpoint(sessionId, name, data);
|
|
586
|
+
const sessions = await sessionManager.getActiveSessions();
|
|
587
|
+
const session = await sessionManager.getSession(sessionId);
|
|
588
|
+
await sessionManager.pauseSession(sessionId);
|
|
589
|
+
await sessionManager.resumeSession(sessionId);
|
|
590
|
+
await sessionManager.stopSession(sessionId);
|
|
591
|
+
await sessionManager.completeSession(sessionId);
|
|
592
|
+
```
|
|
309
593
|
|
|
310
|
-
|
|
594
|
+
## Examples
|
|
311
595
|
|
|
312
|
-
|
|
596
|
+
### Full-Stack Development
|
|
313
597
|
|
|
314
|
-
|
|
598
|
+
```bash
|
|
599
|
+
# Initialize hive mind
|
|
600
|
+
npx monomind hive-mind init
|
|
601
|
+
|
|
602
|
+
# Spawn full-stack hive
|
|
603
|
+
npx monomind hive-mind spawn "Build e-commerce platform" \
|
|
604
|
+
--queen-type strategic \
|
|
605
|
+
--max-workers 10 \
|
|
606
|
+
--consensus weighted \
|
|
607
|
+
--claude
|
|
608
|
+
|
|
609
|
+
# Output generates Claude Code commands:
|
|
610
|
+
# - Queen coordinator
|
|
611
|
+
# - Frontend developers (React)
|
|
612
|
+
# - Backend developers (Node.js)
|
|
613
|
+
# - Database architects
|
|
614
|
+
# - DevOps engineers
|
|
615
|
+
# - Security auditors
|
|
616
|
+
# - Test engineers
|
|
617
|
+
# - Documentation specialists
|
|
618
|
+
```
|
|
315
619
|
|
|
316
|
-
|
|
620
|
+
### Research and Analysis
|
|
317
621
|
|
|
318
|
-
|
|
622
|
+
```bash
|
|
623
|
+
# Spawn research hive
|
|
624
|
+
npx monomind hive-mind spawn "Research GraphQL vs REST" \
|
|
625
|
+
--queen-type adaptive \
|
|
626
|
+
--consensus byzantine
|
|
627
|
+
|
|
628
|
+
# Researchers gather data
|
|
629
|
+
# Analysts process findings
|
|
630
|
+
# Queen builds consensus on recommendation
|
|
631
|
+
# Results stored in collective memory
|
|
632
|
+
```
|
|
319
633
|
|
|
320
|
-
|
|
634
|
+
### Code Review
|
|
321
635
|
|
|
322
|
-
|
|
636
|
+
```bash
|
|
637
|
+
# Review coordination
|
|
638
|
+
npx monomind hive-mind spawn "Review PR #456" \
|
|
639
|
+
--queen-type tactical \
|
|
640
|
+
--max-workers 6
|
|
641
|
+
|
|
642
|
+
# Spawns:
|
|
643
|
+
# - Code analyzers
|
|
644
|
+
# - Security reviewers
|
|
645
|
+
# - Performance reviewers
|
|
646
|
+
# - Test coverage analyzers
|
|
647
|
+
# - Documentation reviewers
|
|
648
|
+
# - Consensus on approval/changes
|
|
649
|
+
```
|
|
323
650
|
|
|
324
|
-
|
|
651
|
+
## Skill Progression
|
|
652
|
+
|
|
653
|
+
### Beginner
|
|
654
|
+
1. Initialize hive mind
|
|
655
|
+
2. Spawn basic swarms
|
|
656
|
+
3. Monitor status
|
|
657
|
+
4. Use majority consensus
|
|
658
|
+
|
|
659
|
+
### Intermediate
|
|
660
|
+
1. Configure queen types
|
|
661
|
+
2. Implement session management
|
|
662
|
+
3. Use weighted consensus
|
|
663
|
+
4. Access collective memory
|
|
664
|
+
5. Enable auto-scaling
|
|
665
|
+
|
|
666
|
+
### Advanced
|
|
667
|
+
1. Byzantine fault tolerance
|
|
668
|
+
2. Memory optimization
|
|
669
|
+
3. Custom worker types
|
|
670
|
+
4. Multi-hive coordination
|
|
671
|
+
5. Neural pattern training
|
|
672
|
+
6. Session export/import
|
|
673
|
+
7. Performance tuning
|
|
325
674
|
|
|
326
675
|
## Related Skills
|
|
327
676
|
|
|
328
|
-
- `swarm-orchestration
|
|
329
|
-
- `
|
|
330
|
-
- `
|
|
331
|
-
- `
|
|
677
|
+
- `swarm-orchestration`: Basic swarm coordination
|
|
678
|
+
- `consensus-mechanisms`: Distributed decision making
|
|
679
|
+
- `memory-systems`: Advanced memory management
|
|
680
|
+
- `github-integration`: Repository coordination
|
|
332
681
|
|
|
333
682
|
## References
|
|
334
683
|
|
|
335
|
-
-
|
|
336
|
-
-
|
|
337
|
-
-
|
|
338
|
-
-
|
|
339
|
-
- State file: `.monomind/hive-mind/state.json` (capped at 10 MiB)
|
|
340
|
-
- Audit trail: `.monomind/consensus/` (HMAC-signed JSONL)
|
|
341
|
-
- Concepts doc: `doc/concepts/swarm.md` (Hive-Mind Consensus section)
|
|
684
|
+
- [Hive Mind Documentation](https://github.com/monoes/monomind/docs/hive-mind)
|
|
685
|
+
- [Collective Intelligence Patterns](https://github.com/monoes/monomind/docs/patterns)
|
|
686
|
+
- [Byzantine Consensus](https://github.com/monoes/monomind/docs/consensus)
|
|
687
|
+
- [Memory Optimization](https://github.com/monoes/monomind/docs/memory)
|
|
342
688
|
|
|
343
689
|
---
|
|
344
690
|
|
|
345
|
-
**Skill Version**:
|
|
346
|
-
**Last Updated**:
|
|
691
|
+
**Skill Version**: 1.0.0
|
|
692
|
+
**Last Updated**: 2025-10-19
|
|
347
693
|
**Maintained By**: Monomind Team
|
|
694
|
+
**License**: MIT
|