agentdb 2.0.0-alpha.1 → 2.0.0-alpha.2
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/dist/agentdb.min.js +4 -4
- package/dist/simulation/cli.js +0 -0
- package/dist/src/cli/lib/config-manager.d.ts.map +1 -1
- package/dist/src/cli/lib/config-manager.js.map +1 -1
- package/dist/src/cli/lib/history-tracker.d.ts.map +1 -1
- package/dist/src/cli/lib/history-tracker.js +7 -1
- package/dist/src/cli/lib/history-tracker.js.map +1 -1
- package/examples/README.md +105 -0
- package/examples/quickstart.js +43 -0
- package/package.json +6 -2
- package/simulation/.claude-flow/metrics/agent-metrics.json +1 -0
- package/simulation/.claude-flow/metrics/performance.json +87 -0
- package/simulation/.claude-flow/metrics/task-metrics.json +10 -0
- package/simulation/COMPLETION-STATUS.md +139 -0
- package/simulation/FINAL-RESULTS.md +414 -0
- package/simulation/FINAL-STATUS.md +281 -0
- package/simulation/INTEGRATION-COMPLETE.md +452 -0
- package/simulation/MIGRATION-STATUS.md +231 -0
- package/simulation/OPTIMIZATION-RESULTS.md +397 -0
- package/simulation/PHASE1-COMPLETE.md +163 -0
- package/simulation/README.md +848 -0
- package/simulation/SIMULATION-RESULTS.md +239 -0
- package/simulation/cli.ts +78 -0
- package/simulation/configs/default.json +37 -0
- package/simulation/data/advanced/aidefence.graph +0 -0
- package/simulation/data/advanced/bmssp.graph +0 -0
- package/simulation/data/advanced/consciousness.graph +0 -0
- package/simulation/data/advanced/goalie.graph +0 -0
- package/simulation/data/advanced/psycho-symbolic.graph +0 -0
- package/simulation/data/advanced/research-swarm.graph +0 -0
- package/simulation/data/advanced/sublinear.graph +0 -0
- package/simulation/data/advanced/temporal.graph +0 -0
- package/simulation/data/causal.graph +0 -0
- package/simulation/data/graph-traversal.graph +0 -0
- package/simulation/data/lean-agentic.graph +0 -0
- package/simulation/data/reflexion.graph +0 -0
- package/simulation/data/skills.graph +0 -0
- package/simulation/data/stock-market.graph +0 -0
- package/simulation/data/strange-loops.graph +0 -0
- package/simulation/data/swarm.graph +0 -0
- package/simulation/data/voting-consensus.graph +0 -0
- package/simulation/docs/CLI-INTEGRATION-PLAN.md +1038 -0
- package/simulation/docs/COMPREHENSIVE-LATENT-SPACE-COMPLETION.md +354 -0
- package/simulation/docs/DOCUMENTATION-INDEX.md +226 -0
- package/simulation/docs/IMPLEMENTATION-COMPLETE.md +521 -0
- package/simulation/docs/OPTIMIZATION-SUMMARY.md +279 -0
- package/simulation/docs/README.md +229 -0
- package/simulation/docs/SWARM-5-INTEGRATION-SUMMARY.md +528 -0
- package/simulation/docs/TESTING-SUMMARY.md +304 -0
- package/simulation/docs/architecture/EXTENSION-API.md +868 -0
- package/simulation/docs/architecture/INTEGRATION-ARCHITECTURE.md +1138 -0
- package/simulation/docs/architecture/OPTIMIZATION-STRATEGY.md +778 -0
- package/simulation/docs/architecture/SIMULATION-ARCHITECTURE.md +892 -0
- package/simulation/docs/guides/CLI-REFERENCE.md +896 -0
- package/simulation/docs/guides/CUSTOM-SIMULATIONS.md +931 -0
- package/simulation/docs/guides/DEPLOYMENT.md +832 -0
- package/simulation/docs/guides/IMPLEMENTATION-SUMMARY.md +544 -0
- package/simulation/docs/guides/MIGRATION-GUIDE.md +591 -0
- package/simulation/docs/guides/QUICK-START.md +361 -0
- package/simulation/docs/guides/README.md +736 -0
- package/simulation/docs/guides/TROUBLESHOOTING.md +817 -0
- package/simulation/docs/guides/WIZARD-GUIDE.md +869 -0
- package/simulation/docs/reports/latent-space/MASTER-SYNTHESIS.md +345 -0
- package/simulation/docs/reports/latent-space/README.md +132 -0
- package/simulation/docs/reports/latent-space/attention-analysis-RESULTS.md +238 -0
- package/simulation/docs/reports/latent-space/clustering-analysis-RESULTS.md +210 -0
- package/simulation/docs/reports/latent-space/hnsw-exploration-RESULTS.md +332 -0
- package/simulation/docs/reports/latent-space/hypergraph-exploration-RESULTS.md +37 -0
- package/simulation/docs/reports/latent-space/neural-augmentation-RESULTS.md +69 -0
- package/simulation/docs/reports/latent-space/quantum-hybrid-RESULTS.md +91 -0
- package/simulation/docs/reports/latent-space/self-organizing-hnsw-RESULTS.md +51 -0
- package/simulation/docs/reports/latent-space/traversal-optimization-RESULTS.md +238 -0
- package/simulation/reports/README.md +397 -0
- package/simulation/reports/advanced-simulations-performance.md +1241 -0
- package/simulation/reports/aidefence-integration-2025-11-30T01-36-53-486Z.json +30 -0
- package/simulation/reports/architecture-analysis.md +1396 -0
- package/simulation/reports/basic-scenarios-performance.md +1840 -0
- package/simulation/reports/bmssp-integration-2025-11-30T01-36-27-193Z.json +30 -0
- package/simulation/reports/bmssp-integration-2025-11-30T03-38-12-887Z.json +30 -0
- package/simulation/reports/causal-reasoning-2025-11-29T23-35-21-795Z.json +36 -0
- package/simulation/reports/causal-reasoning-2025-11-30T00-58-42-862Z.json +30 -0
- package/simulation/reports/causal-reasoning-2025-11-30T00-59-12-546Z.json +40 -0
- package/simulation/reports/consciousness-explorer-2025-11-30T01-36-51-269Z.json +31 -0
- package/simulation/reports/core-benchmarks.md +727 -0
- package/simulation/reports/goalie-integration-2025-11-30T01-36-52-377Z.json +30 -0
- package/simulation/reports/graph-traversal-2025-11-29T23-35-35-279Z.json +78 -0
- package/simulation/reports/graph-traversal-2025-11-29T23-37-36-697Z.json +30 -0
- package/simulation/reports/graph-traversal-2025-11-30T01-03-59-716Z.json +30 -0
- package/simulation/reports/graph-traversal-2025-11-30T01-05-10-984Z.json +30 -0
- package/simulation/reports/graph-traversal-2025-11-30T01-06-16-334Z.json +30 -0
- package/simulation/reports/graph-traversal-2025-11-30T01-06-53-312Z.json +30 -0
- package/simulation/reports/graph-traversal-2025-11-30T01-07-51-075Z.json +24 -0
- package/simulation/reports/graph-traversal-2025-11-30T01-08-22-179Z.json +42 -0
- package/simulation/reports/lean-agentic-swarm-2025-11-29T23-37-23-804Z.json +148 -0
- package/simulation/reports/lean-agentic-swarm-2025-11-30T01-31-24-401Z.json +31 -0
- package/simulation/reports/lean-agentic-swarm-2025-11-30T03-38-01-470Z.json +31 -0
- package/simulation/reports/multi-agent-swarm-2025-11-29T23-35-28-093Z.json +78 -0
- package/simulation/reports/multi-agent-swarm-2025-11-30T01-03-54-062Z.json +42 -0
- package/simulation/reports/multi-agent-swarm-2025-11-30T01-05-06-092Z.json +42 -0
- package/simulation/reports/psycho-symbolic-reasoner-2025-11-30T01-36-50-180Z.json +30 -0
- package/simulation/reports/quality-metrics.md +727 -0
- package/simulation/reports/reflexion-learning-2025-11-29T23-35-09-774Z.json +48 -0
- package/simulation/reports/reflexion-learning-2025-11-29T23-37-16-934Z.json +36 -0
- package/simulation/reports/reflexion-learning-2025-11-30T00-07-49-259Z.json +30 -0
- package/simulation/reports/reflexion-learning-2025-11-30T00-09-29-319Z.json +51 -0
- package/simulation/reports/reflexion-learning-2025-11-30T00-28-37-659Z.json +51 -0
- package/simulation/reports/reflexion-learning-2025-11-30T01-31-30-690Z.json +29 -0
- package/simulation/reports/reflexion-learning-2025-11-30T03-38-06-937Z.json +29 -0
- package/simulation/reports/research-foundations.md +2004 -0
- package/simulation/reports/research-swarm-2025-11-30T01-36-54-647Z.json +30 -0
- package/simulation/reports/scalability-deployment.md +2404 -0
- package/simulation/reports/skill-evolution-2025-11-29T23-35-15-945Z.json +36 -0
- package/simulation/reports/skill-evolution-2025-11-30T01-03-17-995Z.json +30 -0
- package/simulation/reports/skill-evolution-2025-11-30T01-03-48-441Z.json +30 -0
- package/simulation/reports/skill-evolution-2025-11-30T01-05-00-554Z.json +30 -0
- package/simulation/reports/skill-evolution-2025-11-30T01-06-11-436Z.json +30 -0
- package/simulation/reports/skill-evolution-2025-11-30T01-06-51-979Z.json +30 -0
- package/simulation/reports/skill-evolution-2025-11-30T01-07-32-695Z.json +40 -0
- package/simulation/reports/stock-market-emergence-2025-11-30T00-11-43-865Z.json +56 -0
- package/simulation/reports/stock-market-emergence-2025-11-30T00-28-57-495Z.json +56 -0
- package/simulation/reports/strange-loops-2025-11-29T23-37-30-621Z.json +78 -0
- package/simulation/reports/strange-loops-2025-11-30T00-07-55-415Z.json +30 -0
- package/simulation/reports/strange-loops-2025-11-30T00-09-35-133Z.json +30 -0
- package/simulation/reports/strange-loops-2025-11-30T00-48-50-744Z.json +24 -0
- package/simulation/reports/strange-loops-2025-11-30T00-54-48-044Z.json +24 -0
- package/simulation/reports/strange-loops-2025-11-30T00-57-27-633Z.json +24 -0
- package/simulation/reports/strange-loops-2025-11-30T00-57-59-135Z.json +42 -0
- package/simulation/reports/sublinear-solver-2025-11-30T01-36-33-134Z.json +30 -0
- package/simulation/reports/temporal-lead-solver-2025-11-30T01-36-38-628Z.json +30 -0
- package/simulation/reports/use-cases-applications.md +2212 -0
- package/simulation/reports/voting-system-consensus-2025-11-30T00-11-37-199Z.json +58 -0
- package/simulation/reports/voting-system-consensus-2025-11-30T00-28-47-735Z.json +58 -0
- package/simulation/runner.ts +300 -0
- package/simulation/scenarios/README-advanced/aidefence-integration.md +63 -0
- package/simulation/scenarios/README-advanced/bmssp-integration.md +58 -0
- package/simulation/scenarios/README-advanced/consciousness-explorer.md +53 -0
- package/simulation/scenarios/README-advanced/goalie-integration.md +61 -0
- package/simulation/scenarios/README-advanced/psycho-symbolic-reasoner.md +55 -0
- package/simulation/scenarios/README-advanced/research-swarm.md +63 -0
- package/simulation/scenarios/README-advanced/sublinear-solver.md +58 -0
- package/simulation/scenarios/README-advanced/temporal-lead-solver.md +55 -0
- package/simulation/scenarios/README-basic/causal-reasoning.md +39 -0
- package/simulation/scenarios/README-basic/graph-traversal.md +41 -0
- package/simulation/scenarios/README-basic/lean-agentic-swarm.md +122 -0
- package/simulation/scenarios/README-basic/multi-agent-swarm.md +34 -0
- package/simulation/scenarios/README-basic/reflexion-learning.md +41 -0
- package/simulation/scenarios/README-basic/skill-evolution.md +38 -0
- package/simulation/scenarios/README-basic/stock-market-emergence.md +28 -0
- package/simulation/scenarios/README-basic/strange-loops.md +36 -0
- package/simulation/scenarios/README-basic/voting-system-consensus.md +28 -0
- package/simulation/scenarios/README.md +438 -0
- package/simulation/scenarios/aidefence-integration.ts +165 -0
- package/simulation/scenarios/bmssp-integration.ts +137 -0
- package/simulation/scenarios/causal-reasoning.ts +143 -0
- package/simulation/scenarios/consciousness-explorer.ts +139 -0
- package/simulation/scenarios/domain-examples/.claude-flow/metrics/agent-metrics.json +1 -0
- package/simulation/scenarios/domain-examples/.claude-flow/metrics/performance.json +87 -0
- package/simulation/scenarios/domain-examples/.claude-flow/metrics/task-metrics.json +10 -0
- package/simulation/scenarios/domain-examples/README.md +525 -0
- package/simulation/scenarios/domain-examples/e-commerce-recommendations.ts +220 -0
- package/simulation/scenarios/domain-examples/index.ts +81 -0
- package/simulation/scenarios/domain-examples/iot-sensor-networks.ts +290 -0
- package/simulation/scenarios/domain-examples/medical-imaging.ts +181 -0
- package/simulation/scenarios/domain-examples/robotics-navigation.ts +214 -0
- package/simulation/scenarios/domain-examples/scientific-research.ts +250 -0
- package/simulation/scenarios/domain-examples/trading-systems.ts +138 -0
- package/simulation/scenarios/goalie-integration.ts +161 -0
- package/simulation/scenarios/graph-traversal.ts +129 -0
- package/simulation/scenarios/latent-space/OPTIMIZATION-COMPLETE.md +287 -0
- package/simulation/scenarios/latent-space/README-attention-analysis.md +170 -0
- package/simulation/scenarios/latent-space/README-clustering-analysis.md +239 -0
- package/simulation/scenarios/latent-space/README-hnsw-exploration.md +199 -0
- package/simulation/scenarios/latent-space/README-hypergraph-exploration.md +279 -0
- package/simulation/scenarios/latent-space/README-neural-augmentation.md +267 -0
- package/simulation/scenarios/latent-space/README-quantum-hybrid.md +276 -0
- package/simulation/scenarios/latent-space/README-self-organizing-hnsw.md +244 -0
- package/simulation/scenarios/latent-space/README-traversal-optimization.md +212 -0
- package/simulation/scenarios/latent-space/attention-analysis.ts +598 -0
- package/simulation/scenarios/latent-space/clustering-analysis.ts +796 -0
- package/simulation/scenarios/latent-space/hnsw-exploration.ts +526 -0
- package/simulation/scenarios/latent-space/hypergraph-exploration.ts +706 -0
- package/simulation/scenarios/latent-space/index.ts +47 -0
- package/simulation/scenarios/latent-space/neural-augmentation.ts +604 -0
- package/simulation/scenarios/latent-space/quantum-hybrid.ts +508 -0
- package/simulation/scenarios/latent-space/self-organizing-hnsw.ts +680 -0
- package/simulation/scenarios/latent-space/traversal-optimization.ts +782 -0
- package/simulation/scenarios/lean-agentic-swarm.ts +182 -0
- package/simulation/scenarios/multi-agent-swarm.ts +146 -0
- package/simulation/scenarios/psycho-symbolic-reasoner.ts +136 -0
- package/simulation/scenarios/reflexion-learning.ts +132 -0
- package/simulation/scenarios/research-swarm.ts +187 -0
- package/simulation/scenarios/skill-evolution.ts +135 -0
- package/simulation/scenarios/stock-market-emergence.ts +323 -0
- package/simulation/scenarios/strange-loops.ts +175 -0
- package/simulation/scenarios/sublinear-solver.ts +108 -0
- package/simulation/scenarios/temporal-lead-solver.ts +121 -0
- package/simulation/scenarios/voting-system-consensus.ts +251 -0
- package/simulation/tests/latent-space/attention-analysis.test.ts +204 -0
- package/simulation/tests/latent-space/clustering-analysis.test.ts +281 -0
- package/simulation/tests/latent-space/hnsw-exploration.test.ts +253 -0
- package/simulation/tests/latent-space/hypergraph-exploration.test.ts +295 -0
- package/simulation/tests/latent-space/neural-augmentation.test.ts +326 -0
- package/simulation/tests/latent-space/quantum-hybrid.test.ts +307 -0
- package/simulation/tests/latent-space/self-organizing-hnsw.test.ts +291 -0
- package/simulation/tests/latent-space/traversal-optimization.test.ts +261 -0
- package/simulation/types.ts +177 -0
- package/simulation/utils/PerformanceOptimizer.ts +269 -0
- package/src/cli/lib/history-tracker.ts +7 -1
|
@@ -0,0 +1,817 @@
|
|
|
1
|
+
# AgentDB Simulation Troubleshooting Guide
|
|
2
|
+
|
|
3
|
+
**Version**: 2.0.0
|
|
4
|
+
**Last Updated**: 2025-11-30
|
|
5
|
+
|
|
6
|
+
Common issues, errors, and solutions for AgentDB simulations. Find quick fixes and workarounds for typical problems.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 🚨 Quick Diagnostics
|
|
11
|
+
|
|
12
|
+
### Run Self-Check
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
agentdb simulate --self-check
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**Checks**:
|
|
19
|
+
- CLI installation
|
|
20
|
+
- Node.js version
|
|
21
|
+
- Required dependencies
|
|
22
|
+
- Write permissions
|
|
23
|
+
- Memory availability
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 📋 Table of Contents
|
|
28
|
+
|
|
29
|
+
- [Installation Issues](#installation-issues)
|
|
30
|
+
- [CLI Errors](#cli-errors)
|
|
31
|
+
- [Simulation Failures](#simulation-failures)
|
|
32
|
+
- [Performance Issues](#performance-issues)
|
|
33
|
+
- [Memory Errors](#memory-errors)
|
|
34
|
+
- [Report Generation](#report-generation)
|
|
35
|
+
- [Wizard Issues](#wizard-issues)
|
|
36
|
+
- [Platform-Specific](#platform-specific)
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 🔧 Installation Issues
|
|
41
|
+
|
|
42
|
+
### "Command not found: agentdb"
|
|
43
|
+
|
|
44
|
+
**Problem**: CLI not in PATH after installation
|
|
45
|
+
|
|
46
|
+
**Solution 1** - Global install:
|
|
47
|
+
```bash
|
|
48
|
+
npm install -g agentdb --force
|
|
49
|
+
npm list -g agentdb
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**Solution 2** - Add to PATH:
|
|
53
|
+
```bash
|
|
54
|
+
# macOS/Linux
|
|
55
|
+
echo 'export PATH="$PATH:$(npm bin -g)"' >> ~/.bashrc
|
|
56
|
+
source ~/.bashrc
|
|
57
|
+
|
|
58
|
+
# Windows
|
|
59
|
+
npm config get prefix
|
|
60
|
+
# Add that path to System Environment Variables
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Solution 3** - Use npx:
|
|
64
|
+
```bash
|
|
65
|
+
npx agentdb simulate hnsw
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### "Cannot find module 'inquirer'"
|
|
71
|
+
|
|
72
|
+
**Problem**: Missing dependencies
|
|
73
|
+
|
|
74
|
+
**Solution**:
|
|
75
|
+
```bash
|
|
76
|
+
npm install -g inquirer chalk ora commander
|
|
77
|
+
agentdb simulate --wizard
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Or**: Reinstall AgentDB:
|
|
81
|
+
```bash
|
|
82
|
+
npm uninstall -g agentdb
|
|
83
|
+
npm install -g agentdb
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
### TypeScript Compilation Errors
|
|
89
|
+
|
|
90
|
+
**Problem**: Build fails with TypeScript errors
|
|
91
|
+
|
|
92
|
+
**Solution 1** - Clean build:
|
|
93
|
+
```bash
|
|
94
|
+
cd packages/agentdb/simulation
|
|
95
|
+
npm run clean
|
|
96
|
+
npm run build
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Solution 2** - Check TypeScript version:
|
|
100
|
+
```bash
|
|
101
|
+
npm install -g typescript@latest
|
|
102
|
+
tsc --version # Should be 5.0+
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Solution 3** - Clear cache:
|
|
106
|
+
```bash
|
|
107
|
+
rm -rf node_modules package-lock.json
|
|
108
|
+
npm cache clean --force
|
|
109
|
+
npm install
|
|
110
|
+
npm run build
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## ⚠️ CLI Errors
|
|
116
|
+
|
|
117
|
+
### "Scenario not found"
|
|
118
|
+
|
|
119
|
+
**Error**:
|
|
120
|
+
```
|
|
121
|
+
Error: Scenario 'hnws' not found
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**Problem**: Typo in scenario name
|
|
125
|
+
|
|
126
|
+
**Solution**:
|
|
127
|
+
```bash
|
|
128
|
+
# List available scenarios
|
|
129
|
+
agentdb simulate --list
|
|
130
|
+
|
|
131
|
+
# Correct command
|
|
132
|
+
agentdb simulate hnsw # Not 'hnws'
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
**Available scenarios**:
|
|
136
|
+
- `hnsw` (not hnws, HNSW, or hnsw-exploration)
|
|
137
|
+
- `attention` (not attention-analysis)
|
|
138
|
+
- `clustering`
|
|
139
|
+
- `traversal`
|
|
140
|
+
- `hypergraph`
|
|
141
|
+
- `self-organizing`
|
|
142
|
+
- `neural`
|
|
143
|
+
- `quantum`
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
### "Invalid option"
|
|
148
|
+
|
|
149
|
+
**Error**:
|
|
150
|
+
```
|
|
151
|
+
Error: Unknown option '--node'
|
|
152
|
+
Did you mean '--nodes'?
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Problem**: Incorrect flag name
|
|
156
|
+
|
|
157
|
+
**Solution**: Check spelling and use autocomplete:
|
|
158
|
+
```bash
|
|
159
|
+
# Enable bash autocomplete
|
|
160
|
+
agentdb completion bash > /usr/local/etc/bash_completion.d/agentdb
|
|
161
|
+
|
|
162
|
+
# Or check CLI reference
|
|
163
|
+
agentdb simulate hnsw --help
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**Common typos**:
|
|
167
|
+
- `--node` → `--nodes`
|
|
168
|
+
- `--dimension` → `--dimensions`
|
|
169
|
+
- `--iteration` → `--iterations`
|
|
170
|
+
- `--backend ruvector` → `--backend ruvector` (space, not =)
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
### "Permission denied"
|
|
175
|
+
|
|
176
|
+
**Error**:
|
|
177
|
+
```
|
|
178
|
+
EACCES: permission denied, mkdir '/var/agentdb/reports'
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
**Problem**: No write permissions
|
|
182
|
+
|
|
183
|
+
**Solution 1** - Change output directory:
|
|
184
|
+
```bash
|
|
185
|
+
agentdb simulate hnsw --output ~/agentdb-reports/
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
**Solution 2** - Fix permissions:
|
|
189
|
+
```bash
|
|
190
|
+
sudo chown -R $(whoami) /var/agentdb
|
|
191
|
+
chmod -R 755 /var/agentdb
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**Solution 3** - Use local directory:
|
|
195
|
+
```bash
|
|
196
|
+
mkdir -p ./reports
|
|
197
|
+
agentdb simulate hnsw --output ./reports/
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## ❌ Simulation Failures
|
|
203
|
+
|
|
204
|
+
### "Simulation crashed mid-execution"
|
|
205
|
+
|
|
206
|
+
**Error**:
|
|
207
|
+
```
|
|
208
|
+
Building graph... [████████ ] 82%
|
|
209
|
+
Segmentation fault (core dumped)
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**Problem**: Memory overflow or native code crash
|
|
213
|
+
|
|
214
|
+
**Solution 1** - Reduce dataset size:
|
|
215
|
+
```bash
|
|
216
|
+
agentdb simulate hnsw \
|
|
217
|
+
--nodes 10000 \ # Reduced from 100K
|
|
218
|
+
--dimensions 128 # Reduced from 384
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
**Solution 2** - Increase memory:
|
|
222
|
+
```bash
|
|
223
|
+
NODE_OPTIONS="--max-old-space-size=8192" \
|
|
224
|
+
agentdb simulate hnsw
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
**Solution 3** - Check logs:
|
|
228
|
+
```bash
|
|
229
|
+
tail -n 100 ~/.agentdb/simulation-error.log
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
### "NaN in results"
|
|
235
|
+
|
|
236
|
+
**Error**:
|
|
237
|
+
```
|
|
238
|
+
Latency: NaN μs
|
|
239
|
+
Recall: NaN %
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
**Problem**: Division by zero or invalid data
|
|
243
|
+
|
|
244
|
+
**Solution 1** - Validate input:
|
|
245
|
+
```bash
|
|
246
|
+
# Ensure nodes > 0
|
|
247
|
+
agentdb simulate hnsw --nodes 10000 # Not 0
|
|
248
|
+
|
|
249
|
+
# Ensure dimensions > 0
|
|
250
|
+
agentdb simulate hnsw --dimensions 384 # Not 0
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**Solution 2** - Check random seed:
|
|
254
|
+
```bash
|
|
255
|
+
# Use fixed seed for reproducibility
|
|
256
|
+
agentdb simulate hnsw --seed 42
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
**Solution 3** - Report bug:
|
|
260
|
+
```bash
|
|
261
|
+
agentdb simulate hnsw \
|
|
262
|
+
--verbose \
|
|
263
|
+
--output ./debug-report.md 2> error.log
|
|
264
|
+
# Share error.log and debug-report.md
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
### "Simulation timeout"
|
|
270
|
+
|
|
271
|
+
**Error**:
|
|
272
|
+
```
|
|
273
|
+
Timeout: Simulation exceeded 10 minutes
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
**Problem**: Dataset too large or infinite loop
|
|
277
|
+
|
|
278
|
+
**Solution 1** - Increase timeout:
|
|
279
|
+
```bash
|
|
280
|
+
agentdb simulate hnsw \
|
|
281
|
+
--timeout 3600000 # 1 hour in milliseconds
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
**Solution 2** - Reduce complexity:
|
|
285
|
+
```bash
|
|
286
|
+
agentdb simulate hnsw \
|
|
287
|
+
--nodes 50000 \
|
|
288
|
+
--iterations 1
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
**Solution 3** - Use simpler config:
|
|
292
|
+
```bash
|
|
293
|
+
agentdb simulate hnsw \
|
|
294
|
+
--no-neural \
|
|
295
|
+
--no-self-healing
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
## 🐌 Performance Issues
|
|
301
|
+
|
|
302
|
+
### Simulation Runs Too Slowly
|
|
303
|
+
|
|
304
|
+
**Problem**: Takes minutes instead of seconds
|
|
305
|
+
|
|
306
|
+
**Solution 1** - Check CPU usage:
|
|
307
|
+
```bash
|
|
308
|
+
# macOS
|
|
309
|
+
top -pid $(pgrep -f agentdb)
|
|
310
|
+
|
|
311
|
+
# Linux
|
|
312
|
+
htop -p $(pgrep -f agentdb)
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
**Solution 2** - Reduce dataset:
|
|
316
|
+
```bash
|
|
317
|
+
agentdb simulate hnsw \
|
|
318
|
+
--nodes 10000 \ # vs 100K
|
|
319
|
+
--iterations 1 # vs 3
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
**Solution 3** - Enable parallel processing:
|
|
323
|
+
```bash
|
|
324
|
+
agentdb simulate hnsw \
|
|
325
|
+
--parallel \
|
|
326
|
+
--threads 8 # Use all CPU cores
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
**Solution 4** - Disable expensive features:
|
|
330
|
+
```bash
|
|
331
|
+
agentdb simulate hnsw \
|
|
332
|
+
--no-benchmark \
|
|
333
|
+
--no-validation \
|
|
334
|
+
--simple # No progress bars
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
---
|
|
338
|
+
|
|
339
|
+
### Expected Performance
|
|
340
|
+
|
|
341
|
+
| Dataset Size | Expected Duration | Tolerance |
|
|
342
|
+
|-------------|-------------------|-----------|
|
|
343
|
+
| 10K vectors | 0.8-1.2s | ±30% |
|
|
344
|
+
| 100K vectors | 4-6s | ±30% |
|
|
345
|
+
| 1M vectors | 35-50s | ±40% |
|
|
346
|
+
| 10M vectors | 5-8min | ±50% |
|
|
347
|
+
|
|
348
|
+
**If much slower**:
|
|
349
|
+
1. Check background processes
|
|
350
|
+
2. Ensure SSD (not HDD)
|
|
351
|
+
3. Check Node.js version (18+ recommended)
|
|
352
|
+
4. Update to latest AgentDB
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## 💾 Memory Errors
|
|
357
|
+
|
|
358
|
+
### "JavaScript heap out of memory"
|
|
359
|
+
|
|
360
|
+
**Error**:
|
|
361
|
+
```
|
|
362
|
+
FATAL ERROR: Reached heap limit Allocation failed
|
|
363
|
+
JavaScript heap out of memory
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
**Problem**: Dataset too large for available RAM
|
|
367
|
+
|
|
368
|
+
**Solution 1** - Increase heap size:
|
|
369
|
+
```bash
|
|
370
|
+
export NODE_OPTIONS="--max-old-space-size=8192"
|
|
371
|
+
agentdb simulate hnsw --nodes 1000000
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
**Solution 2** - Reduce dataset:
|
|
375
|
+
```bash
|
|
376
|
+
agentdb simulate hnsw --nodes 50000
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
**Solution 3** - Use disk-based mode:
|
|
380
|
+
```bash
|
|
381
|
+
agentdb simulate hnsw --disk-mode
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
**Memory Requirements**:
|
|
385
|
+
| Vectors | Dimensions | Memory Needed |
|
|
386
|
+
|---------|-----------|---------------|
|
|
387
|
+
| 10K | 384 | ~15 MB |
|
|
388
|
+
| 100K | 384 | ~150 MB |
|
|
389
|
+
| 1M | 384 | ~1.5 GB |
|
|
390
|
+
| 10M | 384 | ~15 GB |
|
|
391
|
+
|
|
392
|
+
**Formula**: `Memory ≈ vectors × dimensions × 4 bytes × 1.2 (overhead)`
|
|
393
|
+
|
|
394
|
+
---
|
|
395
|
+
|
|
396
|
+
### "Cannot allocate memory"
|
|
397
|
+
|
|
398
|
+
**Error**:
|
|
399
|
+
```
|
|
400
|
+
Error: Cannot allocate memory
|
|
401
|
+
at Buffer.allocUnsafe (buffer.js)
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
**Problem**: System RAM exhausted
|
|
405
|
+
|
|
406
|
+
**Solution 1** - Check available RAM:
|
|
407
|
+
```bash
|
|
408
|
+
# macOS
|
|
409
|
+
vm_stat | grep "Pages free"
|
|
410
|
+
|
|
411
|
+
# Linux
|
|
412
|
+
free -h
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
**Solution 2** - Close other applications:
|
|
416
|
+
```bash
|
|
417
|
+
# macOS
|
|
418
|
+
killall Chrome "Google Chrome" Safari
|
|
419
|
+
|
|
420
|
+
# Linux
|
|
421
|
+
killall chrome firefox
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
**Solution 3** - Use streaming mode:
|
|
425
|
+
```bash
|
|
426
|
+
agentdb simulate hnsw --stream
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
---
|
|
430
|
+
|
|
431
|
+
## 📄 Report Generation
|
|
432
|
+
|
|
433
|
+
### "Failed to write report"
|
|
434
|
+
|
|
435
|
+
**Error**:
|
|
436
|
+
```
|
|
437
|
+
Error: ENOENT: no such file or directory, open 'reports/hnsw.md'
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
**Problem**: Output directory doesn't exist
|
|
441
|
+
|
|
442
|
+
**Solution**:
|
|
443
|
+
```bash
|
|
444
|
+
mkdir -p ./reports
|
|
445
|
+
agentdb simulate hnsw --output ./reports/
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
---
|
|
449
|
+
|
|
450
|
+
### "Report file is empty"
|
|
451
|
+
|
|
452
|
+
**Problem**: Report generated but 0 bytes
|
|
453
|
+
|
|
454
|
+
**Solution 1** - Check disk space:
|
|
455
|
+
```bash
|
|
456
|
+
df -h
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
**Solution 2** - Check permissions:
|
|
460
|
+
```bash
|
|
461
|
+
ls -la ./reports/
|
|
462
|
+
chmod 755 ./reports/
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
**Solution 3** - Re-run with verbose:
|
|
466
|
+
```bash
|
|
467
|
+
agentdb simulate hnsw --verbose --output ./reports/
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
---
|
|
471
|
+
|
|
472
|
+
### "Cannot open report in browser"
|
|
473
|
+
|
|
474
|
+
**Problem**: HTML report won't open
|
|
475
|
+
|
|
476
|
+
**Solution 1** - Check file path:
|
|
477
|
+
```bash
|
|
478
|
+
# Use absolute path
|
|
479
|
+
open file:///$(pwd)/reports/hnsw.html
|
|
480
|
+
|
|
481
|
+
# Or relative
|
|
482
|
+
open ./reports/hnsw.html
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
**Solution 2** - Convert to markdown:
|
|
486
|
+
```bash
|
|
487
|
+
agentdb simulate hnsw --format md
|
|
488
|
+
cat ./reports/hnsw.md
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
---
|
|
492
|
+
|
|
493
|
+
## 🧙 Wizard Issues
|
|
494
|
+
|
|
495
|
+
### Wizard Won't Start
|
|
496
|
+
|
|
497
|
+
**Error**:
|
|
498
|
+
```
|
|
499
|
+
TypeError: inquirer.prompt is not a function
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
**Problem**: Incompatible inquirer version
|
|
503
|
+
|
|
504
|
+
**Solution**:
|
|
505
|
+
```bash
|
|
506
|
+
npm install -g inquirer@^8.0.0
|
|
507
|
+
agentdb simulate --wizard
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
---
|
|
511
|
+
|
|
512
|
+
### Keyboard Input Not Working
|
|
513
|
+
|
|
514
|
+
**Problem**: Arrow keys print characters instead of navigating
|
|
515
|
+
|
|
516
|
+
**Solution 1** - Use alternative keys:
|
|
517
|
+
- `j`: Move down
|
|
518
|
+
- `k`: Move up
|
|
519
|
+
- `n`: Next
|
|
520
|
+
- `p`: Previous
|
|
521
|
+
|
|
522
|
+
**Solution 2** - Update terminal:
|
|
523
|
+
```bash
|
|
524
|
+
# macOS
|
|
525
|
+
brew install --cask iterm2
|
|
526
|
+
|
|
527
|
+
# Linux (Ubuntu)
|
|
528
|
+
sudo apt install gnome-terminal
|
|
529
|
+
|
|
530
|
+
# Windows
|
|
531
|
+
# Use Windows Terminal from Microsoft Store
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
**Solution 3** - Use non-interactive mode:
|
|
535
|
+
```bash
|
|
536
|
+
agentdb simulate hnsw # Direct command
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
---
|
|
540
|
+
|
|
541
|
+
### Wizard Crashes
|
|
542
|
+
|
|
543
|
+
**Error**:
|
|
544
|
+
```
|
|
545
|
+
Unhandled promise rejection
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
**Problem**: Unexpected input or bug
|
|
549
|
+
|
|
550
|
+
**Solution 1** - Check error log:
|
|
551
|
+
```bash
|
|
552
|
+
cat ~/.agentdb/wizard-error.log
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
**Solution 2** - Run with verbose:
|
|
556
|
+
```bash
|
|
557
|
+
agentdb simulate --wizard --verbose 2> wizard-debug.log
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
**Solution 3** - Skip wizard:
|
|
561
|
+
```bash
|
|
562
|
+
agentdb simulate hnsw # Use direct command
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
---
|
|
566
|
+
|
|
567
|
+
### Can't See Progress Bars
|
|
568
|
+
|
|
569
|
+
**Problem**: Progress bars render as text
|
|
570
|
+
|
|
571
|
+
**Solution 1** - Disable spinners:
|
|
572
|
+
```bash
|
|
573
|
+
agentdb simulate --wizard --no-spinner
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
**Solution 2** - Simple mode:
|
|
577
|
+
```bash
|
|
578
|
+
agentdb simulate --wizard --simple
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
**Solution 3** - Check terminal:
|
|
582
|
+
```bash
|
|
583
|
+
echo $TERM # Should show xterm-256color or similar
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
---
|
|
587
|
+
|
|
588
|
+
## 💻 Platform-Specific
|
|
589
|
+
|
|
590
|
+
### macOS Issues
|
|
591
|
+
|
|
592
|
+
#### "Cannot verify developer"
|
|
593
|
+
|
|
594
|
+
**Error**:
|
|
595
|
+
```
|
|
596
|
+
"agentdb" cannot be opened because the developer cannot be verified
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
**Solution**:
|
|
600
|
+
```bash
|
|
601
|
+
# Allow in Security & Privacy
|
|
602
|
+
sudo xattr -d com.apple.quarantine $(which agentdb)
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
---
|
|
606
|
+
|
|
607
|
+
#### "Permission denied" (macOS)
|
|
608
|
+
|
|
609
|
+
**Solution**:
|
|
610
|
+
```bash
|
|
611
|
+
sudo npm install -g agentdb --unsafe-perm
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
---
|
|
615
|
+
|
|
616
|
+
### Linux Issues
|
|
617
|
+
|
|
618
|
+
#### Missing Build Tools
|
|
619
|
+
|
|
620
|
+
**Error**:
|
|
621
|
+
```
|
|
622
|
+
gyp: No Xcode or CLT version detected!
|
|
623
|
+
```
|
|
624
|
+
|
|
625
|
+
**Solution (Ubuntu/Debian)**:
|
|
626
|
+
```bash
|
|
627
|
+
sudo apt update
|
|
628
|
+
sudo apt install build-essential
|
|
629
|
+
npm install -g agentdb
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
**Solution (Fedora/RHEL)**:
|
|
633
|
+
```bash
|
|
634
|
+
sudo dnf groupinstall "Development Tools"
|
|
635
|
+
npm install -g agentdb
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
---
|
|
639
|
+
|
|
640
|
+
#### SELinux Blocks Execution
|
|
641
|
+
|
|
642
|
+
**Error**:
|
|
643
|
+
```
|
|
644
|
+
SELinux is preventing agentdb from executing
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
**Solution 1** - Allow execution:
|
|
648
|
+
```bash
|
|
649
|
+
sudo semanage fcontext -a -t bin_t "$(which agentdb)"
|
|
650
|
+
sudo restorecon -v "$(which agentdb)"
|
|
651
|
+
```
|
|
652
|
+
|
|
653
|
+
**Solution 2** - Disable SELinux (not recommended):
|
|
654
|
+
```bash
|
|
655
|
+
sudo setenforce 0
|
|
656
|
+
```
|
|
657
|
+
|
|
658
|
+
---
|
|
659
|
+
|
|
660
|
+
### Windows Issues
|
|
661
|
+
|
|
662
|
+
#### "agentdb is not recognized"
|
|
663
|
+
|
|
664
|
+
**Solution 1** - Use full path:
|
|
665
|
+
```cmd
|
|
666
|
+
%APPDATA%\npm\agentdb simulate hnsw
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
**Solution 2** - Add to PATH:
|
|
670
|
+
```cmd
|
|
671
|
+
setx PATH "%PATH%;%APPDATA%\npm"
|
|
672
|
+
```
|
|
673
|
+
|
|
674
|
+
**Solution 3** - Use npx:
|
|
675
|
+
```cmd
|
|
676
|
+
npx agentdb simulate hnsw
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
---
|
|
680
|
+
|
|
681
|
+
#### PowerShell Execution Policy
|
|
682
|
+
|
|
683
|
+
**Error**:
|
|
684
|
+
```
|
|
685
|
+
agentdb.ps1 cannot be loaded because running scripts is disabled
|
|
686
|
+
```
|
|
687
|
+
|
|
688
|
+
**Solution**:
|
|
689
|
+
```powershell
|
|
690
|
+
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
691
|
+
```
|
|
692
|
+
|
|
693
|
+
---
|
|
694
|
+
|
|
695
|
+
#### Line Ending Issues
|
|
696
|
+
|
|
697
|
+
**Problem**: Files have wrong line endings (CRLF vs LF)
|
|
698
|
+
|
|
699
|
+
**Solution**:
|
|
700
|
+
```bash
|
|
701
|
+
git config --global core.autocrlf input
|
|
702
|
+
git clone https://github.com/ruvnet/agentic-flow.git
|
|
703
|
+
```
|
|
704
|
+
|
|
705
|
+
---
|
|
706
|
+
|
|
707
|
+
## 🔬 Advanced Debugging
|
|
708
|
+
|
|
709
|
+
### Enable Debug Mode
|
|
710
|
+
|
|
711
|
+
```bash
|
|
712
|
+
export DEBUG=agentdb:*
|
|
713
|
+
export AGENTDB_LOG_LEVEL=debug
|
|
714
|
+
agentdb simulate hnsw --verbose
|
|
715
|
+
```
|
|
716
|
+
|
|
717
|
+
---
|
|
718
|
+
|
|
719
|
+
### Capture Full Logs
|
|
720
|
+
|
|
721
|
+
```bash
|
|
722
|
+
agentdb simulate hnsw \
|
|
723
|
+
--verbose \
|
|
724
|
+
2>&1 | tee simulation-debug.log
|
|
725
|
+
```
|
|
726
|
+
|
|
727
|
+
---
|
|
728
|
+
|
|
729
|
+
### Memory Profiling
|
|
730
|
+
|
|
731
|
+
```bash
|
|
732
|
+
node --inspect-brk $(which agentdb) simulate hnsw
|
|
733
|
+
# Open chrome://inspect in Chrome
|
|
734
|
+
```
|
|
735
|
+
|
|
736
|
+
---
|
|
737
|
+
|
|
738
|
+
### Check Dependencies
|
|
739
|
+
|
|
740
|
+
```bash
|
|
741
|
+
npm list -g agentdb
|
|
742
|
+
npm outdated -g
|
|
743
|
+
```
|
|
744
|
+
|
|
745
|
+
---
|
|
746
|
+
|
|
747
|
+
## 📊 Common Error Codes
|
|
748
|
+
|
|
749
|
+
| Code | Meaning | Common Cause |
|
|
750
|
+
|------|---------|--------------|
|
|
751
|
+
| `ENOENT` | File not found | Missing output directory |
|
|
752
|
+
| `EACCES` | Permission denied | No write permissions |
|
|
753
|
+
| `ENOMEM` | Out of memory | Dataset too large |
|
|
754
|
+
| `ETIMEDOUT` | Timeout | Simulation too slow |
|
|
755
|
+
| `ERR_INVALID_ARG_TYPE` | Wrong argument type | String instead of number |
|
|
756
|
+
|
|
757
|
+
---
|
|
758
|
+
|
|
759
|
+
## 🆘 Getting Help
|
|
760
|
+
|
|
761
|
+
### Still Stuck?
|
|
762
|
+
|
|
763
|
+
1. **Check Documentation**:
|
|
764
|
+
- [Quick Start Guide](QUICK-START.md)
|
|
765
|
+
- [CLI Reference](CLI-REFERENCE.md)
|
|
766
|
+
- [Custom Simulations](CUSTOM-SIMULATIONS.md)
|
|
767
|
+
|
|
768
|
+
2. **Search Issues**:
|
|
769
|
+
- [GitHub Issues](https://github.com/ruvnet/agentic-flow/issues)
|
|
770
|
+
- Search for error message
|
|
771
|
+
|
|
772
|
+
3. **Ask Community**:
|
|
773
|
+
- [GitHub Discussions](https://github.com/ruvnet/agentic-flow/discussions)
|
|
774
|
+
- Include: OS, Node version, command used, error log
|
|
775
|
+
|
|
776
|
+
4. **Report Bug**:
|
|
777
|
+
- Create new GitHub issue
|
|
778
|
+
- Include:
|
|
779
|
+
- Command run
|
|
780
|
+
- Full error message
|
|
781
|
+
- `agentdb --version`
|
|
782
|
+
- `node --version`
|
|
783
|
+
- OS and version
|
|
784
|
+
- Steps to reproduce
|
|
785
|
+
|
|
786
|
+
---
|
|
787
|
+
|
|
788
|
+
## 📋 Diagnostic Checklist
|
|
789
|
+
|
|
790
|
+
Before reporting an issue:
|
|
791
|
+
|
|
792
|
+
- [ ] Run `agentdb simulate --self-check`
|
|
793
|
+
- [ ] Update to latest version: `npm update -g agentdb`
|
|
794
|
+
- [ ] Try with minimal dataset: `--nodes 1000`
|
|
795
|
+
- [ ] Check available disk space: `df -h`
|
|
796
|
+
- [ ] Check available RAM: `free -h` (Linux) or `vm_stat` (macOS)
|
|
797
|
+
- [ ] Test with simple scenario: `agentdb simulate hnsw`
|
|
798
|
+
- [ ] Review error logs: `~/.agentdb/*.log`
|
|
799
|
+
- [ ] Search existing issues on GitHub
|
|
800
|
+
|
|
801
|
+
---
|
|
802
|
+
|
|
803
|
+
## 🎯 Quick Fixes Summary
|
|
804
|
+
|
|
805
|
+
| Problem | Quick Fix |
|
|
806
|
+
|---------|-----------|
|
|
807
|
+
| Too slow | `--nodes 10000` (reduce dataset) |
|
|
808
|
+
| Out of memory | `NODE_OPTIONS="--max-old-space-size=8192"` |
|
|
809
|
+
| CLI not found | `npx agentdb simulate hnsw` |
|
|
810
|
+
| Report not generated | `mkdir -p ./reports` |
|
|
811
|
+
| Wizard broken | Use direct command instead |
|
|
812
|
+
| Permission denied | `--output ~/reports/` |
|
|
813
|
+
| TypeScript errors | `npm run clean && npm run build` |
|
|
814
|
+
|
|
815
|
+
---
|
|
816
|
+
|
|
817
|
+
**Still need help?** Open an issue on [GitHub →](https://github.com/ruvnet/agentic-flow/issues)
|