monomind 1.10.56 → 1.11.0
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/agents/core/coordinator.md +71 -0
- package/.claude/agents/generated/case-analyst.md +50 -0
- package/.claude/agents/generated/copy-editor.md +45 -0
- package/.claude/agents/generated/court-reporter.md +50 -0
- package/.claude/agents/generated/defender.md +51 -0
- package/.claude/agents/generated/editor-in-chief.md +45 -0
- package/.claude/agents/generated/fact-checker.md +45 -0
- package/.claude/agents/generated/judge.md +51 -0
- package/.claude/agents/generated/prosecutor.md +51 -0
- package/.claude/agents/generated/reporter.md +45 -0
- package/.claude/commands/hooks/README.md +1 -1
- package/.claude/commands/hooks/overview.md +1 -1
- package/.claude/commands/mastermind/_repeat.md +1 -1
- package/.claude/commands/mastermind/do.md +3 -1
- package/.claude/commands/mastermind/help.md +2 -2
- package/.claude/commands/mastermind/master.md +39 -6
- package/.claude/commands/mastermind/memory.md +1 -1
- package/.claude/commands/memory/memory-search.md +2 -2
- package/.claude/commands/monitoring/status.md +1 -1
- package/.claude/commands/{browse.md → monobrowse.md} +2 -2
- package/.claude/commands/sparc.md +1 -1
- package/.claude/helpers/handlers/graph-status-handler.cjs +1 -1
- package/.claude/helpers/loop-tracker.cjs +1 -1
- package/.claude/scheduled_tasks.lock +1 -1
- package/.claude/skills/agent-browser-testing/SKILL.md +1 -1
- package/.claude/skills/hooks-automation/SKILL.md +0 -3
- package/.claude/skills/mastermind/build.md +1 -1
- package/.claude/skills/mastermind/code-quality-reviewer-prompt.md +60 -0
- package/.claude/skills/mastermind/content.md +1 -1
- package/.claude/skills/mastermind/createorg.md +79 -2
- package/.claude/skills/mastermind/design.md +3 -1
- package/.claude/skills/mastermind/finance.md +1 -1
- package/.claude/skills/mastermind/implementer-prompt.md +109 -0
- package/.claude/skills/mastermind/marketing.md +1 -1
- package/.claude/skills/mastermind/ops.md +1 -1
- package/.claude/skills/mastermind/plan.md +20 -2
- package/.claude/skills/mastermind/release.md +1 -1
- package/.claude/skills/mastermind/research.md +1 -1
- package/.claude/skills/mastermind/review.md +1 -1
- package/.claude/skills/mastermind/sales.md +1 -1
- package/.claude/skills/mastermind/spec-reviewer-prompt.md +63 -0
- package/.claude/skills/sparc-methodology/SKILL.md +3 -3
- package/.claude/skills/swarm-advanced/SKILL.md +1 -4
- package/.claude-plugin/README.md +1 -2
- package/.claude-plugin/docs/PLUGIN_SUMMARY.md +0 -1
- package/README.md +18 -32
- package/package.json +1 -1
- package/packages/@monomind/cli/README.md +18 -32
- package/packages/@monomind/cli/dist/src/agents/registry-builder.d.ts +1 -7
- package/packages/@monomind/cli/dist/src/agents/registry-builder.js +10 -6
- package/packages/@monomind/cli/dist/src/benchmarks/benchmark-runner.d.ts +59 -12
- package/packages/@monomind/cli/dist/src/benchmarks/benchmark-runner.js +67 -13
- package/packages/@monomind/cli/dist/src/benchmarks/pretrain/index.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/commands/agent-wasm.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/commands/agent-wasm.js +5 -5
- package/packages/@monomind/cli/dist/src/commands/agent.js +1 -6
- package/packages/@monomind/cli/dist/src/commands/analyze.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/commands/analyze.js +8 -18
- package/packages/@monomind/cli/dist/src/commands/doctor.js +53 -3
- package/packages/@monomind/cli/dist/src/commands/embeddings.js +9 -33
- package/packages/@monomind/cli/dist/src/commands/hooks.js +24 -76
- package/packages/@monomind/cli/dist/src/commands/index.d.ts +4 -6
- package/packages/@monomind/cli/dist/src/commands/index.js +8 -15
- package/packages/@monomind/cli/dist/src/commands/init.js +2 -2
- package/packages/@monomind/cli/dist/src/commands/issues.js +16 -11
- package/packages/@monomind/cli/dist/src/commands/mcp.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/commands/memory.js +6 -6
- package/packages/@monomind/cli/dist/src/commands/migrate.js +1 -2
- package/packages/@monomind/cli/dist/src/commands/monograph.js +18 -11
- package/packages/@monomind/cli/dist/src/commands/monovector/backup.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/backup.js +25 -25
- package/packages/@monomind/cli/dist/src/commands/monovector/benchmark.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/benchmark.js +14 -14
- package/packages/@monomind/cli/dist/src/commands/monovector/import.d.ts +18 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/import.js +21 -21
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/index.d.ts +6 -6
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/index.js +22 -22
- package/packages/@monomind/cli/dist/src/commands/monovector/init.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/init.js +36 -36
- package/packages/@monomind/cli/dist/src/commands/monovector/migrate.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/migrate.js +16 -16
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/optimize.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/optimize.js +10 -10
- package/packages/@monomind/cli/dist/src/commands/monovector/setup.d.ts +18 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/setup.js +77 -77
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/status.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/status.js +34 -34
- package/packages/@monomind/cli/dist/src/commands/neural.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/commands/neural.js +31 -608
- package/packages/@monomind/cli/dist/src/commands/performance.js +7 -10
- package/packages/@monomind/cli/dist/src/commands/plugins.js +3 -4
- package/packages/@monomind/cli/dist/src/commands/process.js +5 -12
- package/packages/@monomind/cli/dist/src/commands/progress.js +16 -16
- package/packages/@monomind/cli/dist/src/commands/route.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/commands/route.js +23 -23
- package/packages/@monomind/cli/dist/src/commands/status.js +0 -3
- package/packages/@monomind/cli/dist/src/commands/swarm.js +2 -3
- package/packages/@monomind/cli/dist/src/commands/update.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/config-adapter.js +27 -0
- package/packages/@monomind/cli/dist/src/consensus/audit-writer.d.ts +44 -17
- package/packages/@monomind/cli/dist/src/dlq/dlq-replayer.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/index.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/index.js +5 -5
- package/packages/@monomind/cli/dist/src/init/claudemd-generator.js +10 -14
- package/packages/@monomind/cli/dist/src/init/executor.js +17 -27
- package/packages/@monomind/cli/dist/src/init/helpers-generator.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/init/helpers-generator.js +2 -2
- package/packages/@monomind/cli/dist/src/init/types.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-client.js +1 -7
- package/packages/@monomind/cli/dist/src/mcp-server.js +9 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/agent-tools.js +1 -52
- package/packages/@monomind/cli/dist/src/mcp-tools/analyze-tools.js +5 -5
- package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.d.ts +4 -4
- package/packages/@monomind/cli/dist/src/mcp-tools/autopilot-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/browser-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/browser-tools.js +6 -5
- package/packages/@monomind/cli/dist/src/mcp-tools/claims-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/coordination-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/coordination-tools.js +51 -54
- package/packages/@monomind/cli/dist/src/mcp-tools/daa-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/embeddings-tools.js +10 -10
- package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.js +0 -24
- package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.js +189 -446
- package/packages/@monomind/cli/dist/src/mcp-tools/index.d.ts +0 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/index.js +0 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-compat.d.ts +334 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-compat.js +1108 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.js +76 -34
- package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.js +2 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/progress-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/ruvllm-tools.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/ruvllm-tools.js +3 -3
- package/packages/@monomind/cli/dist/src/mcp-tools/terminal-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/terminal-tools.js +29 -19
- package/packages/@monomind/cli/dist/src/mcp-tools/transfer-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/wasm-agent-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/wasm-agent-tools.js +2 -2
- package/packages/@monomind/cli/dist/src/memory/intelligence.js +14 -8
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.d.ts +17 -2
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.js +76 -23
- package/packages/@monomind/cli/dist/src/memory/memory-initializer.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/memory/memory-initializer.js +37 -39
- package/packages/@monomind/cli/dist/src/monovector/capabilities.d.ts +34 -0
- package/packages/@monomind/cli/dist/src/monovector/capabilities.js +37 -0
- package/packages/@monomind/cli/dist/src/monovector/command-outcomes.d.ts +37 -0
- package/packages/@monomind/cli/dist/src/monovector/command-outcomes.js +87 -0
- package/packages/@monomind/cli/dist/src/monovector/coverage-router.d.ts +103 -0
- package/packages/@monomind/cli/dist/src/monovector/coverage-router.js +337 -0
- package/packages/@monomind/cli/dist/src/monovector/coverage-tools.d.ts +14 -0
- package/packages/@monomind/cli/dist/src/monovector/coverage-tools.js +112 -0
- package/packages/@monomind/cli/dist/src/{ruvector → monovector}/diff-classifier.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/monovector/index.d.ts +61 -0
- package/packages/@monomind/cli/dist/src/monovector/index.js +67 -0
- package/packages/@monomind/cli/dist/src/monovector/init-state.d.ts +35 -0
- package/packages/@monomind/cli/dist/src/monovector/init-state.js +36 -0
- package/packages/@monomind/cli/dist/src/monovector/route-outcomes.d.ts +55 -0
- package/packages/@monomind/cli/dist/src/monovector/route-outcomes.js +137 -0
- package/packages/@monomind/cli/dist/src/parser.js +3 -3
- package/packages/@monomind/cli/dist/src/plugins/store/discovery.js +0 -31
- package/packages/@monomind/cli/dist/src/production/circuit-breaker.d.ts +26 -6
- package/packages/@monomind/cli/dist/src/production/error-handler.d.ts +55 -30
- package/packages/@monomind/cli/dist/src/production/index.d.ts +3 -20
- package/packages/@monomind/cli/dist/src/production/index.js +3 -15
- package/packages/@monomind/cli/dist/src/production/monitoring.d.ts +54 -34
- package/packages/@monomind/cli/dist/src/production/monitoring.js +12 -14
- package/packages/@monomind/cli/dist/src/production/rate-limiter.d.ts +64 -19
- package/packages/@monomind/cli/dist/src/production/rate-limiter.js +5 -5
- package/packages/@monomind/cli/dist/src/production/retry.js +4 -2
- package/packages/@monomind/cli/dist/src/runtime/headless.d.ts +3 -3
- package/packages/@monomind/cli/dist/src/services/claim-service.d.ts +50 -59
- package/packages/@monomind/cli/dist/src/services/claim-service.js +83 -50
- package/packages/@monomind/cli/dist/src/services/config-file-manager.js +8 -1
- package/packages/@monomind/cli/dist/src/services/worker-daemon.js +4 -0
- package/packages/@monomind/cli/dist/src/transfer/ipfs/upload.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/transfer/storage/gcs.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/types.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/update/checker.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/update/index.d.ts +1 -1
- package/packages/@monomind/cli/package.json +13 -13
- package/packages/@monomind/guidance/dist/index.d.ts +1 -1
- package/packages/@monomind/guidance/dist/index.js +1 -1
- package/packages/@monomind/guidance/package.json +1 -2
- package/scripts/build-monovector.sh +10 -0
- package/scripts/publish-monovector.sh +20 -0
- package/.claude/commands/monomind/adr.md +0 -11
- package/.claude/commands/monomind/budget.md +0 -7
- package/.claude/commands/monomind/createtask.md +0 -277
- package/.claude/commands/monomind/do.md +0 -498
- package/.claude/commands/monomind/graph-status.md +0 -7
- package/.claude/commands/monomind/help.md +0 -118
- package/.claude/commands/monomind/idea.md +0 -273
- package/.claude/commands/monomind/improve.md +0 -352
- package/.claude/commands/monomind/loops.md +0 -7
- package/.claude/commands/monomind/memory.md +0 -230
- package/.claude/commands/monomind/repeat.md +0 -257
- package/.claude/commands/monomind/review.md +0 -317
- package/.claude/commands/monomind/specialagents.md +0 -125
- package/.claude/commands/monomind/swarm.md +0 -161
- package/.claude/commands/monomind/understand.md +0 -139
- package/.claude/commands/training/README.md +0 -39
- package/.claude/commands/training/neural-patterns.md +0 -73
- package/.claude/commands/training/neural-train.md +0 -79
- package/packages/@monomind/cli/dist/src/commands/appliance-advanced.d.ts +0 -9
- package/packages/@monomind/cli/dist/src/commands/appliance-advanced.js +0 -238
- package/packages/@monomind/cli/dist/src/commands/appliance.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/appliance.js +0 -406
- package/packages/@monomind/cli/dist/src/commands/ruvector/backup.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/benchmark.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/import.d.ts +0 -18
- package/packages/@monomind/cli/dist/src/commands/ruvector/init.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/migrate.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/setup.d.ts +0 -18
- package/packages/@monomind/cli/dist/src/ruvector/agent-wasm.d.ts +0 -182
- package/packages/@monomind/cli/dist/src/ruvector/agent-wasm.js +0 -316
- package/packages/@monomind/cli/dist/src/ruvector/ast-analyzer.d.ts +0 -67
- package/packages/@monomind/cli/dist/src/ruvector/ast-analyzer.js +0 -277
- package/packages/@monomind/cli/dist/src/ruvector/coverage-router.d.ts +0 -160
- package/packages/@monomind/cli/dist/src/ruvector/coverage-router.js +0 -539
- package/packages/@monomind/cli/dist/src/ruvector/coverage-tools.d.ts +0 -33
- package/packages/@monomind/cli/dist/src/ruvector/coverage-tools.js +0 -157
- package/packages/@monomind/cli/dist/src/ruvector/enhanced-model-router.d.ts +0 -146
- package/packages/@monomind/cli/dist/src/ruvector/enhanced-model-router.js +0 -551
- package/packages/@monomind/cli/dist/src/ruvector/flash-attention.d.ts +0 -195
- package/packages/@monomind/cli/dist/src/ruvector/flash-attention.js +0 -643
- package/packages/@monomind/cli/dist/src/ruvector/graph-analyzer.d.ts +0 -187
- package/packages/@monomind/cli/dist/src/ruvector/graph-analyzer.js +0 -929
- package/packages/@monomind/cli/dist/src/ruvector/index.d.ts +0 -56
- package/packages/@monomind/cli/dist/src/ruvector/index.js +0 -58
- package/packages/@monomind/cli/dist/src/ruvector/lora-adapter.d.ts +0 -218
- package/packages/@monomind/cli/dist/src/ruvector/lora-adapter.js +0 -455
- package/packages/@monomind/cli/dist/src/ruvector/model-router.d.ts +0 -222
- package/packages/@monomind/cli/dist/src/ruvector/model-router.js +0 -512
- package/packages/@monomind/cli/dist/src/ruvector/moe-router.d.ts +0 -213
- package/packages/@monomind/cli/dist/src/ruvector/moe-router.js +0 -649
- package/packages/@monomind/cli/dist/src/ruvector/q-learning-router.d.ts +0 -217
- package/packages/@monomind/cli/dist/src/ruvector/q-learning-router.js +0 -712
- package/packages/@monomind/cli/dist/src/ruvector/ruvllm-wasm.d.ts +0 -179
- package/packages/@monomind/cli/dist/src/ruvector/ruvllm-wasm.js +0 -363
- package/packages/@monomind/cli/dist/src/ruvector/semantic-router.d.ts +0 -77
- package/packages/@monomind/cli/dist/src/ruvector/semantic-router.js +0 -178
- package/packages/@monomind/cli/dist/src/ruvector/vector-db.d.ts +0 -69
- package/packages/@monomind/cli/dist/src/ruvector/vector-db.js +0 -243
- package/packages/@monomind/cli/dist/src/services/ruvector-training.d.ts +0 -222
- package/packages/@monomind/cli/dist/src/services/ruvector-training.js +0 -696
- /package/packages/@monomind/cli/dist/src/{ruvector → monovector}/diff-classifier.js +0 -0
|
@@ -92,7 +92,7 @@ const SKILLS_MAP = {
|
|
|
92
92
|
*/
|
|
93
93
|
const COMMANDS_MAP = {
|
|
94
94
|
core: [
|
|
95
|
-
'mastermind.md', 'tokens.md', '
|
|
95
|
+
'mastermind.md', 'tokens.md', 'monobrowse.md', 'sparc.md', 'ts.md',
|
|
96
96
|
],
|
|
97
97
|
agents: ['agents'],
|
|
98
98
|
analysis: ['analysis'],
|
|
@@ -105,7 +105,7 @@ const COMMANDS_MAP = {
|
|
|
105
105
|
memory: ['memory'],
|
|
106
106
|
monitoring: ['monitoring'],
|
|
107
107
|
monograph: ['monograph'],
|
|
108
|
-
monomind: ['
|
|
108
|
+
monomind: ['mastermind'],
|
|
109
109
|
optimization: ['optimization'],
|
|
110
110
|
pair: ['pair'],
|
|
111
111
|
sparc: ['sparc'],
|
|
@@ -1442,7 +1442,6 @@ memory:
|
|
|
1442
1442
|
# ADR-049: Self-Learning Memory
|
|
1443
1443
|
learningBridge:
|
|
1444
1444
|
enabled: ${options.runtime.enableLearningBridge ?? options.runtime.enableNeural}
|
|
1445
|
-
sonaMode: balanced
|
|
1446
1445
|
confidenceDecayRate: 0.005
|
|
1447
1446
|
accessBoostAmount: 0.03
|
|
1448
1447
|
consolidationThreshold: 10
|
|
@@ -1648,7 +1647,7 @@ async function writeCapabilitiesDoc(targetDir, options, result) {
|
|
|
1648
1647
|
3. [Available Agents (60+)](#available-agents)
|
|
1649
1648
|
4. [CLI Commands (26 Commands, 140+ Subcommands)](#cli-commands)
|
|
1650
1649
|
5. [Hooks System (27 Hooks + 12 Workers)](#hooks-system)
|
|
1651
|
-
6. [Memory & Intelligence
|
|
1650
|
+
6. [Memory & Intelligence](#memory--intelligence)
|
|
1652
1651
|
7. [Hive-Mind Consensus](#hive-mind-consensus)
|
|
1653
1652
|
8. [Performance Targets](#performance-targets)
|
|
1654
1653
|
9. [Integration Ecosystem](#integration-ecosystem)
|
|
@@ -1660,8 +1659,8 @@ async function writeCapabilitiesDoc(targetDir, options, result) {
|
|
|
1660
1659
|
Monomind is a domain-driven design architecture for multi-agent AI coordination with:
|
|
1661
1660
|
|
|
1662
1661
|
- **15-Agent Swarm Coordination** with hierarchical and mesh topologies
|
|
1663
|
-
- **HNSW Vector Search** -
|
|
1664
|
-
- **
|
|
1662
|
+
- **HNSW Vector Search** - pure-JS indexed pattern retrieval via AgentDB
|
|
1663
|
+
- **Keyword Routing** - deterministic task→agent routing with outcome measurement
|
|
1665
1664
|
- **Byzantine Fault Tolerance** - Queen-led consensus mechanisms
|
|
1666
1665
|
- **MCP Server Integration** - Model Context Protocol support
|
|
1667
1666
|
|
|
@@ -1673,7 +1672,7 @@ Monomind is a domain-driven design architecture for multi-agent AI coordination
|
|
|
1673
1672
|
| Memory Backend | ${options.runtime.memoryBackend} |
|
|
1674
1673
|
| HNSW Indexing | ${options.runtime.enableHNSW ? 'Enabled' : 'Disabled'} |
|
|
1675
1674
|
| Neural Learning | ${options.runtime.enableNeural ? 'Enabled' : 'Disabled'} |
|
|
1676
|
-
| LearningBridge | ${options.runtime.enableLearningBridge ? 'Enabled (
|
|
1675
|
+
| LearningBridge | ${options.runtime.enableLearningBridge ? 'Enabled (ReasoningBank)' : 'Disabled'} |
|
|
1677
1676
|
| Knowledge Graph | ${options.runtime.enableMemoryGraph ? 'Enabled (PageRank + Communities)' : 'Disabled'} |
|
|
1678
1677
|
| Agent Scopes | ${options.runtime.enableAgentScopes ? 'Enabled (project/local/user)' : 'Disabled'} |
|
|
1679
1678
|
|
|
@@ -1862,25 +1861,20 @@ npx monomind@latest doctor --fix
|
|
|
1862
1861
|
|
|
1863
1862
|
## Memory & Intelligence
|
|
1864
1863
|
|
|
1865
|
-
###
|
|
1866
|
-
- **
|
|
1867
|
-
- **
|
|
1868
|
-
- **
|
|
1869
|
-
- **
|
|
1870
|
-
- **Flash Attention**: 2.49x-7.47x speedup
|
|
1871
|
-
- **Int8 Quantization**: 3.92x memory reduction
|
|
1864
|
+
### Intelligence System
|
|
1865
|
+
- **Keyword routing**: Deterministic task→agent routing with outcome measurement
|
|
1866
|
+
- **HNSW pattern search**: Pure-JS indexed vector search via AgentDB
|
|
1867
|
+
- **ReasoningBank**: Stores learned patterns and trajectories for retrieval
|
|
1868
|
+
- **Int8 Quantization**: ~4x memory reduction for stored embeddings
|
|
1872
1869
|
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
2. **JUDGE** - Success/failure verdicts
|
|
1876
|
-
3. **DISTILL** - LoRA learning extraction
|
|
1877
|
-
4. **CONSOLIDATE** - EWC++ preservation
|
|
1870
|
+
Routing and learning are JS-only — no native neural engine is required. Route
|
|
1871
|
+
and command outcomes are recorded and scored so routing quality is measured.
|
|
1878
1872
|
|
|
1879
1873
|
### Self-Learning Memory (ADR-049)
|
|
1880
1874
|
|
|
1881
1875
|
| Component | Status | Description |
|
|
1882
1876
|
|-----------|--------|-------------|
|
|
1883
|
-
| **LearningBridge** | ${options.runtime.enableLearningBridge ? '✅ Enabled' : '⏸ Disabled'} | Connects insights to
|
|
1877
|
+
| **LearningBridge** | ${options.runtime.enableLearningBridge ? '✅ Enabled' : '⏸ Disabled'} | Connects insights to the ReasoningBank pattern store |
|
|
1884
1878
|
| **MemoryGraph** | ${options.runtime.enableMemoryGraph ? '✅ Enabled' : '⏸ Disabled'} | PageRank knowledge graph + community detection |
|
|
1885
1879
|
| **AgentMemoryScope** | ${options.runtime.enableAgentScopes ? '✅ Enabled' : '⏸ Disabled'} | 3-scope agent memory (project/local/user) |
|
|
1886
1880
|
|
|
@@ -1954,13 +1948,11 @@ npx monomind@latest hive-mind consensus --propose "task"
|
|
|
1954
1948
|
|
|
1955
1949
|
| Metric | Target | Status |
|
|
1956
1950
|
|--------|--------|--------|
|
|
1957
|
-
| HNSW Search |
|
|
1958
|
-
| Memory Reduction | 50-75% | ✅ Implemented (
|
|
1959
|
-
|
|
|
1960
|
-
| Flash Attention | 2.49x-7.47x | 🔄 In Progress |
|
|
1951
|
+
| HNSW Search | Indexed vector search | ✅ Implemented (pure-JS via AgentDB) |
|
|
1952
|
+
| Memory Reduction | 50-75% | ✅ Implemented (~4x via Int8 quantization) |
|
|
1953
|
+
| Pattern Learning | Recorded + retrievable | ✅ Implemented (ReasoningBank) |
|
|
1961
1954
|
| MCP Response | <100ms | ✅ Achieved |
|
|
1962
1955
|
| CLI Startup | <500ms | ✅ Achieved |
|
|
1963
|
-
| SONA Adaptation | <0.05ms | 🔄 In Progress |
|
|
1964
1956
|
| Graph Build (1k) | <200ms | ✅ 2.78ms (71.9x headroom) |
|
|
1965
1957
|
| PageRank (1k) | <100ms | ✅ 12.21ms (8.2x headroom) |
|
|
1966
1958
|
| Insight Recording | <5ms/each | ✅ 0.12ms (41x headroom) |
|
|
@@ -1976,8 +1968,6 @@ npx monomind@latest hive-mind consensus --propose "task"
|
|
|
1976
1968
|
|---------|---------|---------|
|
|
1977
1969
|
| agentic-flow | 3.0.0-alpha.1 | Core coordination + ReasoningBank + Router |
|
|
1978
1970
|
| agentdb | 3.0.0-alpha.10 | Vector database + 8 controllers |
|
|
1979
|
-
| @ruvector/attention | 0.1.3 | Flash attention |
|
|
1980
|
-
| @ruvector/sona | 0.1.5 | Neural learning |
|
|
1981
1971
|
|
|
1982
1972
|
### Optional Integrations
|
|
1983
1973
|
| Package | Command |
|
|
@@ -38,7 +38,7 @@ export declare function generateIntelligenceStub(): string;
|
|
|
38
38
|
/**
|
|
39
39
|
* Generate a minimal auto-memory-hook.mjs fallback for fresh installs.
|
|
40
40
|
* This ESM script handles import/sync/status commands gracefully when
|
|
41
|
-
* @
|
|
41
|
+
* @monomind/memory is not installed. Gets overwritten when source copy succeeds.
|
|
42
42
|
*/
|
|
43
43
|
export declare function generateAutoMemoryHook(): string;
|
|
44
44
|
/**
|
|
@@ -888,11 +888,11 @@ async function loadMemoryPackage() {
|
|
|
888
888
|
try {
|
|
889
889
|
const { createRequire } = await import('module');
|
|
890
890
|
const require = createRequire(join(PROJECT_ROOT, 'package.json'));
|
|
891
|
-
return require('@
|
|
891
|
+
return require('@monoes/memory');
|
|
892
892
|
} catch { /* fall through */ }
|
|
893
893
|
|
|
894
894
|
// Strategy 2: ESM import (works when @monomind/memory is a direct dependency)
|
|
895
|
-
try { return await import('@
|
|
895
|
+
try { return await import('@monoes/memory'); } catch { /* fall through */ }
|
|
896
896
|
|
|
897
897
|
// Strategy 3: Walk up from PROJECT_ROOT looking for the package in any node_modules
|
|
898
898
|
let searchDir = PROJECT_ROOT;
|
|
@@ -199,7 +199,7 @@ export interface RuntimeConfig {
|
|
|
199
199
|
enableHNSW: boolean;
|
|
200
200
|
/** Enable neural learning */
|
|
201
201
|
enableNeural: boolean;
|
|
202
|
-
/** Enable LearningBridge (ADR-049) - connects insights to
|
|
202
|
+
/** Enable LearningBridge (ADR-049) - connects insights to the ReasoningBank pattern store */
|
|
203
203
|
enableLearningBridge?: boolean;
|
|
204
204
|
/** Enable MemoryGraph (ADR-049) - PageRank knowledge graph */
|
|
205
205
|
enableMemoryGraph?: boolean;
|
|
@@ -34,16 +34,13 @@ import { coordinationTools } from './mcp-tools/coordination-tools.js';
|
|
|
34
34
|
import { browserTools } from './mcp-tools/browser-tools.js';
|
|
35
35
|
// Phase 6: AgentDB v1 controller tools
|
|
36
36
|
import { agentdbTools } from './mcp-tools/agentdb-tools.js';
|
|
37
|
-
// RuVector WASM tools
|
|
38
|
-
import { ruvllmWasmTools } from './mcp-tools/ruvllm-tools.js';
|
|
39
|
-
import { wasmAgentTools } from './mcp-tools/wasm-agent-tools.js';
|
|
40
37
|
import { guidanceTools } from './mcp-tools/guidance-tools.js';
|
|
41
38
|
import { autopilotTools } from './mcp-tools/autopilot-tools.js';
|
|
42
39
|
// Knowledge graph tools (graphify — deprecated shims + monograph native)
|
|
43
40
|
import { graphifyTools } from './mcp-tools/graphify-tools.js';
|
|
44
41
|
import { monographTools } from './mcp-tools/monograph-tools.js';
|
|
45
42
|
// Coverage-aware routing tools
|
|
46
|
-
import { coverageRouterTools } from './
|
|
43
|
+
import { coverageRouterTools } from './monovector/coverage-tools.js';
|
|
47
44
|
// A2A Agent Card protocol (source: https://a2a-protocol.org)
|
|
48
45
|
import { a2aTools } from './mcp-tools/a2a-tools.js';
|
|
49
46
|
/**
|
|
@@ -91,9 +88,6 @@ registerTools([
|
|
|
91
88
|
...browserTools,
|
|
92
89
|
// Phase 6: AgentDB v1 controller tools
|
|
93
90
|
...agentdbTools,
|
|
94
|
-
// RuVector WASM tools
|
|
95
|
-
...ruvllmWasmTools,
|
|
96
|
-
...wasmAgentTools,
|
|
97
91
|
// Guidance & discovery tools
|
|
98
92
|
...guidanceTools,
|
|
99
93
|
// Autopilot persistent completion tools
|
|
@@ -532,7 +532,8 @@ export class MCPServerManager extends EventEmitter {
|
|
|
532
532
|
const uri = params.uri ?? '';
|
|
533
533
|
try {
|
|
534
534
|
const { join } = await import('path');
|
|
535
|
-
const { openDb, closeDb
|
|
535
|
+
const { openDb, closeDb } = await import('@monoes/monograph');
|
|
536
|
+
const { getProcessesResource, getCommunitiesResource, getSchemaResource, getGraphResource } = await import('./mcp-tools/monograph-compat.js');
|
|
536
537
|
const projectCwd = process.env['MONOMIND_CWD'] || process.cwd();
|
|
537
538
|
const dbPath = join(projectCwd, '.monomind', 'monograph.db');
|
|
538
539
|
const resDb = openDb(dbPath);
|
|
@@ -899,6 +900,13 @@ export function getServerManager(options) {
|
|
|
899
900
|
* Quick start MCP server
|
|
900
901
|
*/
|
|
901
902
|
export async function startMCPServer(options) {
|
|
903
|
+
// A2: mark this as a long-lived host so the SONA write-path (trajectory record +
|
|
904
|
+
// consolidation) stays enabled. In one-shot CLI mode this env var is absent and
|
|
905
|
+
// the per-call SONA trajectory — which would never reach the consolidation
|
|
906
|
+
// threshold and is discarded on process exit — is skipped to avoid wasted
|
|
907
|
+
// ONNX/embedding overhead. Across MCP calls the registry singleton persists, so
|
|
908
|
+
// trajectories accumulate and DO reach threshold here.
|
|
909
|
+
process.env.MONOMIND_PERSISTENT_HOST = '1';
|
|
902
910
|
const manager = getServerManager(options);
|
|
903
911
|
return await manager.start();
|
|
904
912
|
}
|
|
@@ -78,21 +78,6 @@ const AGENT_TYPE_MODEL_DEFAULTS = {
|
|
|
78
78
|
'linter': 'haiku',
|
|
79
79
|
'documenter': 'haiku',
|
|
80
80
|
};
|
|
81
|
-
// Lazy-loaded model router
|
|
82
|
-
let modelRouterInstance = null;
|
|
83
|
-
async function getModelRouter() {
|
|
84
|
-
if (!modelRouterInstance) {
|
|
85
|
-
try {
|
|
86
|
-
const { getModelRouter } = await import('../ruvector/model-router.js');
|
|
87
|
-
modelRouterInstance = getModelRouter();
|
|
88
|
-
}
|
|
89
|
-
catch (e) {
|
|
90
|
-
// Log but don't fail - model router is optional
|
|
91
|
-
console.error('[agent-tools] Model router load failed:', e.message);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return modelRouterInstance;
|
|
95
|
-
}
|
|
96
81
|
/**
|
|
97
82
|
* Determine model for agent based on (ADR-026 3-tier routing):
|
|
98
83
|
* 1. Explicit model in config
|
|
@@ -105,43 +90,7 @@ async function determineAgentModel(agentType, config, task) {
|
|
|
105
90
|
if (config.model && ['haiku', 'sonnet', 'opus', 'inherit'].includes(config.model)) {
|
|
106
91
|
return { model: config.model, routedBy: 'explicit' };
|
|
107
92
|
}
|
|
108
|
-
// 2.
|
|
109
|
-
if (task) {
|
|
110
|
-
try {
|
|
111
|
-
// Try enhanced router first (includes Agent Booster detection)
|
|
112
|
-
const { getEnhancedModelRouter } = await import('../ruvector/enhanced-model-router.js');
|
|
113
|
-
const enhancedRouter = getEnhancedModelRouter();
|
|
114
|
-
const routeResult = await enhancedRouter.route(task, { filePath: config.filePath });
|
|
115
|
-
if (routeResult.tier === 1 && routeResult.canSkipLLM) {
|
|
116
|
-
// Agent Booster can handle this task
|
|
117
|
-
return {
|
|
118
|
-
model: 'haiku', // Use haiku as fallback if AB fails
|
|
119
|
-
routedBy: 'agent-booster',
|
|
120
|
-
canSkipLLM: true,
|
|
121
|
-
agentBoosterIntent: routeResult.agentBoosterIntent?.type,
|
|
122
|
-
tier: 1,
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
return {
|
|
126
|
-
model: (routeResult.model ?? 'sonnet'),
|
|
127
|
-
routedBy: 'router',
|
|
128
|
-
tier: routeResult.tier,
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
catch {
|
|
132
|
-
// Enhanced router not available, try basic router
|
|
133
|
-
const router = await getModelRouter();
|
|
134
|
-
if (router) {
|
|
135
|
-
try {
|
|
136
|
-
const result = await router.route(task);
|
|
137
|
-
return { model: result.model, routedBy: 'router' };
|
|
138
|
-
}
|
|
139
|
-
catch {
|
|
140
|
-
// Fall through to defaults on router error
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
93
|
+
// 2. Task-based model router modules were never shipped — fall through to agent-type defaults.
|
|
145
94
|
// 3. Agent type defaults
|
|
146
95
|
const defaultModel = AGENT_TYPE_MODEL_DEFAULTS[agentType];
|
|
147
96
|
if (defaultModel) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Analyze MCP Tools
|
|
3
3
|
* Provides diff analysis and classification via MCP protocol
|
|
4
4
|
*/
|
|
5
|
-
import { analyzeDiff, assessFileRisk, assessOverallRisk, classifyDiff, suggestReviewers, getGitDiffNumstat, } from '../
|
|
5
|
+
import { analyzeDiff, assessFileRisk, assessOverallRisk, classifyDiff, suggestReviewers, getGitDiffNumstat, } from '../monovector/diff-classifier.js';
|
|
6
6
|
/**
|
|
7
7
|
* Diff Analysis Tool
|
|
8
8
|
* Analyzes git diffs for change risk assessment and classification
|
|
@@ -30,9 +30,9 @@ export const analyzeDiffTool = {
|
|
|
30
30
|
description: 'Include recommended reviewers',
|
|
31
31
|
default: true,
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
useMonoVector: {
|
|
34
34
|
type: 'boolean',
|
|
35
|
-
description: 'Attempt to use
|
|
35
|
+
description: 'Attempt to use monovector for analysis (graceful fallback if unavailable)',
|
|
36
36
|
default: true,
|
|
37
37
|
},
|
|
38
38
|
},
|
|
@@ -41,11 +41,11 @@ export const analyzeDiffTool = {
|
|
|
41
41
|
const ref = params.ref || 'HEAD';
|
|
42
42
|
const includeFileRisks = params.includeFileRisks === true;
|
|
43
43
|
const includeReviewers = params.includeReviewers !== false;
|
|
44
|
-
const
|
|
44
|
+
const useMonoVector = params.useMonoVector !== false;
|
|
45
45
|
try {
|
|
46
46
|
const result = await analyzeDiff({
|
|
47
47
|
ref,
|
|
48
|
-
|
|
48
|
+
useMonoVector,
|
|
49
49
|
});
|
|
50
50
|
// Build response
|
|
51
51
|
const response = {
|
|
@@ -46,11 +46,11 @@ export declare function resetInstallAttempts(): void;
|
|
|
46
46
|
* Optional package dependencies and their purposes
|
|
47
47
|
*/
|
|
48
48
|
export declare const OPTIONAL_PACKAGES: {
|
|
49
|
-
readonly '@
|
|
49
|
+
readonly '@monomind/aidefence': {
|
|
50
50
|
readonly description: "AI manipulation defense (prompt injection, PII detection)";
|
|
51
51
|
readonly tools: readonly ["aidefence_scan", "aidefence_analyze", "aidefence_stats", "aidefence_learn"];
|
|
52
52
|
};
|
|
53
|
-
readonly '@
|
|
53
|
+
readonly '@monomind/embeddings': {
|
|
54
54
|
readonly description: "Vector embeddings with ONNX support";
|
|
55
55
|
readonly tools: readonly ["embeddings_generate", "embeddings_search", "embeddings_batch"];
|
|
56
56
|
};
|
|
@@ -65,11 +65,11 @@ declare const _default: {
|
|
|
65
65
|
isPackageAvailable: typeof isPackageAvailable;
|
|
66
66
|
resetInstallAttempts: typeof resetInstallAttempts;
|
|
67
67
|
OPTIONAL_PACKAGES: {
|
|
68
|
-
readonly '@
|
|
68
|
+
readonly '@monomind/aidefence': {
|
|
69
69
|
readonly description: "AI manipulation defense (prompt injection, PII detection)";
|
|
70
70
|
readonly tools: readonly ["aidefence_scan", "aidefence_analyze", "aidefence_stats", "aidefence_learn"];
|
|
71
71
|
};
|
|
72
|
-
readonly '@
|
|
72
|
+
readonly '@monomind/embeddings': {
|
|
73
73
|
readonly description: "Vector embeddings with ONNX support";
|
|
74
74
|
readonly tools: readonly ["embeddings_generate", "embeddings_search", "embeddings_batch"];
|
|
75
75
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Allows programmatic control of the autopilot loop via MCP.
|
|
6
6
|
*
|
|
7
7
|
* ADR-072: Autopilot Integration
|
|
8
|
-
* @module @
|
|
8
|
+
* @module @monomind/cli/mcp-tools/autopilot
|
|
9
9
|
*/
|
|
10
10
|
import type { MCPTool } from './types.js';
|
|
11
11
|
export declare const autopilotTools: MCPTool[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Browser MCP Tools
|
|
3
3
|
*
|
|
4
|
-
* CLI integration for @
|
|
4
|
+
* CLI integration for @monomind/browser package.
|
|
5
5
|
* Provides browser automation tools for web navigation, interaction, and data extraction.
|
|
6
6
|
*/
|
|
7
7
|
import type { MCPTool } from './types.js';
|
|
@@ -35,8 +35,9 @@ function rejectFlagLike(value, field) {
|
|
|
35
35
|
}
|
|
36
36
|
/** Validate a session ID against a strict allowlist. */
|
|
37
37
|
function validateSessionId(value) {
|
|
38
|
-
if (value === undefined || value === null || value === '')
|
|
38
|
+
if (value === undefined || value === null || value === '') {
|
|
39
39
|
return 'default';
|
|
40
|
+
}
|
|
40
41
|
if (typeof value !== 'string' || !/^[A-Za-z0-9_-]{1,64}$/.test(value)) {
|
|
41
42
|
throw new Error('session: must match ^[A-Za-z0-9_-]{1,64}$');
|
|
42
43
|
}
|
|
@@ -78,8 +79,8 @@ async function validateScreenshotPath(value) {
|
|
|
78
79
|
if (value.startsWith('-')) {
|
|
79
80
|
throw new Error('path: must not start with "-"');
|
|
80
81
|
}
|
|
81
|
-
const path = await import('path');
|
|
82
|
-
const fs = await import('fs');
|
|
82
|
+
const path = await import('node:path');
|
|
83
|
+
const fs = await import('node:fs');
|
|
83
84
|
const projectRoot = process.cwd();
|
|
84
85
|
const root = path.resolve(projectRoot, '.monomind', 'screenshots');
|
|
85
86
|
await fs.promises.mkdir(root, { recursive: true });
|
|
@@ -98,7 +99,7 @@ const MAX_BROWSER_EVAL_BYTES = 16 * 1024;
|
|
|
98
99
|
* Execute agent-browser CLI command
|
|
99
100
|
*/
|
|
100
101
|
async function execBrowserCommand(args, session = 'default') {
|
|
101
|
-
const { execFileSync } = await import('child_process');
|
|
102
|
+
const { execFileSync } = await import('node:child_process');
|
|
102
103
|
try {
|
|
103
104
|
// Validate session even when the upstream handler forgot.
|
|
104
105
|
const safeSession = validateSessionId(session);
|
|
@@ -690,7 +691,7 @@ export const browserTools = [
|
|
|
690
691
|
}
|
|
691
692
|
// Audit log every eval call so it's traceable in hindsight.
|
|
692
693
|
try {
|
|
693
|
-
const crypto = await import('crypto');
|
|
694
|
+
const crypto = await import('node:crypto');
|
|
694
695
|
const hash = crypto.createHash('sha256').update(raw.script).digest('hex').slice(0, 16);
|
|
695
696
|
console.error(`[${new Date().toISOString()}] AUDIT browser_eval session=${safeSession} script_sha256_16=${hash}`);
|
|
696
697
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Implements MCP tools for ADR-016: Collaborative Issue Claims
|
|
5
5
|
* Provides programmatic access to claim operations for MCP clients.
|
|
6
6
|
*
|
|
7
|
-
* @module @
|
|
7
|
+
* @module @monomind/cli/mcp-tools/claims
|
|
8
8
|
*/
|
|
9
9
|
import type { MCPTool } from './types.js';
|
|
10
10
|
export declare const claimsTools: MCPTool[];
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* - No actual distributed coordination
|
|
9
9
|
* - Useful for single-machine workflow orchestration
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
11
|
+
import type { MCPTool } from './types.js';
|
|
12
12
|
export declare const coordinationTools: MCPTool[];
|
|
13
13
|
//# sourceMappingURL=coordination-tools.d.ts.map
|