superlocalmemory 3.4.17 → 3.4.19
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 +19 -0
- package/package.json +1 -3
- package/pyproject.toml +10 -1
- package/src/superlocalmemory/cli/setup_wizard.py +30 -0
- package/src/superlocalmemory/core/embeddings.py +8 -2
- package/src/superlocalmemory/retrieval/reranker.py +4 -2
- package/src/superlocalmemory.egg-info/PKG-INFO +4 -1
- 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/ide-setup.md
DELETED
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
# IDE Setup
|
|
2
|
-
> SuperLocalMemory V3 Documentation
|
|
3
|
-
> https://superlocalmemory.com | Part of Qualixar
|
|
4
|
-
|
|
5
|
-
Connect SuperLocalMemory to your AI coding tool. Once connected, memories are captured and recalled automatically.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Auto-Detection
|
|
10
|
-
|
|
11
|
-
The fastest way to connect all your IDEs:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
slm connect
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
This scans your system for installed IDEs, configures each one, and verifies the connection. Run it once after installing SLM.
|
|
18
|
-
|
|
19
|
-
To connect a specific IDE:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
slm connect claude
|
|
23
|
-
slm connect cursor
|
|
24
|
-
slm connect vscode
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Claude Code
|
|
28
|
-
|
|
29
|
-
**Auto:**
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
slm connect claude
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
**Manual:** Add to `~/.claude.json`:
|
|
36
|
-
|
|
37
|
-
```json
|
|
38
|
-
{
|
|
39
|
-
"mcpServers": {
|
|
40
|
-
"superlocalmemory": {
|
|
41
|
-
"command": "npx",
|
|
42
|
-
"args": ["-y", "superlocalmemory", "mcp"],
|
|
43
|
-
"env": {}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Restart Claude Code. Verify with: `slm status` in a Claude Code session.
|
|
50
|
-
|
|
51
|
-
## Cursor
|
|
52
|
-
|
|
53
|
-
**Auto:**
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
slm connect cursor
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
**Manual:** Add to `~/.cursor/mcp.json`:
|
|
60
|
-
|
|
61
|
-
```json
|
|
62
|
-
{
|
|
63
|
-
"mcpServers": {
|
|
64
|
-
"superlocalmemory": {
|
|
65
|
-
"command": "npx",
|
|
66
|
-
"args": ["-y", "superlocalmemory", "mcp"],
|
|
67
|
-
"env": {}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Restart Cursor. The memory tools appear in the tool list automatically.
|
|
74
|
-
|
|
75
|
-
## VS Code / GitHub Copilot
|
|
76
|
-
|
|
77
|
-
**Auto:**
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
slm connect vscode
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**Manual:** Add to VS Code settings (JSON):
|
|
84
|
-
|
|
85
|
-
```json
|
|
86
|
-
{
|
|
87
|
-
"mcp": {
|
|
88
|
-
"servers": {
|
|
89
|
-
"superlocalmemory": {
|
|
90
|
-
"command": "npx",
|
|
91
|
-
"args": ["-y", "superlocalmemory", "mcp"]
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## Windsurf
|
|
99
|
-
|
|
100
|
-
**Auto:**
|
|
101
|
-
|
|
102
|
-
```bash
|
|
103
|
-
slm connect windsurf
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
**Manual:** Add to `~/.windsurf/mcp.json`:
|
|
107
|
-
|
|
108
|
-
```json
|
|
109
|
-
{
|
|
110
|
-
"mcpServers": {
|
|
111
|
-
"superlocalmemory": {
|
|
112
|
-
"command": "npx",
|
|
113
|
-
"args": ["-y", "superlocalmemory", "mcp"],
|
|
114
|
-
"env": {}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
## Gemini CLI
|
|
121
|
-
|
|
122
|
-
**Auto:**
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
slm connect gemini
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
**Manual:** Add to `~/.gemini/settings.json`:
|
|
129
|
-
|
|
130
|
-
```json
|
|
131
|
-
{
|
|
132
|
-
"mcpServers": {
|
|
133
|
-
"superlocalmemory": {
|
|
134
|
-
"command": "npx",
|
|
135
|
-
"args": ["-y", "superlocalmemory", "mcp"]
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
## JetBrains (IntelliJ, PyCharm, WebStorm, etc.)
|
|
142
|
-
|
|
143
|
-
**Auto:**
|
|
144
|
-
|
|
145
|
-
```bash
|
|
146
|
-
slm connect jetbrains
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
**Manual:** Open **Settings > Tools > AI Assistant > MCP Servers** and add:
|
|
150
|
-
|
|
151
|
-
| Field | Value |
|
|
152
|
-
|-------|-------|
|
|
153
|
-
| Name | `superlocalmemory` |
|
|
154
|
-
| Command | `npx` |
|
|
155
|
-
| Arguments | `-y superlocalmemory mcp` |
|
|
156
|
-
|
|
157
|
-
Restart the IDE after adding the server.
|
|
158
|
-
|
|
159
|
-
## Continue.dev
|
|
160
|
-
|
|
161
|
-
**Auto:**
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
slm connect continue
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
**Manual:** Add to `~/.continue/config.json`:
|
|
168
|
-
|
|
169
|
-
```json
|
|
170
|
-
{
|
|
171
|
-
"mcpServers": [
|
|
172
|
-
{
|
|
173
|
-
"name": "superlocalmemory",
|
|
174
|
-
"command": "npx",
|
|
175
|
-
"args": ["-y", "superlocalmemory", "mcp"]
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
}
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
## Zed
|
|
182
|
-
|
|
183
|
-
**Auto:**
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
slm connect zed
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
**Manual:** Add to `~/.config/zed/settings.json`:
|
|
190
|
-
|
|
191
|
-
```json
|
|
192
|
-
{
|
|
193
|
-
"context_servers": {
|
|
194
|
-
"superlocalmemory": {
|
|
195
|
-
"command": {
|
|
196
|
-
"path": "npx",
|
|
197
|
-
"args": ["-y", "superlocalmemory", "mcp"]
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
## Verifying the Connection
|
|
205
|
-
|
|
206
|
-
After connecting any IDE, verify it works:
|
|
207
|
-
|
|
208
|
-
1. Open a chat/prompt session in your IDE
|
|
209
|
-
2. Ask: "What do you know about my preferences?"
|
|
210
|
-
3. If SLM is connected, the AI will check your memories before responding
|
|
211
|
-
|
|
212
|
-
Or run from the terminal:
|
|
213
|
-
|
|
214
|
-
```bash
|
|
215
|
-
slm status
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
Look for `Connected IDEs: claude, cursor, ...` in the output.
|
|
219
|
-
|
|
220
|
-
## Troubleshooting
|
|
221
|
-
|
|
222
|
-
### "slm command not found"
|
|
223
|
-
|
|
224
|
-
The npm global bin directory is not in your PATH.
|
|
225
|
-
|
|
226
|
-
```bash
|
|
227
|
-
# Find where npm installs global packages
|
|
228
|
-
npm root -g
|
|
229
|
-
|
|
230
|
-
# Add the bin directory to your PATH
|
|
231
|
-
# For zsh (~/.zshrc):
|
|
232
|
-
export PATH="$(npm root -g)/../bin:$PATH"
|
|
233
|
-
|
|
234
|
-
# For bash (~/.bashrc):
|
|
235
|
-
export PATH="$(npm root -g)/../bin:$PATH"
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
### IDE does not detect SLM tools
|
|
239
|
-
|
|
240
|
-
1. Ensure SLM is installed globally: `npm list -g superlocalmemory`
|
|
241
|
-
2. Restart the IDE completely (not just reload)
|
|
242
|
-
3. Check the MCP config file has correct JSON syntax
|
|
243
|
-
4. Run `slm connect <ide>` to regenerate the config
|
|
244
|
-
|
|
245
|
-
### "Connection refused" or timeout errors
|
|
246
|
-
|
|
247
|
-
```bash
|
|
248
|
-
# Test the MCP server directly
|
|
249
|
-
npx superlocalmemory mcp --test
|
|
250
|
-
|
|
251
|
-
# Check for port conflicts
|
|
252
|
-
slm status --verbose
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
### Multiple IDE configs conflicting
|
|
256
|
-
|
|
257
|
-
Each IDE has its own config file. They do not conflict. All IDEs share the same memory database at `~/.superlocalmemory/memory.db`.
|
|
258
|
-
|
|
259
|
-
---
|
|
260
|
-
|
|
261
|
-
*SuperLocalMemory V3 — Copyright 2026 Varun Pratap Bhardwaj. Elastic License 2.0. Part of Qualixar.*
|
package/docs/mcp-tools.md
DELETED
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
# MCP Tools Reference
|
|
2
|
-
> SuperLocalMemory V3 Documentation
|
|
3
|
-
> https://superlocalmemory.com | Part of Qualixar
|
|
4
|
-
|
|
5
|
-
SuperLocalMemory exposes 24 tools and 6 resources via the Model Context Protocol (MCP). Any MCP-compatible AI assistant can use these automatically.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Core Tools
|
|
10
|
-
|
|
11
|
-
### `remember`
|
|
12
|
-
|
|
13
|
-
Store a new memory.
|
|
14
|
-
|
|
15
|
-
| Parameter | Type | Required | Description |
|
|
16
|
-
|-----------|------|:--------:|-------------|
|
|
17
|
-
| `content` | string | Yes | The text to remember |
|
|
18
|
-
| `tags` | string | No | Comma-separated tags |
|
|
19
|
-
| `metadata` | object | No | Additional key-value metadata |
|
|
20
|
-
|
|
21
|
-
### `recall`
|
|
22
|
-
|
|
23
|
-
Search memories by natural language query.
|
|
24
|
-
|
|
25
|
-
| Parameter | Type | Required | Description |
|
|
26
|
-
|-----------|------|:--------:|-------------|
|
|
27
|
-
| `query` | string | Yes | Natural language search query |
|
|
28
|
-
| `limit` | number | No | Max results (default: 10) |
|
|
29
|
-
|
|
30
|
-
### `search`
|
|
31
|
-
|
|
32
|
-
Search memories with filters. More control than `recall`.
|
|
33
|
-
|
|
34
|
-
| Parameter | Type | Required | Description |
|
|
35
|
-
|-----------|------|:--------:|-------------|
|
|
36
|
-
| `query` | string | Yes | Search query |
|
|
37
|
-
| `limit` | number | No | Max results (default: 10) |
|
|
38
|
-
| `tags` | string | No | Filter by tags |
|
|
39
|
-
| `before` | string | No | Filter by date (ISO format) |
|
|
40
|
-
| `after` | string | No | Filter by date (ISO format) |
|
|
41
|
-
|
|
42
|
-
### `fetch`
|
|
43
|
-
|
|
44
|
-
Retrieve a specific memory by ID.
|
|
45
|
-
|
|
46
|
-
| Parameter | Type | Required | Description |
|
|
47
|
-
|-----------|------|:--------:|-------------|
|
|
48
|
-
| `id` | number | Yes | Memory ID |
|
|
49
|
-
|
|
50
|
-
### `list_recent`
|
|
51
|
-
|
|
52
|
-
List the most recently stored memories.
|
|
53
|
-
|
|
54
|
-
| Parameter | Type | Required | Description |
|
|
55
|
-
|-----------|------|:--------:|-------------|
|
|
56
|
-
| `limit` | number | No | Max results (default: 20) |
|
|
57
|
-
|
|
58
|
-
### `get_status`
|
|
59
|
-
|
|
60
|
-
Returns system status: mode, profile, memory count, health, database path.
|
|
61
|
-
|
|
62
|
-
*No parameters.*
|
|
63
|
-
|
|
64
|
-
### `build_graph`
|
|
65
|
-
|
|
66
|
-
Rebuild the entity relationship graph from stored memories. Useful after bulk imports.
|
|
67
|
-
|
|
68
|
-
*No parameters.*
|
|
69
|
-
|
|
70
|
-
### `switch_profile`
|
|
71
|
-
|
|
72
|
-
Switch to a different memory profile.
|
|
73
|
-
|
|
74
|
-
| Parameter | Type | Required | Description |
|
|
75
|
-
|-----------|------|:--------:|-------------|
|
|
76
|
-
| `profile` | string | Yes | Profile name to switch to |
|
|
77
|
-
|
|
78
|
-
### `backup_status`
|
|
79
|
-
|
|
80
|
-
Check the status of automatic backups.
|
|
81
|
-
|
|
82
|
-
*No parameters.*
|
|
83
|
-
|
|
84
|
-
### `memory_used`
|
|
85
|
-
|
|
86
|
-
Return memory usage statistics: total memories, database size, per-profile counts.
|
|
87
|
-
|
|
88
|
-
*No parameters.*
|
|
89
|
-
|
|
90
|
-
### `get_learned_patterns`
|
|
91
|
-
|
|
92
|
-
Return patterns the system has learned from your usage (e.g., preferred technologies, coding conventions).
|
|
93
|
-
|
|
94
|
-
| Parameter | Type | Required | Description |
|
|
95
|
-
|-----------|------|:--------:|-------------|
|
|
96
|
-
| `limit` | number | No | Max patterns to return (default: 10) |
|
|
97
|
-
|
|
98
|
-
### `correct_pattern`
|
|
99
|
-
|
|
100
|
-
Correct a learned pattern that is wrong or outdated.
|
|
101
|
-
|
|
102
|
-
| Parameter | Type | Required | Description |
|
|
103
|
-
|-----------|------|:--------:|-------------|
|
|
104
|
-
| `pattern_id` | number | Yes | ID of the pattern to correct |
|
|
105
|
-
| `correction` | string | Yes | The corrected pattern text |
|
|
106
|
-
|
|
107
|
-
### `get_attribution`
|
|
108
|
-
|
|
109
|
-
Return attribution and provenance information for a specific memory.
|
|
110
|
-
|
|
111
|
-
| Parameter | Type | Required | Description |
|
|
112
|
-
|-----------|------|:--------:|-------------|
|
|
113
|
-
| `id` | number | Yes | Memory ID |
|
|
114
|
-
|
|
115
|
-
## V2.8 Tools
|
|
116
|
-
|
|
117
|
-
### `report_outcome`
|
|
118
|
-
|
|
119
|
-
Report the outcome of using a memory (was it helpful?). Feeds the learning system.
|
|
120
|
-
|
|
121
|
-
| Parameter | Type | Required | Description |
|
|
122
|
-
|-----------|------|:--------:|-------------|
|
|
123
|
-
| `memory_id` | number | Yes | ID of the memory used |
|
|
124
|
-
| `outcome` | string | Yes | `"helpful"`, `"wrong"`, or `"outdated"` |
|
|
125
|
-
| `context` | string | No | Additional context about the outcome |
|
|
126
|
-
|
|
127
|
-
### `get_lifecycle_status`
|
|
128
|
-
|
|
129
|
-
Return lifecycle status for memories (Active, Warm, Cold, Archived).
|
|
130
|
-
|
|
131
|
-
| Parameter | Type | Required | Description |
|
|
132
|
-
|-----------|------|:--------:|-------------|
|
|
133
|
-
| `limit` | number | No | Max results (default: 20) |
|
|
134
|
-
| `status` | string | No | Filter by lifecycle stage |
|
|
135
|
-
|
|
136
|
-
### `set_retention_policy`
|
|
137
|
-
|
|
138
|
-
Apply a retention policy to the current profile.
|
|
139
|
-
|
|
140
|
-
| Parameter | Type | Required | Description |
|
|
141
|
-
|-----------|------|:--------:|-------------|
|
|
142
|
-
| `policy` | string | Yes | Policy name: `"indefinite"`, `"gdpr-30d"`, `"hipaa-7y"`, or `"custom"` |
|
|
143
|
-
| `days` | number | No | Days for custom policy |
|
|
144
|
-
|
|
145
|
-
### `compact_memories`
|
|
146
|
-
|
|
147
|
-
Merge redundant memories and optimize storage.
|
|
148
|
-
|
|
149
|
-
*No parameters.*
|
|
150
|
-
|
|
151
|
-
### `get_behavioral_patterns`
|
|
152
|
-
|
|
153
|
-
Return behavioral patterns observed across your usage (e.g., you always check docs before coding).
|
|
154
|
-
|
|
155
|
-
| Parameter | Type | Required | Description |
|
|
156
|
-
|-----------|------|:--------:|-------------|
|
|
157
|
-
| `limit` | number | No | Max patterns to return (default: 10) |
|
|
158
|
-
|
|
159
|
-
### `audit_trail`
|
|
160
|
-
|
|
161
|
-
Return audit log entries. Each entry is hash-chained for tamper detection.
|
|
162
|
-
|
|
163
|
-
| Parameter | Type | Required | Description |
|
|
164
|
-
|-----------|------|:--------:|-------------|
|
|
165
|
-
| `limit` | number | No | Max entries (default: 50) |
|
|
166
|
-
| `action` | string | No | Filter by action type: `"store"`, `"recall"`, `"delete"` |
|
|
167
|
-
|
|
168
|
-
## V3 Tools
|
|
169
|
-
|
|
170
|
-
### `set_mode`
|
|
171
|
-
|
|
172
|
-
Switch the operating mode.
|
|
173
|
-
|
|
174
|
-
| Parameter | Type | Required | Description |
|
|
175
|
-
|-----------|------|:--------:|-------------|
|
|
176
|
-
| `mode` | string | Yes | `"a"`, `"b"`, or `"c"` |
|
|
177
|
-
|
|
178
|
-
### `get_mode`
|
|
179
|
-
|
|
180
|
-
Return the current operating mode and its configuration.
|
|
181
|
-
|
|
182
|
-
*No parameters.*
|
|
183
|
-
|
|
184
|
-
### `health`
|
|
185
|
-
|
|
186
|
-
Return health diagnostics for mathematical layers (Fisher-Rao, Sheaf, Langevin), embedding model, and database.
|
|
187
|
-
|
|
188
|
-
*No parameters.*
|
|
189
|
-
|
|
190
|
-
### `consistency_check`
|
|
191
|
-
|
|
192
|
-
Run contradiction detection across stored memories. Returns pairs of memories that may conflict.
|
|
193
|
-
|
|
194
|
-
*No parameters.*
|
|
195
|
-
|
|
196
|
-
### `recall_trace`
|
|
197
|
-
|
|
198
|
-
Recall with a full breakdown of how each retrieval channel scored each result.
|
|
199
|
-
|
|
200
|
-
| Parameter | Type | Required | Description |
|
|
201
|
-
|-----------|------|:--------:|-------------|
|
|
202
|
-
| `query` | string | Yes | Search query |
|
|
203
|
-
| `limit` | number | No | Max results (default: 10) |
|
|
204
|
-
|
|
205
|
-
## Resources
|
|
206
|
-
|
|
207
|
-
MCP resources provide read-only data that AI assistants can access passively.
|
|
208
|
-
|
|
209
|
-
| Resource URI | Description |
|
|
210
|
-
|-------------|-------------|
|
|
211
|
-
| `slm://recent` | The 20 most recently stored memories |
|
|
212
|
-
| `slm://stats` | Memory count, database size, mode, profile |
|
|
213
|
-
| `slm://clusters` | Topic clusters detected across memories |
|
|
214
|
-
| `slm://identity` | Learned user preferences and patterns |
|
|
215
|
-
| `slm://learning` | Current state of the adaptive learning system |
|
|
216
|
-
| `slm://engagement` | Usage statistics and interaction patterns |
|
|
217
|
-
|
|
218
|
-
---
|
|
219
|
-
|
|
220
|
-
*SuperLocalMemory V3 — Copyright 2026 Varun Pratap Bhardwaj. Elastic License 2.0. Part of Qualixar.*
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
# Migration from V2
|
|
2
|
-
> SuperLocalMemory V3 Documentation
|
|
3
|
-
> https://superlocalmemory.com | Part of Qualixar
|
|
4
|
-
|
|
5
|
-
Upgrade from SuperLocalMemory V2 to V3. Zero data loss, one command, rollback available.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## What Changed in V3
|
|
10
|
-
|
|
11
|
-
| Area | V2 | V3 |
|
|
12
|
-
|------|----|----|
|
|
13
|
-
| **Retrieval** | Single-channel semantic search | 4-channel: Semantic + BM25 + Entity Graph + Temporal |
|
|
14
|
-
| **Modes** | One mode (cloud required for smart features) | Three modes: A (zero-cloud), B (local LLM), C (cloud LLM) |
|
|
15
|
-
| **Math layer** | None | Fisher-Rao similarity, Sheaf consistency, Langevin lifecycle |
|
|
16
|
-
| **Ingestion** | Basic text storage | 11-step pipeline: entities, facts, emotions, beliefs, graph, and more |
|
|
17
|
-
| **Data directory** | `~/.superlocalmemory/` | `~/.superlocalmemory/` (symlink preserves old path) |
|
|
18
|
-
| **Consistency** | Manual | Automatic contradiction detection |
|
|
19
|
-
| **Recall quality** | Good | Significantly better on complex queries (multi-hop, temporal) |
|
|
20
|
-
|
|
21
|
-
**What stays the same:** All CLI commands, MCP tools, IDE integrations, profiles, trust scores, and learned patterns carry forward.
|
|
22
|
-
|
|
23
|
-
## Before You Migrate
|
|
24
|
-
|
|
25
|
-
1. **Update to the latest version:**
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
npm update -g superlocalmemory
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
2. **Check your current version:**
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
slm --version
|
|
35
|
-
# Should show 3.x.x
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
3. **(Optional) Preview changes:**
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
slm migrate --dry-run
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
This shows exactly what will change without modifying anything.
|
|
45
|
-
|
|
46
|
-
## Run the Migration
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
slm migrate
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
The migration:
|
|
53
|
-
|
|
54
|
-
1. Creates a full backup of your V2 database
|
|
55
|
-
2. Moves data from `~/.superlocalmemory/` to `~/.superlocalmemory/`
|
|
56
|
-
3. Creates a symlink (`~/.superlocalmemory/ -> ~/.superlocalmemory/`) so old IDE configs still work
|
|
57
|
-
4. Extends the database schema with V3 tables (15 new tables)
|
|
58
|
-
5. Re-indexes existing memories for 4-channel retrieval
|
|
59
|
-
6. Sets Mode A as default (zero breaking changes)
|
|
60
|
-
7. Verifies integrity
|
|
61
|
-
|
|
62
|
-
**Duration:** Under 30 seconds for most databases. Large databases (10,000+ memories) may take 1-2 minutes.
|
|
63
|
-
|
|
64
|
-
## What Gets Preserved
|
|
65
|
-
|
|
66
|
-
Everything:
|
|
67
|
-
|
|
68
|
-
- All stored memories (content, timestamps, metadata)
|
|
69
|
-
- All profiles and their isolation boundaries
|
|
70
|
-
- Trust scores and provenance data
|
|
71
|
-
- Learned patterns and behavioral data
|
|
72
|
-
- Compliance settings and retention policies
|
|
73
|
-
- Audit trail (hash-chain intact)
|
|
74
|
-
- IDE configurations (via symlink)
|
|
75
|
-
|
|
76
|
-
## What Gets Added
|
|
77
|
-
|
|
78
|
-
The migration adds V3 capabilities to your existing data:
|
|
79
|
-
|
|
80
|
-
- BM25 token index for keyword search
|
|
81
|
-
- Entity graph nodes and edges
|
|
82
|
-
- Temporal event entries
|
|
83
|
-
- Fisher-Rao similarity metadata
|
|
84
|
-
- Sheaf consistency sections
|
|
85
|
-
- Langevin lifecycle state
|
|
86
|
-
|
|
87
|
-
These are computed from your existing memories during migration.
|
|
88
|
-
|
|
89
|
-
## After Migration
|
|
90
|
-
|
|
91
|
-
### Verify
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
slm status
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
Confirm:
|
|
98
|
-
- Mode shows `A` (default after migration)
|
|
99
|
-
- Memory count matches your V2 count
|
|
100
|
-
- Health shows all green
|
|
101
|
-
- Profile is your previous active profile
|
|
102
|
-
|
|
103
|
-
### Try a recall
|
|
104
|
-
|
|
105
|
-
```bash
|
|
106
|
-
slm recall "something you stored in V2"
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
Results should match or exceed V2 quality. V3's 4-channel retrieval finds memories that V2's single-channel search might have missed.
|
|
110
|
-
|
|
111
|
-
### Explore V3 features
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
slm trace "your query" # See channel-by-channel breakdown
|
|
115
|
-
slm health # Check math layer status
|
|
116
|
-
slm consistency # Run contradiction detection
|
|
117
|
-
slm mode b # Try local LLM mode (if Ollama installed)
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
## Rollback
|
|
121
|
-
|
|
122
|
-
If anything goes wrong, roll back within 30 days:
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
slm migrate --rollback
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
This restores your V2 database from the backup created during migration. The symlink is removed and the original `~/.superlocalmemory/` directory is restored.
|
|
129
|
-
|
|
130
|
-
**After 30 days:** The backup is automatically cleaned up. If you need to roll back after 30 days, restore from your own backups.
|
|
131
|
-
|
|
132
|
-
## IDE Configuration Updates
|
|
133
|
-
|
|
134
|
-
### Automatic (recommended)
|
|
135
|
-
|
|
136
|
-
The migration preserves your IDE configs via symlink. No IDE reconfiguration needed.
|
|
137
|
-
|
|
138
|
-
### Manual (optional)
|
|
139
|
-
|
|
140
|
-
If you want to update your IDE configs to use the new path directly:
|
|
141
|
-
|
|
142
|
-
```bash
|
|
143
|
-
slm connect
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
This updates all detected IDE configs to point to `~/.superlocalmemory/` instead of relying on the symlink.
|
|
147
|
-
|
|
148
|
-
## FAQ
|
|
149
|
-
|
|
150
|
-
**Q: Will my IDE break during migration?**
|
|
151
|
-
No. The symlink ensures old paths still work. Your IDE will not notice the change.
|
|
152
|
-
|
|
153
|
-
**Q: Do I need to reconfigure my API keys?**
|
|
154
|
-
No. API keys are migrated to the new config location automatically.
|
|
155
|
-
|
|
156
|
-
**Q: Can I run V2 and V3 side by side?**
|
|
157
|
-
No. The migration converts your database in place (with backup). Use `--rollback` if you want to return to V2.
|
|
158
|
-
|
|
159
|
-
**Q: What if migration fails halfway?**
|
|
160
|
-
The migration is transactional. If any step fails, everything is rolled back automatically. Your V2 data remains untouched.
|
|
161
|
-
|
|
162
|
-
**Q: I have multiple profiles. Are they all migrated?**
|
|
163
|
-
Yes. All profiles are migrated together. Profile isolation is preserved.
|
|
164
|
-
|
|
165
|
-
**Q: How big will my database get after migration?**
|
|
166
|
-
The V3 schema adds approximately 20-40% to database size due to the entity graph, BM25 index, and math layer metadata. A 50MB V2 database becomes roughly 60-70MB.
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
*SuperLocalMemory V3 — Copyright 2026 Varun Pratap Bhardwaj. Elastic License 2.0. Part of Qualixar.*
|