superlocalmemory 2.6.0 → 2.6.5
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 +122 -1806
- package/README.md +142 -410
- package/docs/ACCESSIBILITY.md +291 -0
- package/docs/FRAMEWORK-INTEGRATIONS.md +300 -0
- package/package.json +1 -1
- package/src/learning/__init__.py +201 -0
- package/src/learning/adaptive_ranker.py +826 -0
- package/src/learning/cross_project_aggregator.py +866 -0
- package/src/learning/engagement_tracker.py +638 -0
- package/src/learning/feature_extractor.py +461 -0
- package/src/learning/feedback_collector.py +690 -0
- package/src/learning/learning_db.py +842 -0
- package/src/learning/project_context_manager.py +582 -0
- package/src/learning/source_quality_scorer.py +685 -0
- package/src/learning/workflow_pattern_miner.py +665 -0
- package/ui/index.html +346 -13
- package/ui/js/clusters.js +90 -1
- package/ui/js/graph-core.js +445 -0
- package/ui/js/graph-cytoscape-monolithic-backup.js +1168 -0
- package/ui/js/graph-cytoscape.js +1168 -0
- package/ui/js/graph-d3-backup.js +32 -0
- package/ui/js/graph-filters.js +220 -0
- package/ui/js/graph-interactions.js +354 -0
- package/ui/js/graph-ui.js +214 -0
- package/ui/js/memories.js +52 -0
- package/ui/js/modal.js +104 -1
package/README.md
CHANGED
|
@@ -30,9 +30,8 @@
|
|
|
30
30
|
<p align="center">
|
|
31
31
|
<a href="https://superlocalmemory.com"><strong>superlocalmemory.com</strong></a> •
|
|
32
32
|
<a href="#-quick-start">Quick Start</a> •
|
|
33
|
-
<a href="#-why-
|
|
33
|
+
<a href="#-why-superlocalmemory">Why This?</a> •
|
|
34
34
|
<a href="#-features">Features</a> •
|
|
35
|
-
<a href="#-vs-alternatives">vs Alternatives</a> •
|
|
36
35
|
<a href="#-documentation">Docs</a> •
|
|
37
36
|
<a href="https://github.com/varun369/SuperLocalMemoryV2/issues">Issues</a>
|
|
38
37
|
</p>
|
|
@@ -45,77 +44,37 @@
|
|
|
45
44
|
|
|
46
45
|
---
|
|
47
46
|
|
|
48
|
-
##
|
|
47
|
+
## What's New in v2.6.5
|
|
49
48
|
|
|
50
|
-
|
|
49
|
+
**Interactive Knowledge Graph** — Your memories, visually connected. Powered by [Cytoscape.js](https://js.cytoscape.org/) (the same library behind Obsidian's graph plugins):
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
| **SSRF Protection** | Webhook dispatcher validates URLs to prevent server-side request forgery. |
|
|
58
|
-
| **HNSW-Accelerated Graphs** | Knowledge graph edge building uses HNSW index for faster construction at scale. |
|
|
59
|
-
| **Hybrid Search Engine** | Combined semantic + FTS5 + graph retrieval for maximum accuracy. |
|
|
51
|
+
- 🔍 **Zoom, pan, explore** — Mouse wheel to zoom, drag to pan, smooth navigation
|
|
52
|
+
- 👆 **Click nodes** — Opens memory preview with "View Full Memory", "Expand Neighbors", "Filter to Cluster"
|
|
53
|
+
- 🎨 **6 layout algorithms** — Force-directed (physics-based), circular, grid, hierarchical, concentric, breadthfirst
|
|
54
|
+
- 🔗 **Smart filtering** — Click cluster cards or entity badges → graph instantly updates
|
|
55
|
+
- ⚡ **Performance** — 3-tier rendering strategy handles 10,000+ nodes smoothly
|
|
60
56
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
**Upgrade:** `npm install -g superlocalmemory@latest`
|
|
57
|
+
Launch the dashboard: `python3 ~/.claude-memory/ui_server.py` → `http://localhost:8765/graph.html`
|
|
64
58
|
|
|
65
|
-
**
|
|
66
|
-
|
|
67
|
-
[Interactive Architecture Diagram](https://superlocalmemory.com/architecture.html) | [Architecture Doc](docs/ARCHITECTURE-V2.5.md) | [Full Changelog](CHANGELOG.md)
|
|
59
|
+
**[[Complete Interactive Graph Guide →|Using-Interactive-Graph]]**
|
|
68
60
|
|
|
69
61
|
---
|
|
70
62
|
|
|
71
|
-
##
|
|
72
|
-
|
|
73
|
-
Use SuperLocalMemory as a memory backend in your LangChain and LlamaIndex applications — 100% local, zero cloud.
|
|
74
|
-
|
|
75
|
-
### LangChain
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
pip install langchain-superlocalmemory
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
```python
|
|
82
|
-
from langchain_superlocalmemory import SuperLocalMemoryChatMessageHistory
|
|
83
|
-
from langchain_core.runnables.history import RunnableWithMessageHistory
|
|
63
|
+
## What's New in v2.6
|
|
84
64
|
|
|
85
|
-
|
|
86
|
-
# Messages persist across sessions, stored locally in ~/.claude-memory/memory.db
|
|
87
|
-
```
|
|
65
|
+
SuperLocalMemory is now **production-hardened** with security, performance, and scale improvements:
|
|
88
66
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
```python
|
|
96
|
-
from llama_index.storage.chat_store.superlocalmemory import SuperLocalMemoryChatStore
|
|
97
|
-
from llama_index.core.memory import ChatMemoryBuffer
|
|
98
|
-
|
|
99
|
-
chat_store = SuperLocalMemoryChatStore()
|
|
100
|
-
memory = ChatMemoryBuffer.from_defaults(chat_store=chat_store, chat_store_key="user-1")
|
|
101
|
-
```
|
|
67
|
+
- **Trust Enforcement** — Bayesian scoring actively protects your memory. Agents with trust below 0.3 are blocked from write/delete operations.
|
|
68
|
+
- **Profile Isolation** — Memory profiles fully sandboxed. Zero cross-profile data leakage.
|
|
69
|
+
- **Rate Limiting** — Protects against memory flooding from misbehaving agents.
|
|
70
|
+
- **HNSW-Accelerated Graphs** — Knowledge graph edge building uses HNSW index for faster construction at scale.
|
|
71
|
+
- **Hybrid Search Engine** — Combined semantic + FTS5 + graph retrieval for maximum accuracy.
|
|
102
72
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
## Install in One Command
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
npm install -g superlocalmemory
|
|
111
|
-
```
|
|
73
|
+
**v2.5 highlights (included):** Real-time event stream, WAL-mode concurrent writes, agent tracking, memory provenance, 28 API endpoints.
|
|
112
74
|
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
git clone https://github.com/varun369/SuperLocalMemoryV2.git && cd SuperLocalMemoryV2 && ./install.sh
|
|
116
|
-
```
|
|
75
|
+
**Upgrade:** `npm install -g superlocalmemory@latest`
|
|
117
76
|
|
|
118
|
-
|
|
77
|
+
[Interactive Architecture Diagram](https://superlocalmemory.com/architecture.html) | [Architecture Doc](docs/ARCHITECTURE-V2.5.md) | [Full Changelog](CHANGELOG.md)
|
|
119
78
|
|
|
120
79
|
---
|
|
121
80
|
|
|
@@ -135,6 +94,8 @@ You: *sighs and explains everything again*
|
|
|
135
94
|
- Previous decisions
|
|
136
95
|
- Debugging history
|
|
137
96
|
|
|
97
|
+
---
|
|
98
|
+
|
|
138
99
|
## The Solution
|
|
139
100
|
|
|
140
101
|
```bash
|
|
@@ -155,26 +116,21 @@ superlocalmemoryv2:recall "auth bug"
|
|
|
155
116
|
|
|
156
117
|
## 🚀 Quick Start
|
|
157
118
|
|
|
158
|
-
###
|
|
119
|
+
### Install (One Command)
|
|
120
|
+
|
|
159
121
|
```bash
|
|
160
122
|
npm install -g superlocalmemory
|
|
161
123
|
```
|
|
162
124
|
|
|
163
|
-
|
|
125
|
+
Or clone manually:
|
|
164
126
|
```bash
|
|
165
|
-
git clone https://github.com/varun369/SuperLocalMemoryV2.git
|
|
166
|
-
cd SuperLocalMemoryV2
|
|
167
|
-
./install.sh
|
|
127
|
+
git clone https://github.com/varun369/SuperLocalMemoryV2.git && cd SuperLocalMemoryV2 && ./install.sh
|
|
168
128
|
```
|
|
169
129
|
|
|
170
|
-
|
|
171
|
-
```powershell
|
|
172
|
-
git clone https://github.com/varun369/SuperLocalMemoryV2.git
|
|
173
|
-
cd SuperLocalMemoryV2
|
|
174
|
-
.\install.ps1
|
|
175
|
-
```
|
|
130
|
+
Both methods auto-detect and configure **17+ IDEs and AI tools** — Cursor, VS Code/Copilot, Codex, Claude, Windsurf, Gemini CLI, JetBrains, and more.
|
|
176
131
|
|
|
177
132
|
### Verify Installation
|
|
133
|
+
|
|
178
134
|
```bash
|
|
179
135
|
superlocalmemoryv2:status
|
|
180
136
|
# ✓ Database: OK (0 memories)
|
|
@@ -184,181 +140,97 @@ superlocalmemoryv2:status
|
|
|
184
140
|
|
|
185
141
|
**That's it.** No Docker. No API keys. No cloud accounts. No configuration.
|
|
186
142
|
|
|
187
|
-
###
|
|
188
|
-
|
|
189
|
-
**npm users:**
|
|
190
|
-
```bash
|
|
191
|
-
# Update to latest version
|
|
192
|
-
npm update -g superlocalmemory
|
|
193
|
-
|
|
194
|
-
# Or force latest
|
|
195
|
-
npm install -g superlocalmemory@latest
|
|
143
|
+
### Launch Dashboard
|
|
196
144
|
|
|
197
|
-
# Install specific version
|
|
198
|
-
npm install -g superlocalmemory@latest
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
**Manual install users:**
|
|
202
145
|
```bash
|
|
203
|
-
|
|
204
|
-
git pull origin main
|
|
205
|
-
./install.sh # Mac/Linux
|
|
206
|
-
# or
|
|
207
|
-
.\install.ps1 # Windows
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
**Your data is safe:** Updates preserve your database and all memories.
|
|
211
|
-
|
|
212
|
-
### Start the Visualization Dashboard
|
|
213
|
-
|
|
214
|
-
```bash
|
|
215
|
-
# Launch the interactive web UI
|
|
146
|
+
# Start the interactive web UI
|
|
216
147
|
python3 ~/.claude-memory/ui_server.py
|
|
217
148
|
|
|
218
149
|
# Opens at http://localhost:8765
|
|
219
|
-
# Features: Timeline
|
|
150
|
+
# Features: Timeline, search, interactive graph, statistics
|
|
220
151
|
```
|
|
221
152
|
|
|
222
153
|
---
|
|
223
154
|
|
|
224
|
-
##
|
|
225
|
-
|
|
226
|
-
**NEW in v2.2.0:** Interactive web-based dashboard for exploring your memories visually.
|
|
227
|
-
|
|
228
|
-
### Features
|
|
229
|
-
|
|
230
|
-
| Feature | Description |
|
|
231
|
-
|---------|-------------|
|
|
232
|
-
| **📈 Timeline View** | See your memories chronologically with importance indicators |
|
|
233
|
-
| **🔍 Search Explorer** | Real-time semantic search with score visualization |
|
|
234
|
-
| **🕸️ Graph Visualization** | Interactive knowledge graph with clusters and relationships |
|
|
235
|
-
| **📊 Statistics Dashboard** | Memory trends, tag clouds, pattern insights |
|
|
236
|
-
| **🎯 Advanced Filters** | Filter by tags, importance, date range, clusters |
|
|
237
|
-
|
|
238
|
-
### Quick Tour
|
|
155
|
+
## 💡 Why SuperLocalMemory?
|
|
239
156
|
|
|
240
|
-
|
|
241
|
-
# 1. Start dashboard
|
|
242
|
-
python ~/.claude-memory/ui_server.py
|
|
157
|
+
### For Developers Who Use AI Daily
|
|
243
158
|
|
|
244
|
-
|
|
159
|
+
| Scenario | Without Memory | With SuperLocalMemory |
|
|
160
|
+
|----------|---------------|----------------------|
|
|
161
|
+
| New Claude session | Re-explain entire project | `recall "project context"` → instant context |
|
|
162
|
+
| Debugging | "We tried X last week..." starts over | Knowledge graph shows related past fixes |
|
|
163
|
+
| Code preferences | "I prefer React..." every time | Pattern learning knows your style |
|
|
164
|
+
| Multi-project | Context constantly bleeds | Separate profiles per project |
|
|
245
165
|
|
|
246
|
-
|
|
247
|
-
# - Timeline: See memories over time
|
|
248
|
-
# - Search: Find with semantic scoring
|
|
249
|
-
# - Graph: Visualize relationships
|
|
250
|
-
# - Stats: Analyze patterns
|
|
251
|
-
```
|
|
166
|
+
### Built on 2026 Research
|
|
252
167
|
|
|
253
|
-
|
|
168
|
+
Not another simple key-value store. SuperLocalMemory implements **cutting-edge memory architecture**:
|
|
254
169
|
|
|
255
|
-
|
|
170
|
+
- **PageIndex** (Meta AI) → Hierarchical memory organization
|
|
171
|
+
- **GraphRAG** (Microsoft) → Knowledge graph with auto-clustering
|
|
172
|
+
- **xMemory** (Stanford) → Identity pattern learning
|
|
173
|
+
- **A-RAG** → Multi-level retrieval with context awareness
|
|
256
174
|
|
|
257
|
-
|
|
175
|
+
**The only open-source implementation combining all four approaches.**
|
|
258
176
|
|
|
259
|
-
|
|
260
|
-
|---------|-------------|
|
|
261
|
-
| **Hierarchical Leiden** | Recursive community detection — clusters within clusters up to 3 levels. "Python" → "FastAPI" → "Auth patterns" |
|
|
262
|
-
| **Community Summaries** | TF-IDF structured reports per cluster: key topics, projects, categories at a glance |
|
|
263
|
-
| **MACLA Confidence** | Bayesian Beta-Binomial scoring (arXiv:2512.18950) — calibrated confidence, not raw frequency |
|
|
264
|
-
| **Auto-Backup** | Configurable SQLite backups with retention policies, restore from any backup via CLI |
|
|
265
|
-
| **Profile UI** | Create, switch, delete profiles from the web dashboard — full isolation per context |
|
|
266
|
-
| **Profile Isolation** | All API endpoints (graph, clusters, patterns, timeline) scoped to active profile |
|
|
177
|
+
[See research citations →](https://github.com/varun369/SuperLocalMemoryV2/wiki/Research-Foundations)
|
|
267
178
|
|
|
268
179
|
---
|
|
269
180
|
|
|
270
|
-
##
|
|
271
|
-
|
|
272
|
-
SuperLocalMemory V2.2.0 implements **hybrid search** combining multiple strategies for maximum accuracy.
|
|
273
|
-
|
|
274
|
-
### Search Strategies
|
|
275
|
-
|
|
276
|
-
| Strategy | Method | Best For |
|
|
277
|
-
|----------|--------|----------|
|
|
278
|
-
| **Semantic Search** | TF-IDF vectors + cosine similarity | Conceptual queries ("authentication patterns") |
|
|
279
|
-
| **Full-Text Search** | SQLite FTS5 with ranking | Exact phrases ("JWT tokens expire") |
|
|
280
|
-
| **Graph-Enhanced** | Knowledge graph traversal | Related concepts ("show auth-related") |
|
|
281
|
-
| **Hybrid Mode** | All three combined | General queries (default) |
|
|
282
|
-
|
|
283
|
-
### Search Examples
|
|
284
|
-
|
|
285
|
-
```bash
|
|
286
|
-
# Semantic: finds conceptually similar
|
|
287
|
-
slm recall "security best practices"
|
|
288
|
-
# Matches: "JWT implementation", "OAuth flow", "CSRF protection"
|
|
181
|
+
## ✨ Features
|
|
289
182
|
|
|
290
|
-
|
|
291
|
-
slm recall "PostgreSQL 15"
|
|
292
|
-
# Matches: exactly "PostgreSQL 15"
|
|
183
|
+
### Multi-Layer Memory Architecture
|
|
293
184
|
|
|
294
|
-
|
|
295
|
-
slm recall "authentication" --use-graph
|
|
296
|
-
# Matches: JWT, OAuth, sessions (via "Auth & Security" cluster)
|
|
185
|
+
**[View Interactive Architecture Diagram](https://superlocalmemory.com/architecture.html)** — Click any layer for details, research references, and file paths.
|
|
297
186
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
187
|
+
```
|
|
188
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
189
|
+
│ Layer 9: VISUALIZATION (v2.2+) │
|
|
190
|
+
│ Interactive dashboard: timeline, graph explorer, analytics │
|
|
191
|
+
├─────────────────────────────────────────────────────────────┤
|
|
192
|
+
│ Layer 8: HYBRID SEARCH (v2.2+) │
|
|
193
|
+
│ Combines: Semantic + FTS5 + Graph traversal │
|
|
194
|
+
├─────────────────────────────────────────────────────────────┤
|
|
195
|
+
│ Layer 7: UNIVERSAL ACCESS │
|
|
196
|
+
│ MCP + Skills + CLI (works everywhere) │
|
|
197
|
+
│ 17+ IDEs with single database │
|
|
198
|
+
├─────────────────────────────────────────────────────────────┤
|
|
199
|
+
│ Layer 6: MCP INTEGRATION │
|
|
200
|
+
│ Model Context Protocol: 6 tools, 4 resources, 2 prompts │
|
|
201
|
+
│ Auto-configured for Cursor, Windsurf, Claude │
|
|
202
|
+
├─────────────────────────────────────────────────────────────┤
|
|
203
|
+
│ Layer 5: SKILLS LAYER │
|
|
204
|
+
│ 6 universal slash-commands for AI assistants │
|
|
205
|
+
│ Compatible with Claude Code, Continue, Cody │
|
|
206
|
+
├─────────────────────────────────────────────────────────────┤
|
|
207
|
+
│ Layer 4: PATTERN LEARNING + MACLA │
|
|
208
|
+
│ Bayesian confidence scoring (arXiv:2512.18950) │
|
|
209
|
+
│ "You prefer React over Vue" (73% confidence) │
|
|
210
|
+
├─────────────────────────────────────────────────────────────┤
|
|
211
|
+
│ Layer 3: KNOWLEDGE GRAPH + HIERARCHICAL CLUSTERING │
|
|
212
|
+
│ Recursive Leiden algorithm: "Python" → "FastAPI" → "Auth" │
|
|
213
|
+
│ Community summaries with TF-IDF structured reports │
|
|
214
|
+
├─────────────────────────────────────────────────────────────┤
|
|
215
|
+
│ Layer 2: HIERARCHICAL INDEX │
|
|
216
|
+
│ Tree structure for fast navigation │
|
|
217
|
+
│ O(log n) lookups instead of O(n) scans │
|
|
218
|
+
├─────────────────────────────────────────────────────────────┤
|
|
219
|
+
│ Layer 1: RAW STORAGE │
|
|
220
|
+
│ SQLite + Full-text search + TF-IDF vectors │
|
|
221
|
+
│ Compression: 60-96% space savings │
|
|
222
|
+
└─────────────────────────────────────────────────────────────┘
|
|
301
223
|
```
|
|
302
224
|
|
|
303
|
-
###
|
|
304
|
-
|
|
305
|
-
| Database Size | Median | P95 | P99 |
|
|
306
|
-
|---------------|--------|-----|-----|
|
|
307
|
-
| 100 memories | **10.6ms** | 14.9ms | 15.8ms |
|
|
308
|
-
| 500 memories | **65.2ms** | 101.7ms | 112.5ms |
|
|
309
|
-
| 1,000 memories | **124.3ms** | 190.1ms | 219.5ms |
|
|
310
|
-
|
|
311
|
-
For typical personal databases (under 500 memories), search returns faster than you blink. [Full benchmarks →](https://github.com/varun369/SuperLocalMemoryV2/wiki/Performance-Benchmarks)
|
|
312
|
-
|
|
313
|
-
---
|
|
314
|
-
|
|
315
|
-
## ⚡ Measured Performance
|
|
316
|
-
|
|
317
|
-
All numbers measured on real hardware (Apple M4 Pro, 24GB RAM). No estimates — real benchmarks.
|
|
318
|
-
|
|
319
|
-
### Search Speed
|
|
320
|
-
|
|
321
|
-
| Database Size | Median Latency | P95 Latency |
|
|
322
|
-
|---------------|----------------|-------------|
|
|
323
|
-
| 100 memories | **10.6ms** | 14.9ms |
|
|
324
|
-
| 500 memories | **65.2ms** | 101.7ms |
|
|
325
|
-
| 1,000 memories | **124.3ms** | 190.1ms |
|
|
326
|
-
|
|
327
|
-
For typical personal use (under 500 memories), search results return faster than you blink.
|
|
328
|
-
|
|
329
|
-
### Concurrent Writes — Zero Errors
|
|
330
|
-
|
|
331
|
-
| Scenario | Writes/sec | Errors |
|
|
332
|
-
|----------|------------|--------|
|
|
333
|
-
| 1 AI tool writing | **204/sec** | 0 |
|
|
334
|
-
| 2 AI tools simultaneously | **220/sec** | 0 |
|
|
335
|
-
| 5 AI tools simultaneously | **130/sec** | 0 |
|
|
336
|
-
| 10 AI tools simultaneously | **25/sec** | 0 |
|
|
337
|
-
|
|
338
|
-
WAL mode + serialized write queue = zero "database is locked" errors, ever.
|
|
339
|
-
|
|
340
|
-
### Storage
|
|
341
|
-
|
|
342
|
-
10,000 memories = **13.6 MB** on disk (~1.9 KB per memory). Your entire AI memory history takes less space than a photo.
|
|
343
|
-
|
|
344
|
-
### Trust Defense
|
|
345
|
-
|
|
346
|
-
Bayesian trust scoring achieves **perfect separation** (trust gap = 1.0) between honest and malicious agents. Detects "sleeper" attacks with 74.7% trust drop. Zero false positives.
|
|
347
|
-
|
|
348
|
-
### Graph Construction
|
|
349
|
-
|
|
350
|
-
| Memories | Build Time |
|
|
351
|
-
|----------|-----------|
|
|
352
|
-
| 100 | 0.28s |
|
|
353
|
-
| 1,000 | 10.6s |
|
|
354
|
-
|
|
355
|
-
Leiden clustering discovers 6-7 natural topic communities automatically.
|
|
356
|
-
|
|
357
|
-
> **Graph Scaling:** Knowledge graph features work best with up to 10,000 memories. For larger databases, the system uses intelligent sampling (most recent + highest importance memories) for graph construction. Core search and memory storage have no upper limit.
|
|
358
|
-
|
|
359
|
-
> **LoCoMo benchmark results coming soon** — evaluation against the standardized [LoCoMo](https://snap-research.github.io/locomo/) long-conversation memory benchmark (Snap Research, ACL 2024).
|
|
225
|
+
### Key Capabilities
|
|
360
226
|
|
|
361
|
-
[
|
|
227
|
+
- **[Knowledge Graphs](https://github.com/varun369/SuperLocalMemoryV2/wiki/Knowledge-Graph)** — Automatic relationship discovery. Interactive visualization with zoom, pan, click.
|
|
228
|
+
- **[Pattern Learning](https://github.com/varun369/SuperLocalMemoryV2/wiki/Pattern-Learning)** — Learns your coding preferences and style automatically.
|
|
229
|
+
- **[Multi-Profile Support](https://github.com/varun369/SuperLocalMemoryV2/wiki/Using-Memory-Profiles)** — Isolated contexts for work, personal, clients. Zero context bleeding.
|
|
230
|
+
- **[Hybrid Search](https://github.com/varun369/SuperLocalMemoryV2/wiki/Advanced-Search)** — Semantic + FTS5 + Graph retrieval combined for maximum accuracy.
|
|
231
|
+
- **[Visualization Dashboard](https://github.com/varun369/SuperLocalMemoryV2/wiki/Visualization-Dashboard)** — Web UI for timeline, search, graph exploration, analytics.
|
|
232
|
+
- **[Framework Integrations](docs/FRAMEWORK-INTEGRATIONS.md)** — Use with LangChain and LlamaIndex applications.
|
|
233
|
+
- **[Real-Time Events](https://github.com/varun369/SuperLocalMemoryV2/wiki/Real-Time-Event-System)** — Live notifications via SSE/WebSocket/Webhooks when memories change.
|
|
362
234
|
|
|
363
235
|
---
|
|
364
236
|
|
|
@@ -381,79 +253,29 @@ Leiden clustering discovers 6-7 natural topic communities automatically.
|
|
|
381
253
|
| **Gemini CLI** | ✅ MCP + Skills | Native MCP + skills |
|
|
382
254
|
| **JetBrains IDEs** | ✅ MCP | Via AI Assistant settings |
|
|
383
255
|
| **Zed Editor** | ✅ MCP | Native MCP tools |
|
|
384
|
-
| **OpenCode** | ✅ MCP | Native MCP tools |
|
|
385
|
-
| **Perplexity** | ✅ MCP | Native MCP tools |
|
|
386
|
-
| **Antigravity** | ✅ MCP + Skills | Native MCP tools |
|
|
387
|
-
| **ChatGPT** | ✅ MCP Connector | `search()` + `fetch()` via HTTP tunnel |
|
|
388
256
|
| **Aider** | ✅ Smart Wrapper | `aider-smart` with context |
|
|
389
257
|
| **Any Terminal** | ✅ Universal CLI | `slm remember "content"` |
|
|
390
258
|
|
|
391
259
|
### Three Ways to Access
|
|
392
260
|
|
|
393
|
-
1. **MCP (Model Context Protocol)**
|
|
261
|
+
1. **MCP (Model Context Protocol)** — Auto-configured for Cursor, Windsurf, Claude Desktop
|
|
394
262
|
- AI assistants get natural access to your memory
|
|
395
263
|
- No manual commands needed
|
|
396
264
|
- "Remember that we use FastAPI" just works
|
|
397
265
|
|
|
398
|
-
2. **Skills & Commands**
|
|
266
|
+
2. **Skills & Commands** — For Claude Code, Continue.dev, Cody
|
|
399
267
|
- `/superlocalmemoryv2:remember` in Claude Code
|
|
400
268
|
- `/slm-remember` in Continue.dev and Cody
|
|
401
269
|
- Familiar slash command interface
|
|
402
270
|
|
|
403
|
-
3. **Universal CLI**
|
|
271
|
+
3. **Universal CLI** — Works in any terminal or script
|
|
404
272
|
- `slm remember "content"` - Simple, clean syntax
|
|
405
273
|
- `slm recall "query"` - Search from anywhere
|
|
406
274
|
- `aider-smart` - Aider with auto-context injection
|
|
407
275
|
|
|
408
276
|
**All three methods use the SAME local database.** No data duplication, no conflicts.
|
|
409
277
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
Installation automatically detects and configures:
|
|
413
|
-
- Existing IDEs (Cursor, Windsurf, VS Code)
|
|
414
|
-
- Installed tools (Aider, Continue, Cody)
|
|
415
|
-
- Shell environment (bash, zsh)
|
|
416
|
-
|
|
417
|
-
**Zero manual configuration required.** It just works.
|
|
418
|
-
|
|
419
|
-
### Manual Setup for Other Apps
|
|
420
|
-
|
|
421
|
-
Want to use SuperLocalMemory in ChatGPT, Perplexity, Zed, or other MCP-compatible tools?
|
|
422
|
-
|
|
423
|
-
**📘 Complete setup guide:** [docs/MCP-MANUAL-SETUP.md](docs/MCP-MANUAL-SETUP.md)
|
|
424
|
-
|
|
425
|
-
Covers:
|
|
426
|
-
- ChatGPT Desktop - Add via Settings → MCP
|
|
427
|
-
- Perplexity - Configure via app settings
|
|
428
|
-
- Zed Editor - JSON configuration
|
|
429
|
-
- Cody - VS Code/JetBrains setup
|
|
430
|
-
- Custom MCP clients - Python/HTTP integration
|
|
431
|
-
|
|
432
|
-
All tools connect to the **same local database** - no data duplication.
|
|
433
|
-
|
|
434
|
-
---
|
|
435
|
-
|
|
436
|
-
## 💡 Why SuperLocalMemory?
|
|
437
|
-
|
|
438
|
-
### For Developers Who Use AI Daily
|
|
439
|
-
|
|
440
|
-
| Scenario | Without Memory | With SuperLocalMemory |
|
|
441
|
-
|----------|---------------|----------------------|
|
|
442
|
-
| New Claude session | Re-explain entire project | `recall "project context"` → instant context |
|
|
443
|
-
| Debugging | "We tried X last week..." starts over | Knowledge graph shows related past fixes |
|
|
444
|
-
| Code preferences | "I prefer React..." every time | Pattern learning knows your style |
|
|
445
|
-
| Multi-project | Context constantly bleeds | Separate profiles per project |
|
|
446
|
-
|
|
447
|
-
### Built on 2026 Research
|
|
448
|
-
|
|
449
|
-
Not another simple key-value store. SuperLocalMemory implements **cutting-edge memory architecture**:
|
|
450
|
-
|
|
451
|
-
- **PageIndex** (Meta AI) → Hierarchical memory organization
|
|
452
|
-
- **GraphRAG** (Microsoft) → Knowledge graph with auto-clustering
|
|
453
|
-
- **xMemory** (Stanford) → Identity pattern learning
|
|
454
|
-
- **A-RAG** → Multi-level retrieval with context awareness
|
|
455
|
-
|
|
456
|
-
**The only open-source implementation combining all four approaches.**
|
|
278
|
+
[Complete setup guide for all tools →](docs/MCP-MANUAL-SETUP.md)
|
|
457
279
|
|
|
458
280
|
---
|
|
459
281
|
|
|
@@ -470,23 +292,19 @@ Not another simple key-value store. SuperLocalMemory implements **cutting-edge m
|
|
|
470
292
|
| **Letta/MemGPT** | Self-hosted (complex) | TBD | Requires significant setup |
|
|
471
293
|
| **SuperLocalMemory V2** | **Unlimited** | **$0 forever** | **Nothing.** |
|
|
472
294
|
|
|
473
|
-
###
|
|
295
|
+
### What Actually Matters
|
|
474
296
|
|
|
475
297
|
| Feature | Mem0 | Zep | Khoj | Letta | **SuperLocalMemory V2** |
|
|
476
298
|
|---------|------|-----|------|-------|------------------------|
|
|
477
299
|
| **Works in Cursor** | Cloud Only | ❌ | ❌ | ❌ | ✅ **Local** |
|
|
478
300
|
| **Works in Windsurf** | Cloud Only | ❌ | ❌ | ❌ | ✅ **Local** |
|
|
479
301
|
| **Works in VS Code** | 3rd Party | ❌ | Partial | ❌ | ✅ **Native** |
|
|
480
|
-
| **Works in Claude** | ❌ | ❌ | ❌ | ❌ | ✅ |
|
|
481
|
-
| **Works with Aider** | ❌ | ❌ | ❌ | ❌ | ✅ |
|
|
482
302
|
| **Universal CLI** | ❌ | ❌ | ❌ | ❌ | ✅ |
|
|
483
|
-
| **
|
|
303
|
+
| **Multi-Layer Architecture** | ❌ | ❌ | ❌ | ❌ | ✅ |
|
|
484
304
|
| **Pattern Learning** | ❌ | ❌ | ❌ | ❌ | ✅ |
|
|
485
|
-
| **Multi-Profile Support** | ❌ | ❌ | ❌ | Partial | ✅ |
|
|
486
305
|
| **Knowledge Graphs** | ✅ | ✅ | ❌ | ❌ | ✅ |
|
|
487
306
|
| **100% Local** | ❌ | ❌ | Partial | Partial | ✅ |
|
|
488
307
|
| **Zero Setup** | ❌ | ❌ | ❌ | ❌ | ✅ |
|
|
489
|
-
| **Progressive Compression** | ❌ | ❌ | ❌ | ❌ | ✅ |
|
|
490
308
|
| **Completely Free** | Limited | Limited | Partial | ✅ | ✅ |
|
|
491
309
|
|
|
492
310
|
**SuperLocalMemory V2 is the ONLY solution that:**
|
|
@@ -498,122 +316,44 @@ Not another simple key-value store. SuperLocalMemory implements **cutting-edge m
|
|
|
498
316
|
|
|
499
317
|
---
|
|
500
318
|
|
|
501
|
-
##
|
|
502
|
-
|
|
503
|
-
### Multi-Layer Memory Architecture
|
|
504
|
-
|
|
505
|
-
**[View Interactive Architecture Diagram](https://superlocalmemory.com/architecture.html)** — Click any layer for details, research references, and file paths.
|
|
506
|
-
|
|
507
|
-
```
|
|
508
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
509
|
-
│ Layer 9: VISUALIZATION (NEW v2.2.0) │
|
|
510
|
-
│ Interactive dashboard: timeline, search, graph explorer │
|
|
511
|
-
│ Real-time analytics and visual insights │
|
|
512
|
-
├─────────────────────────────────────────────────────────────┤
|
|
513
|
-
│ Layer 8: HYBRID SEARCH (NEW v2.2.0) │
|
|
514
|
-
│ Combines: Semantic + FTS5 + Graph traversal │
|
|
515
|
-
│ 80ms response time with maximum accuracy │
|
|
516
|
-
├─────────────────────────────────────────────────────────────┤
|
|
517
|
-
│ Layer 7: UNIVERSAL ACCESS │
|
|
518
|
-
│ MCP + Skills + CLI (works everywhere) │
|
|
519
|
-
│ 17+ IDEs with single database │
|
|
520
|
-
├─────────────────────────────────────────────────────────────┤
|
|
521
|
-
│ Layer 6: MCP INTEGRATION │
|
|
522
|
-
│ Model Context Protocol: 6 tools, 4 resources, 2 prompts │
|
|
523
|
-
│ Auto-configured for Cursor, Windsurf, Claude │
|
|
524
|
-
├─────────────────────────────────────────────────────────────┤
|
|
525
|
-
│ Layer 5: SKILLS LAYER │
|
|
526
|
-
│ 6 universal slash-commands for AI assistants │
|
|
527
|
-
│ Compatible with Claude Code, Continue, Cody │
|
|
528
|
-
├─────────────────────────────────────────────────────────────┤
|
|
529
|
-
│ Layer 4: PATTERN LEARNING + MACLA (v2.4.0) │
|
|
530
|
-
│ Bayesian Beta-Binomial confidence (arXiv:2512.18950) │
|
|
531
|
-
│ "You prefer React over Vue" (73% confidence) │
|
|
532
|
-
├─────────────────────────────────────────────────────────────┤
|
|
533
|
-
│ Layer 3: KNOWLEDGE GRAPH + HIERARCHICAL LEIDEN (v2.4.1) │
|
|
534
|
-
│ Recursive clustering: "Python" → "FastAPI" → "Auth" │
|
|
535
|
-
│ Community summaries + TF-IDF structured reports │
|
|
536
|
-
├─────────────────────────────────────────────────────────────┤
|
|
537
|
-
│ Layer 2: HIERARCHICAL INDEX │
|
|
538
|
-
│ Tree structure for fast navigation │
|
|
539
|
-
│ O(log n) lookups instead of O(n) scans │
|
|
540
|
-
├─────────────────────────────────────────────────────────────┤
|
|
541
|
-
│ Layer 1: RAW STORAGE │
|
|
542
|
-
│ SQLite + Full-text search + TF-IDF vectors │
|
|
543
|
-
│ Compression: 60-96% space savings │
|
|
544
|
-
└─────────────────────────────────────────────────────────────┘
|
|
545
|
-
```
|
|
546
|
-
|
|
547
|
-
### Knowledge Graph (It's Magic)
|
|
548
|
-
|
|
549
|
-
```bash
|
|
550
|
-
# Build the graph from your memories
|
|
551
|
-
python ~/.claude-memory/graph_engine.py build
|
|
552
|
-
|
|
553
|
-
# Output:
|
|
554
|
-
# ✓ Processed 47 memories
|
|
555
|
-
# ✓ Created 12 clusters:
|
|
556
|
-
# - "Authentication & Tokens" (8 memories)
|
|
557
|
-
# - "Performance Optimization" (6 memories)
|
|
558
|
-
# - "React Components" (11 memories)
|
|
559
|
-
# - "Database Queries" (5 memories)
|
|
560
|
-
# ...
|
|
561
|
-
```
|
|
319
|
+
## ⚡ Measured Performance
|
|
562
320
|
|
|
563
|
-
|
|
321
|
+
All numbers measured on real hardware (Apple M4 Pro, 24GB RAM). No estimates — real benchmarks.
|
|
564
322
|
|
|
565
|
-
###
|
|
323
|
+
### Search Speed
|
|
566
324
|
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
python ~/.claude-memory/pattern_learner.py context 0.5
|
|
573
|
-
|
|
574
|
-
# Output:
|
|
575
|
-
# Your Coding Identity:
|
|
576
|
-
# - Framework preference: React (73% confidence)
|
|
577
|
-
# - Style: Performance over readability (58% confidence)
|
|
578
|
-
# - Testing: Jest + React Testing Library (65% confidence)
|
|
579
|
-
# - API style: REST over GraphQL (81% confidence)
|
|
580
|
-
```
|
|
325
|
+
| Database Size | Median Latency | P95 Latency |
|
|
326
|
+
|---------------|----------------|-------------|
|
|
327
|
+
| 100 memories | **10.6ms** | 14.9ms |
|
|
328
|
+
| 500 memories | **65.2ms** | 101.7ms |
|
|
329
|
+
| 1,000 memories | **124.3ms** | 190.1ms |
|
|
581
330
|
|
|
582
|
-
|
|
331
|
+
For typical personal use (under 500 memories), search results return faster than you blink.
|
|
583
332
|
|
|
584
|
-
|
|
333
|
+
### Concurrent Writes — Zero Errors
|
|
585
334
|
|
|
586
|
-
|
|
335
|
+
| Scenario | Writes/sec | Errors |
|
|
336
|
+
|----------|------------|--------|
|
|
337
|
+
| 1 AI tool writing | **204/sec** | 0 |
|
|
338
|
+
| 2 AI tools simultaneously | **220/sec** | 0 |
|
|
339
|
+
| 5 AI tools simultaneously | **130/sec** | 0 |
|
|
587
340
|
|
|
588
|
-
|
|
589
|
-
# Work profile
|
|
590
|
-
superlocalmemoryv2:profile create work --description "Day job"
|
|
591
|
-
superlocalmemoryv2:profile switch work
|
|
341
|
+
WAL mode + serialized write queue = zero "database is locked" errors, ever.
|
|
592
342
|
|
|
593
|
-
|
|
594
|
-
superlocalmemoryv2:profile create personal
|
|
595
|
-
superlocalmemoryv2:profile switch personal
|
|
343
|
+
### Storage
|
|
596
344
|
|
|
597
|
-
|
|
598
|
-
superlocalmemoryv2:profile create client-acme
|
|
599
|
-
```
|
|
345
|
+
10,000 memories = **13.6 MB** on disk (~1.9 KB per memory). Your entire AI memory history takes less space than a photo.
|
|
600
346
|
|
|
601
|
-
|
|
347
|
+
### Graph Construction
|
|
602
348
|
|
|
603
|
-
|
|
349
|
+
| Memories | Build Time |
|
|
350
|
+
|----------|-----------|
|
|
351
|
+
| 100 | 0.28s |
|
|
352
|
+
| 1,000 | 10.6s |
|
|
604
353
|
|
|
605
|
-
|
|
354
|
+
Leiden clustering discovers 6-7 natural topic communities automatically.
|
|
606
355
|
|
|
607
|
-
|
|
608
|
-
|-------|-------------|
|
|
609
|
-
| [Quick Start](https://github.com/varun369/SuperLocalMemoryV2/wiki/Quick-Start-Tutorial) | Get running in 5 minutes |
|
|
610
|
-
| [Installation](https://github.com/varun369/SuperLocalMemoryV2/wiki/Installation) | Detailed setup instructions |
|
|
611
|
-
| [Visualization Dashboard](https://github.com/varun369/SuperLocalMemoryV2/wiki/Visualization-Dashboard) | Interactive web UI guide (NEW v2.2.0) |
|
|
612
|
-
| [CLI Reference](docs/CLI-COMMANDS-REFERENCE.md) | All commands explained |
|
|
613
|
-
| [Knowledge Graph](docs/GRAPH-ENGINE.md) | How clustering works |
|
|
614
|
-
| [Pattern Learning](docs/PATTERN-LEARNING.md) | Identity extraction |
|
|
615
|
-
| [Profiles Guide](docs/PROFILES-GUIDE.md) | Multi-context management |
|
|
616
|
-
| [API Reference](docs/API-REFERENCE.md) | Python API documentation |
|
|
356
|
+
[Full benchmark details →](https://github.com/varun369/SuperLocalMemoryV2/wiki/Performance-Benchmarks)
|
|
617
357
|
|
|
618
358
|
---
|
|
619
359
|
|
|
@@ -632,40 +372,33 @@ superlocalmemoryv2:profile create <name> # New profile
|
|
|
632
372
|
superlocalmemoryv2:profile switch <name> # Switch context
|
|
633
373
|
|
|
634
374
|
# Knowledge Graph
|
|
635
|
-
python ~/.claude-memory/graph_engine.py build # Build graph
|
|
375
|
+
python ~/.claude-memory/graph_engine.py build # Build graph
|
|
636
376
|
python ~/.claude-memory/graph_engine.py stats # View clusters
|
|
637
|
-
python ~/.claude-memory/graph_engine.py related --id 5 # Find related
|
|
638
|
-
python ~/.claude-memory/graph_engine.py hierarchical # Sub-cluster large communities
|
|
639
|
-
python ~/.claude-memory/graph_engine.py summaries # Generate cluster summaries
|
|
640
377
|
|
|
641
378
|
# Pattern Learning
|
|
642
379
|
python ~/.claude-memory/pattern_learner.py update # Learn patterns
|
|
643
380
|
python ~/.claude-memory/pattern_learner.py context 0.5 # Get identity
|
|
644
381
|
|
|
645
|
-
#
|
|
646
|
-
python ~/.claude-memory/
|
|
647
|
-
python ~/.claude-memory/auto_backup.py list # List backups
|
|
648
|
-
python ~/.claude-memory/auto_backup.py status # Backup status
|
|
649
|
-
|
|
650
|
-
# Reset (Use with caution!)
|
|
651
|
-
superlocalmemoryv2:reset soft # Clear memories
|
|
652
|
-
superlocalmemoryv2:reset hard --confirm # Nuclear option
|
|
382
|
+
# Visualization Dashboard
|
|
383
|
+
python ~/.claude-memory/ui_server.py # Launch web UI
|
|
653
384
|
```
|
|
654
385
|
|
|
655
|
-
|
|
386
|
+
[Complete CLI reference →](docs/CLI-COMMANDS-REFERENCE.md)
|
|
656
387
|
|
|
657
|
-
|
|
388
|
+
---
|
|
658
389
|
|
|
659
|
-
|
|
660
|
-
|--------|----------------|
|
|
661
|
-
| **Search latency** | **10.6ms** median (100 memories) |
|
|
662
|
-
| **Concurrent writes** | **220/sec** with 2 agents, zero errors |
|
|
663
|
-
| **Storage** | **1.9 KB** per memory at scale (13.6 MB for 10K) |
|
|
664
|
-
| **Trust defense** | **1.0** trust gap (perfect separation) |
|
|
665
|
-
| **Graph build** | **0.28s** for 100 memories |
|
|
666
|
-
| **Search quality** | **MRR 0.90** (first result correct 9/10 times) |
|
|
390
|
+
## 📖 Documentation
|
|
667
391
|
|
|
668
|
-
|
|
392
|
+
| Guide | Description |
|
|
393
|
+
|-------|-------------|
|
|
394
|
+
| [Quick Start](https://github.com/varun369/SuperLocalMemoryV2/wiki/Quick-Start-Tutorial) | Get running in 5 minutes |
|
|
395
|
+
| [Installation](https://github.com/varun369/SuperLocalMemoryV2/wiki/Installation) | Detailed setup instructions |
|
|
396
|
+
| [Visualization Dashboard](https://github.com/varun369/SuperLocalMemoryV2/wiki/Visualization-Dashboard) | Interactive web UI guide |
|
|
397
|
+
| [Interactive Graph](https://github.com/varun369/SuperLocalMemoryV2/wiki/Using-Interactive-Graph) | Graph exploration guide (NEW v2.6.5) |
|
|
398
|
+
| [Framework Integrations](docs/FRAMEWORK-INTEGRATIONS.md) | LangChain & LlamaIndex setup |
|
|
399
|
+
| [Knowledge Graph](docs/GRAPH-ENGINE.md) | How clustering works |
|
|
400
|
+
| [Pattern Learning](docs/PATTERN-LEARNING.md) | Identity extraction |
|
|
401
|
+
| [API Reference](docs/API-REFERENCE.md) | Python API documentation |
|
|
669
402
|
|
|
670
403
|
---
|
|
671
404
|
|
|
@@ -675,9 +408,8 @@ We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
|
675
408
|
|
|
676
409
|
**Areas for contribution:**
|
|
677
410
|
- Additional pattern categories
|
|
678
|
-
- Graph visualization UI
|
|
679
|
-
- Integration with more AI assistants
|
|
680
411
|
- Performance optimizations
|
|
412
|
+
- Integration with more AI assistants
|
|
681
413
|
- Documentation improvements
|
|
682
414
|
|
|
683
415
|
---
|