superlocalmemory 3.4.16 → 3.4.18
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/CHANGELOG.md +20 -0
- package/package.json +1 -3
- package/pyproject.toml +10 -1
- package/src/superlocalmemory/cli/setup_wizard.py +30 -0
- package/src/superlocalmemory/server/routes/entity.py +5 -9
- package/src/superlocalmemory/server/routes/helpers.py +120 -15
- package/src/superlocalmemory/server/routes/ingest.py +2 -3
- package/src/superlocalmemory/server/routes/v3_api.py +42 -2
- package/src/superlocalmemory/server/unified_daemon.py +21 -11
- package/src/superlocalmemory.egg-info/PKG-INFO +5 -2
- package/src/superlocalmemory.egg-info/requires.txt +3 -0
- package/docs/ARCHITECTURE.md +0 -149
- package/docs/api-reference.md +0 -284
- package/docs/auto-memory.md +0 -150
- package/docs/cli-reference.md +0 -327
- package/docs/cloud-backup.md +0 -174
- package/docs/compliance.md +0 -191
- package/docs/configuration.md +0 -182
- package/docs/getting-started.md +0 -102
- package/docs/ide-setup.md +0 -261
- package/docs/mcp-tools.md +0 -220
- package/docs/migration-from-v2.md +0 -170
- package/docs/profiles.md +0 -173
- package/docs/screenshots/01-dashboard-main.png +0 -0
- package/docs/screenshots/02-knowledge-graph.png +0 -0
- package/docs/screenshots/03-math-health.png +0 -0
- package/docs/screenshots/03-patterns-learning.png +0 -0
- package/docs/screenshots/04-learning-dashboard.png +0 -0
- package/docs/screenshots/04-recall-lab.png +0 -0
- package/docs/screenshots/05-behavioral-analysis.png +0 -0
- package/docs/screenshots/05-trust-dashboard.png +0 -0
- package/docs/screenshots/06-graph-communities.png +0 -0
- package/docs/screenshots/06-settings.png +0 -0
- package/docs/screenshots/07-memories-blurred.png +0 -0
- package/docs/skill-evolution.md +0 -256
- package/docs/troubleshooting.md +0 -310
- package/docs/v2-archive/ACCESSIBILITY.md +0 -291
- package/docs/v2-archive/ARCHITECTURE.md +0 -886
- package/docs/v2-archive/CLI-COMMANDS-REFERENCE.md +0 -425
- package/docs/v2-archive/COMPRESSION-README.md +0 -390
- package/docs/v2-archive/FRAMEWORK-INTEGRATIONS.md +0 -300
- package/docs/v2-archive/MCP-MANUAL-SETUP.md +0 -775
- package/docs/v2-archive/MCP-TROUBLESHOOTING.md +0 -787
- package/docs/v2-archive/PATTERN-LEARNING.md +0 -228
- package/docs/v2-archive/PROFILES-GUIDE.md +0 -453
- package/docs/v2-archive/RESET-GUIDE.md +0 -353
- package/docs/v2-archive/SEARCH-ENGINE-V2.2.0.md +0 -749
- package/docs/v2-archive/SEARCH-INTEGRATION-GUIDE.md +0 -502
- package/docs/v2-archive/UI-SERVER.md +0 -262
- package/docs/v2-archive/UNIVERSAL-INTEGRATION.md +0 -488
- package/docs/v2-archive/V2.2.0-OPTIONAL-SEARCH.md +0 -666
- package/docs/v2-archive/WINDOWS-INSTALL-README.txt +0 -34
- package/docs/v2-archive/WINDOWS-POST-INSTALL.txt +0 -45
- package/docs/v2-archive/example_graph_usage.py +0 -146
- package/ui/index.html +0 -1879
- package/ui/js/agents.js +0 -192
- package/ui/js/auto-settings.js +0 -399
- package/ui/js/behavioral.js +0 -276
- package/ui/js/clusters.js +0 -206
- package/ui/js/compliance.js +0 -252
- package/ui/js/core.js +0 -246
- package/ui/js/dashboard.js +0 -110
- package/ui/js/events.js +0 -178
- package/ui/js/fact-detail.js +0 -92
- package/ui/js/feedback.js +0 -333
- package/ui/js/graph-core.js +0 -447
- package/ui/js/graph-filters.js +0 -220
- package/ui/js/graph-interactions.js +0 -351
- package/ui/js/graph-ui.js +0 -214
- package/ui/js/ide-status.js +0 -102
- package/ui/js/init.js +0 -45
- package/ui/js/learning.js +0 -435
- package/ui/js/lifecycle.js +0 -298
- package/ui/js/math-health.js +0 -98
- package/ui/js/memories.js +0 -264
- package/ui/js/modal.js +0 -357
- package/ui/js/patterns.js +0 -93
- package/ui/js/profiles.js +0 -236
- package/ui/js/recall-lab.js +0 -292
- package/ui/js/search.js +0 -59
- package/ui/js/settings.js +0 -224
- package/ui/js/timeline.js +0 -32
- package/ui/js/trust-dashboard.js +0 -73
package/docs/skill-evolution.md
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
# Skill Evolution — SuperLocalMemory
|
|
2
|
-
|
|
3
|
-
> Track, analyze, and evolve your AI agent skills automatically.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## What Is Skill Evolution?
|
|
8
|
-
|
|
9
|
-
Skill Evolution turns SuperLocalMemory from a passive memory system into an active learning engine that tracks how your skills perform and helps them improve over time.
|
|
10
|
-
|
|
11
|
-
**The problem:** AI agent skills (SKILL.md files, slash commands, agent definitions) are static. A skill installed today works the same way 6 months from now — even if it failed 50 times, even if a better approach was discovered.
|
|
12
|
-
|
|
13
|
-
**The solution:** SLM observes every skill invocation, builds execution traces, computes performance metrics, and surfaces insights so you (and eventually the system itself) can evolve skills based on real data.
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## How It Works
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
Your session
|
|
21
|
-
│
|
|
22
|
-
│ SLM hook captures every tool call (enriched: input, output, session, project)
|
|
23
|
-
▼
|
|
24
|
-
tool_events table (rich execution data)
|
|
25
|
-
│
|
|
26
|
-
│ SkillPerformanceMiner runs during consolidation
|
|
27
|
-
▼
|
|
28
|
-
Per-skill metrics + behavioral assertions + skill entities
|
|
29
|
-
│
|
|
30
|
-
│ Next session's soft prompts include skill routing recommendations
|
|
31
|
-
▼
|
|
32
|
-
Smarter skill selection, session by session
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Three Data Sources
|
|
36
|
-
|
|
37
|
-
| Source | What It Captures | Cost |
|
|
38
|
-
|--------|-----------------|------|
|
|
39
|
-
| **SLM Hook** (primary) | Every tool call with input/output (500 chars), session ID, project path. Secret scrubbing built-in. | Zero — runs locally, no LLM calls |
|
|
40
|
-
| **ECC Integration** (optional) | Rich observations from [Everything Claude Code](https://github.com/affaan-m/everything-claude-code) via `slm ingest --source ecc` | Zero — reads existing ECC data |
|
|
41
|
-
| **Consolidation Pipeline** | Mines tool_events for patterns, creates assertions, updates skill entities | Zero — statistical analysis only |
|
|
42
|
-
|
|
43
|
-
### What Gets Tracked Per Skill
|
|
44
|
-
|
|
45
|
-
| Metric | Description |
|
|
46
|
-
|--------|-------------|
|
|
47
|
-
| **Invocation count** | How many times the skill was used |
|
|
48
|
-
| **Effective score** | Approximate success rate based on execution trace analysis |
|
|
49
|
-
| **Session count** | How many sessions used this skill |
|
|
50
|
-
| **Skill correlations** | Which skills are frequently used together |
|
|
51
|
-
|
|
52
|
-
### Outcome Heuristic
|
|
53
|
-
|
|
54
|
-
SLM uses a conservative, approximate heuristic to determine if a skill invocation was effective:
|
|
55
|
-
|
|
56
|
-
| Signal | Type | What It Means |
|
|
57
|
-
|--------|------|---------------|
|
|
58
|
-
| Productive tools follow (Edit, Write, Bash success) | Positive | Skill likely helped |
|
|
59
|
-
| Same skill re-invoked within 5 minutes | Negative | Likely retry = failure |
|
|
60
|
-
| Bash errors in next 3 tool events | Negative | Something went wrong |
|
|
61
|
-
| Session continues 10+ events | Weak positive | User stayed engaged |
|
|
62
|
-
|
|
63
|
-
These signals are labeled as **approximate** everywhere. They inform soft prompt routing but do not trigger automatic changes without human review.
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## Dashboard: Skill Evolution Tab
|
|
68
|
-
|
|
69
|
-
The dedicated **Skill Evolution** tab in the SLM dashboard shows:
|
|
70
|
-
|
|
71
|
-
- **Overview cards** — Total skill events, unique skills, performance assertions, skill correlations
|
|
72
|
-
- **Skill performance cards** — Per-skill effective score, invocation count, confidence level
|
|
73
|
-
- **Evolution Engine status** — Backend detection, enable/disable toggle, run button
|
|
74
|
-
- **Skill Lineage DAG** — Visual graph of evolved skill versions (parent → child relationships)
|
|
75
|
-
- **Lineage table** — Clickable rows showing evolution type, status, verification result
|
|
76
|
-
- **Skill correlations** — Which skills work well together
|
|
77
|
-
|
|
78
|
-
Access: Open `http://localhost:8765` and navigate to the Skill Evolution tab in the sidebar.
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
## IDE Compatibility
|
|
83
|
-
|
|
84
|
-
| IDE | Status | How |
|
|
85
|
-
|-----|--------|-----|
|
|
86
|
-
| **Claude Code** | Supported | SLM hook auto-registered via `slm init` |
|
|
87
|
-
| **Cursor** | Planned | Adapter needed |
|
|
88
|
-
| **Windsurf** | Planned | Adapter needed |
|
|
89
|
-
| **VS Code Copilot** | Planned | Extension events adapter needed |
|
|
90
|
-
| **JetBrains** | Planned | Adapter needed |
|
|
91
|
-
| **Any IDE** | API available | POST to `/api/v3/tool-event` directly |
|
|
92
|
-
|
|
93
|
-
The backend (API, miner, database, dashboard) is fully IDE-agnostic. Any client that POSTs tool events to the `/api/v3/tool-event` endpoint gets full benefit. The hook that ships with SLM is currently optimized for Claude Code.
|
|
94
|
-
|
|
95
|
-
### API Endpoint
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
POST http://localhost:8765/api/v3/tool-event
|
|
99
|
-
Content-Type: application/json
|
|
100
|
-
|
|
101
|
-
{
|
|
102
|
-
"tool_name": "Skill",
|
|
103
|
-
"event_type": "complete",
|
|
104
|
-
"input_summary": "{\"skill\": \"my-skill-name\", \"args\": \"...\"}",
|
|
105
|
-
"output_summary": "{\"success\": true}",
|
|
106
|
-
"session_id": "your-session-id",
|
|
107
|
-
"project_path": "/path/to/project"
|
|
108
|
-
}
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
All fields except `tool_name` are optional. Existing integrations that send only `tool_name` + `event_type` continue to work.
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## ECC Integration
|
|
116
|
-
|
|
117
|
-
[Everything Claude Code (ECC)](https://github.com/affaan-m/everything-claude-code) is a popular plugin for Claude Code that provides continuous learning, instinct-based pattern detection, and a rich observation pipeline.
|
|
118
|
-
|
|
119
|
-
SLM's skill observation patterns were inspired by ECC's architecture. If you have ECC installed, you can enrich SLM's skill tracking with ECC's deeper observations:
|
|
120
|
-
|
|
121
|
-
```bash
|
|
122
|
-
# One-time import of existing ECC observations
|
|
123
|
-
slm ingest --source ecc
|
|
124
|
-
|
|
125
|
-
# Preview without writing (dry run)
|
|
126
|
-
slm ingest --source ecc --dry-run
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
This reads ECC's observation files from `~/.claude/homunculus/projects/*/observations.jsonl` and imports them into SLM's `tool_events` table with full input/output preservation.
|
|
130
|
-
|
|
131
|
-
**ECC is not required.** SLM is fully self-sufficient — its own hook captures all the data needed for skill tracking. ECC integration is an optional enhancement for users who want both systems working together.
|
|
132
|
-
|
|
133
|
-
---
|
|
134
|
-
|
|
135
|
-
## Configuration
|
|
136
|
-
|
|
137
|
-
### Skill Tracking (C1 — always on)
|
|
138
|
-
|
|
139
|
-
Skill performance tracking is enabled by default when the SLM hook is registered. Zero-LLM, zero-cost. Runs as Step 10 in the consolidation pipeline.
|
|
140
|
-
|
|
141
|
-
```bash
|
|
142
|
-
slm status # Shows hook registration status
|
|
143
|
-
slm consolidate --cognitive # Trigger manual consolidation
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### Skill Evolution (C2 — off by default)
|
|
147
|
-
|
|
148
|
-
The Skill Evolution Engine uses LLM calls to generate improved skill versions. **It is OFF by default** — end users must opt in.
|
|
149
|
-
|
|
150
|
-
**Why off by default:** Evolution makes LLM calls (confirmation gate + mutation + blind verification). Even with budget caps, users should consciously enable this and configure their LLM backend.
|
|
151
|
-
|
|
152
|
-
#### Enable via CLI
|
|
153
|
-
|
|
154
|
-
```bash
|
|
155
|
-
slm config set evolution.enabled true
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
#### Enable via Interactive Installer
|
|
159
|
-
|
|
160
|
-
```bash
|
|
161
|
-
slm setup # Interactive wizard includes evolution opt-in
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
#### Enable via Dashboard
|
|
165
|
-
|
|
166
|
-
Navigate to Settings → Skill Evolution → Enable.
|
|
167
|
-
|
|
168
|
-
### LLM Backend — Auto-Detect
|
|
169
|
-
|
|
170
|
-
Evolution uses a single auto-detect chain. No manual configuration needed for most users:
|
|
171
|
-
|
|
172
|
-
```
|
|
173
|
-
Priority 1: `claude` CLI available → spawn `claude --model haiku` (FREE, best quality)
|
|
174
|
-
Priority 2: Ollama running → use Ollama (FREE, local)
|
|
175
|
-
Priority 3: API key set → use Anthropic/OpenAI API (paid)
|
|
176
|
-
Priority 4: Nothing available → dashboard-only (show candidates, manual evolution)
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
This means:
|
|
180
|
-
- **Claude Code users:** Evolution works for free — uses your existing Claude subscription
|
|
181
|
-
- **Other IDE users with Ollama:** Evolution works for free — uses local Ollama
|
|
182
|
-
- **Advanced users:** Can point at Anthropic/OpenAI API if preferred
|
|
183
|
-
|
|
184
|
-
```bash
|
|
185
|
-
# Override auto-detect (optional — most users never need this)
|
|
186
|
-
slm config set evolution.backend claude
|
|
187
|
-
slm config set evolution.backend ollama
|
|
188
|
-
slm config set evolution.backend anthropic
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
### Full Evolution Config Reference
|
|
192
|
-
|
|
193
|
-
| Key | Default | Description |
|
|
194
|
-
|-----|---------|-------------|
|
|
195
|
-
| `evolution.enabled` | `false` | Master switch — off by default, opt-in |
|
|
196
|
-
| `evolution.backend` | `auto` | LLM backend: `auto`, `claude`, `ollama`, `anthropic`, `openai` |
|
|
197
|
-
| `evolution.max_evolutions_per_cycle` | `3` | Budget cap per consolidation cycle |
|
|
198
|
-
|
|
199
|
-
### Tracking Thresholds (C1)
|
|
200
|
-
|
|
201
|
-
| Parameter | Default | Description |
|
|
202
|
-
|-----------|---------|-------------|
|
|
203
|
-
| MIN_INVOCATIONS | 5 | Minimum uses before creating assertions |
|
|
204
|
-
| MIN_CONFIDENCE | 0.5 | Minimum confidence for soft prompt injection |
|
|
205
|
-
| TRACE_WINDOW | 10 | Tool events to analyze after each Skill call |
|
|
206
|
-
| RETRY_WINDOW | 300s | Same Skill within this window = potential retry |
|
|
207
|
-
|
|
208
|
-
These are conservative by design — we'd rather miss a pattern than hallucinate one.
|
|
209
|
-
|
|
210
|
-
---
|
|
211
|
-
|
|
212
|
-
## Research Foundations
|
|
213
|
-
|
|
214
|
-
SLM's skill evolution system draws from:
|
|
215
|
-
|
|
216
|
-
- **[EvoSkills](https://arxiv.org/abs/2604.01687)** (HKUDS, 2026) — Co-evolutionary verification with information isolation. +30pp improvement from blind verification.
|
|
217
|
-
- **[OpenSpace](https://github.com/HKUDS/OpenSpace)** (HKUDS, MIT) — 3-trigger evolution system (post-analysis + tool degradation + metric monitor). Anti-loop guards. Version DAG model.
|
|
218
|
-
- **[SkillsBench](https://arxiv.org/abs/2602.12670)** (2026) — 86-task benchmark showing self-generated skills provide zero benefit without verification. Focused 2-3 module skills outperform exhaustive docs.
|
|
219
|
-
- **[SoK: Agent Skills](https://arxiv.org/abs/2602.12430)** (2026) — Four-axis taxonomy. Skills and MCP are orthogonal layers.
|
|
220
|
-
|
|
221
|
-
---
|
|
222
|
-
|
|
223
|
-
## MCP Tools
|
|
224
|
-
|
|
225
|
-
Three MCP tools are available for programmatic access:
|
|
226
|
-
|
|
227
|
-
| Tool | Description |
|
|
228
|
-
|------|-------------|
|
|
229
|
-
| `evolve_skill` | Manually trigger evolution for a specific skill |
|
|
230
|
-
| `skill_health` | Get health metrics (invocations, error rate, status) for skills |
|
|
231
|
-
| `skill_lineage` | Get evolution lineage tree for a skill |
|
|
232
|
-
|
|
233
|
-
These tools are registered automatically and available in all supported IDEs.
|
|
234
|
-
|
|
235
|
-
## CLI Commands
|
|
236
|
-
|
|
237
|
-
```bash
|
|
238
|
-
slm config get evolution.enabled # Check if evolution is enabled
|
|
239
|
-
slm config set evolution.enabled true # Enable evolution
|
|
240
|
-
slm config set evolution.backend auto # Set LLM backend
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
## What's Next
|
|
244
|
-
|
|
245
|
-
- **IDE Adapters** — Cursor, Windsurf, VS Code Copilot, JetBrains support for skill tracking.
|
|
246
|
-
- **Skill lineage visualization improvements** — Richer DAG with performance history overlay.
|
|
247
|
-
|
|
248
|
-
---
|
|
249
|
-
|
|
250
|
-
## Links
|
|
251
|
-
|
|
252
|
-
- [SLM GitHub](https://github.com/qualixar/superlocalmemory)
|
|
253
|
-
- [Qualixar](https://qualixar.com)
|
|
254
|
-
- [Everything Claude Code](https://github.com/affaan-m/everything-claude-code)
|
|
255
|
-
- [OpenSpace](https://github.com/HKUDS/OpenSpace)
|
|
256
|
-
- [EvoSkills Paper](https://arxiv.org/abs/2604.01687)
|
package/docs/troubleshooting.md
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
# Troubleshooting
|
|
2
|
-
> SuperLocalMemory V3 Documentation
|
|
3
|
-
> https://superlocalmemory.com | Part of Qualixar
|
|
4
|
-
|
|
5
|
-
Solutions for common issues. If your problem is not listed here, run `slm status --verbose` and check the output for clues.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Installation Issues
|
|
10
|
-
|
|
11
|
-
### "slm: command not found"
|
|
12
|
-
|
|
13
|
-
The npm global bin directory is not in your shell's PATH.
|
|
14
|
-
|
|
15
|
-
**Fix:**
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
# Find where npm puts global binaries
|
|
19
|
-
npm root -g
|
|
20
|
-
# Example output: /usr/local/lib/node_modules
|
|
21
|
-
|
|
22
|
-
# The bin directory is one level up
|
|
23
|
-
# Add to your shell profile (~/.zshrc, ~/.bashrc, or ~/.bash_profile):
|
|
24
|
-
export PATH="$(npm prefix -g)/bin:$PATH"
|
|
25
|
-
|
|
26
|
-
# Reload your shell
|
|
27
|
-
source ~/.zshrc # or source ~/.bashrc
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
**Alternative — use npx:**
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npx superlocalmemory status
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### "Python not found" during setup
|
|
37
|
-
|
|
38
|
-
SLM V3 requires Python 3.10 or later for the math engine.
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
# Check Python version
|
|
42
|
-
python3 --version
|
|
43
|
-
|
|
44
|
-
# Install if missing
|
|
45
|
-
# macOS:
|
|
46
|
-
brew install python@3.12
|
|
47
|
-
|
|
48
|
-
# Ubuntu/Debian:
|
|
49
|
-
sudo apt install python3.12
|
|
50
|
-
|
|
51
|
-
# Windows:
|
|
52
|
-
winget install Python.Python.3.12
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### "Permission denied" during install
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
# Option 1: Fix npm permissions (recommended)
|
|
59
|
-
mkdir -p ~/.npm-global
|
|
60
|
-
npm config set prefix '~/.npm-global'
|
|
61
|
-
export PATH=~/.npm-global/bin:$PATH
|
|
62
|
-
npm install -g superlocalmemory
|
|
63
|
-
|
|
64
|
-
# Option 2: Use sudo (not recommended)
|
|
65
|
-
sudo npm install -g superlocalmemory
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Recall Issues
|
|
69
|
-
|
|
70
|
-
### "No memories found" when you know they exist
|
|
71
|
-
|
|
72
|
-
**Check your active profile:**
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
slm profile list
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Memories are profile-scoped. If you stored a memory in the `work` profile but are currently in `default`, it will not appear.
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
slm profile switch work
|
|
82
|
-
slm recall "your query"
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
**Check your mode:**
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
slm mode
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
Mode A uses math-based retrieval. If you recently switched from Mode C, the retrieval behavior changes. Both modes search the same memories, but ranking differs.
|
|
92
|
-
|
|
93
|
-
**Try a broader query:**
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
slm recall "database" # Instead of "PostgreSQL 16 configuration on staging"
|
|
97
|
-
slm list --limit 20 # Browse recent memories directly
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### Recall returns irrelevant results
|
|
101
|
-
|
|
102
|
-
**Lower your result count:**
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
slm recall "your query" --limit 3
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Fewer results means only the highest-confidence matches are returned.
|
|
109
|
-
|
|
110
|
-
**Use trace to debug:**
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
slm trace "your query"
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
This shows which channels contributed what. If BM25 is dominating with weak keyword matches, the query may need different terms.
|
|
117
|
-
|
|
118
|
-
**Rebuild the graph:**
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
slm build_graph
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
If entity relationships seem wrong, rebuilding the graph can fix ranking issues.
|
|
125
|
-
|
|
126
|
-
## Mode C Issues
|
|
127
|
-
|
|
128
|
-
### "API key not set" or authentication errors
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
# Check your provider configuration
|
|
132
|
-
slm provider
|
|
133
|
-
|
|
134
|
-
# Reset your provider and key
|
|
135
|
-
slm provider set openai
|
|
136
|
-
# Enter your API key when prompted
|
|
137
|
-
|
|
138
|
-
# Or set via environment variable
|
|
139
|
-
export OPENAI_API_KEY="sk-..."
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### "Connection timeout" or network errors
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
# Test connectivity to your provider
|
|
146
|
-
slm status --verbose
|
|
147
|
-
|
|
148
|
-
# Check if you're behind a proxy
|
|
149
|
-
echo $HTTP_PROXY
|
|
150
|
-
echo $HTTPS_PROXY
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
If behind a corporate proxy, set the proxy variables:
|
|
154
|
-
|
|
155
|
-
```bash
|
|
156
|
-
export HTTPS_PROXY="http://proxy.company.com:8080"
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
### Mode C is slow
|
|
160
|
-
|
|
161
|
-
Cloud LLM calls add latency. If speed matters more than maximum recall quality:
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
slm mode b # Local LLM (fast, no network)
|
|
165
|
-
slm mode a # Math-only (fastest)
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
## Migration Issues
|
|
169
|
-
|
|
170
|
-
### Migration failed or was interrupted
|
|
171
|
-
|
|
172
|
-
```bash
|
|
173
|
-
# Check if backup exists
|
|
174
|
-
ls ~/.superlocalmemory/backups/
|
|
175
|
-
|
|
176
|
-
# Roll back to V2
|
|
177
|
-
slm migrate --rollback
|
|
178
|
-
|
|
179
|
-
# Try migration again
|
|
180
|
-
slm migrate
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
### "Database is locked"
|
|
184
|
-
|
|
185
|
-
Close all IDE sessions that might be accessing SLM, then retry:
|
|
186
|
-
|
|
187
|
-
```bash
|
|
188
|
-
# Check for processes using the database
|
|
189
|
-
lsof ~/.superlocalmemory/memory.db
|
|
190
|
-
|
|
191
|
-
# Close IDEs, then retry
|
|
192
|
-
slm migrate
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
### Migration succeeded but recall quality seems worse
|
|
196
|
-
|
|
197
|
-
After migration, the entity graph and BM25 index are rebuilt from existing data. This process is automatic but can take a moment for large databases.
|
|
198
|
-
|
|
199
|
-
```bash
|
|
200
|
-
# Force a full re-index
|
|
201
|
-
slm build_graph
|
|
202
|
-
slm compact
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
## IDE Connection Issues
|
|
206
|
-
|
|
207
|
-
### IDE does not show SLM tools
|
|
208
|
-
|
|
209
|
-
1. **Verify SLM is installed:**
|
|
210
|
-
|
|
211
|
-
```bash
|
|
212
|
-
npm list -g superlocalmemory
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
2. **Check the IDE config file has correct JSON:**
|
|
216
|
-
|
|
217
|
-
```bash
|
|
218
|
-
slm connect <your-ide> # Regenerates the config
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
3. **Restart the IDE completely** (not just reload the window).
|
|
222
|
-
|
|
223
|
-
4. **Test the MCP server directly:**
|
|
224
|
-
|
|
225
|
-
```bash
|
|
226
|
-
npx superlocalmemory mcp --test
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
### "Connection refused" in IDE
|
|
230
|
-
|
|
231
|
-
The MCP server failed to start. Common causes:
|
|
232
|
-
|
|
233
|
-
- Node.js version too old (need 18+)
|
|
234
|
-
- Port conflict with another service
|
|
235
|
-
- Corrupted installation
|
|
236
|
-
|
|
237
|
-
```bash
|
|
238
|
-
# Reinstall
|
|
239
|
-
npm uninstall -g superlocalmemory
|
|
240
|
-
npm install -g superlocalmemory
|
|
241
|
-
|
|
242
|
-
# Verify
|
|
243
|
-
slm status
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
### Multiple IDEs conflicting
|
|
247
|
-
|
|
248
|
-
Each IDE has its own MCP config file. They do not conflict. All IDEs share the same underlying database. Concurrent access is safe (SQLite WAL mode handles this).
|
|
249
|
-
|
|
250
|
-
## Database Issues
|
|
251
|
-
|
|
252
|
-
### Database corruption
|
|
253
|
-
|
|
254
|
-
Extremely rare with SQLite WAL mode, but if it happens:
|
|
255
|
-
|
|
256
|
-
```bash
|
|
257
|
-
# Check integrity
|
|
258
|
-
slm status --verbose
|
|
259
|
-
|
|
260
|
-
# Restore from automatic backup
|
|
261
|
-
ls ~/.superlocalmemory/backups/
|
|
262
|
-
cp ~/.superlocalmemory/backups/memory-2026-03-15.db ~/.superlocalmemory/memory.db
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
### Database is too large
|
|
266
|
-
|
|
267
|
-
```bash
|
|
268
|
-
# Check size
|
|
269
|
-
slm memory_used
|
|
270
|
-
|
|
271
|
-
# Compact (merges redundant memories, reclaims space)
|
|
272
|
-
slm compact
|
|
273
|
-
|
|
274
|
-
# Apply a retention policy to auto-delete old memories
|
|
275
|
-
slm retention set custom --days 180
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
## Health Check
|
|
279
|
-
|
|
280
|
-
Run a full diagnostic:
|
|
281
|
-
|
|
282
|
-
```bash
|
|
283
|
-
slm health
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
This reports the status of:
|
|
287
|
-
|
|
288
|
-
| Component | What it checks |
|
|
289
|
-
|-----------|---------------|
|
|
290
|
-
| Database | Integrity, size, table counts |
|
|
291
|
-
| Embedding model | Loaded, version, dimension |
|
|
292
|
-
| Fisher-Rao | Similarity layer active |
|
|
293
|
-
| Sheaf | Consistency layer active |
|
|
294
|
-
| Langevin | Lifecycle layer active |
|
|
295
|
-
| BM25 index | Token count, index health |
|
|
296
|
-
| Entity graph | Node count, edge count |
|
|
297
|
-
|
|
298
|
-
If any component shows an error, the output includes a suggested fix.
|
|
299
|
-
|
|
300
|
-
## Getting Help
|
|
301
|
-
|
|
302
|
-
If none of the above resolves your issue:
|
|
303
|
-
|
|
304
|
-
1. Run `slm status --verbose` and note the output
|
|
305
|
-
2. Check the [GitHub Issues](https://github.com/qualixar/superlocalmemory/issues)
|
|
306
|
-
3. Open a new issue with your `slm status --verbose` output
|
|
307
|
-
|
|
308
|
-
---
|
|
309
|
-
|
|
310
|
-
*SuperLocalMemory V3 — Copyright 2026 Varun Pratap Bhardwaj. Elastic License 2.0. Part of Qualixar.*
|