superlocalmemory 3.4.3 → 3.4.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.
@@ -0,0 +1,601 @@
1
+ Metadata-Version: 2.4
2
+ Name: superlocalmemory
3
+ Version: 3.4.4
4
+ Summary: Information-geometric agent memory with mathematical guarantees
5
+ Author-email: Varun Pratap Bhardwaj <admin@superlocalmemory.com>
6
+ License: AGPL-3.0-or-later
7
+ Project-URL: Homepage, https://superlocalmemory.com
8
+ Project-URL: Repository, https://github.com/qualixar/superlocalmemory
9
+ Project-URL: Documentation, https://github.com/qualixar/superlocalmemory/wiki
10
+ Project-URL: Issues, https://github.com/qualixar/superlocalmemory/issues
11
+ Keywords: ai-memory,mcp-server,local-first,agent-memory,information-geometry,privacy-first,eu-ai-act
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Operating System :: POSIX :: Linux
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
+ Requires-Python: <3.15,>=3.11
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ License-File: NOTICE
29
+ License-File: AUTHORS.md
30
+ Requires-Dist: httpx>=0.24.0
31
+ Requires-Dist: numpy<3.0.0,>=1.26.0
32
+ Requires-Dist: scipy<2.0.0,>=1.12.0
33
+ Requires-Dist: networkx>=3.0
34
+ Requires-Dist: mcp>=1.0.0
35
+ Requires-Dist: python-dateutil>=2.9.0.post0
36
+ Requires-Dist: rank-bm25>=0.2.2
37
+ Requires-Dist: vadersentiment>=3.3.2
38
+ Requires-Dist: einops>=0.8.2
39
+ Requires-Dist: fastapi[all]>=0.135.1
40
+ Requires-Dist: uvicorn>=0.42.0
41
+ Requires-Dist: websockets>=16.0
42
+ Requires-Dist: lightgbm>=4.0.0
43
+ Requires-Dist: diskcache>=5.6.0
44
+ Requires-Dist: orjson>=3.9.0
45
+ Requires-Dist: tree-sitter<1,>=0.23.0
46
+ Requires-Dist: tree-sitter-language-pack<2,>=0.3
47
+ Requires-Dist: rustworkx<1,>=0.15
48
+ Requires-Dist: watchdog<6,>=4.0
49
+ Requires-Dist: psutil>=5.9.0
50
+ Requires-Dist: structlog<27.0.0,>=24.0.0
51
+ Provides-Extra: search
52
+ Requires-Dist: sentence-transformers[onnx]>=5.0.0; extra == "search"
53
+ Requires-Dist: einops>=0.8.2; extra == "search"
54
+ Requires-Dist: torch>=2.2.0; extra == "search"
55
+ Requires-Dist: scikit-learn<2.0.0,>=1.3.0; extra == "search"
56
+ Requires-Dist: geoopt>=0.5.0; extra == "search"
57
+ Requires-Dist: onnxruntime>=1.17.0; extra == "search"
58
+ Provides-Extra: ui
59
+ Requires-Dist: fastapi[all]>=0.135.1; extra == "ui"
60
+ Requires-Dist: uvicorn>=0.42.0; extra == "ui"
61
+ Requires-Dist: python-multipart<1.0.0,>=0.0.6; extra == "ui"
62
+ Provides-Extra: learning
63
+ Requires-Dist: lightgbm>=4.0.0; extra == "learning"
64
+ Provides-Extra: performance
65
+ Requires-Dist: diskcache>=5.6.0; extra == "performance"
66
+ Requires-Dist: orjson>=3.9.0; extra == "performance"
67
+ Provides-Extra: ingestion
68
+ Requires-Dist: keyring>=25.0.0; extra == "ingestion"
69
+ Requires-Dist: google-auth-oauthlib>=1.2.0; extra == "ingestion"
70
+ Requires-Dist: google-api-python-client>=2.100.0; extra == "ingestion"
71
+ Requires-Dist: icalendar>=6.0.0; extra == "ingestion"
72
+ Provides-Extra: full
73
+ Requires-Dist: superlocalmemory[ingestion,learning,performance,search,ui]; extra == "full"
74
+ Provides-Extra: dev
75
+ Requires-Dist: pytest>=8.0; extra == "dev"
76
+ Requires-Dist: pytest-cov>=4.1; extra == "dev"
77
+ Requires-Dist: sqlite-vec>=0.1.6; extra == "dev"
78
+ Dynamic: license-file
79
+
80
+ <p align="center">
81
+ <img src="https://superlocalmemory.com/assets/logo-mark.png" alt="SuperLocalMemory" width="200"/>
82
+ </p>
83
+
84
+ <h1 align="center">SuperLocalMemory V3.4</h1>
85
+ <p align="center"><strong>Every other AI forgets. Yours won't.</strong><br/><em>Infinite memory for Claude Code, Cursor, Windsurf & 17+ AI tools.</em></p>
86
+ <p align="center"><code>v3.4.4 "Neural Glass"</code> — Install once. Every session remembers the last. Automatically.</p>
87
+ <p align="center"><strong>Backed by 3 peer-reviewed research papers</strong> · <a href="https://arxiv.org/abs/2603.02240">arXiv:2603.02240</a> · <a href="https://arxiv.org/abs/2603.14588">arXiv:2603.14588</a> · <a href="https://arxiv.org/abs/2604.04514">arXiv:2604.04514</a></p>
88
+
89
+ <p align="center">
90
+ <code>+16pp vs Mem0 (zero cloud)</code> &nbsp;·&nbsp; <code>85% Open-Domain (best of any system)</code> &nbsp;·&nbsp; <code>EU AI Act Ready</code>
91
+ </p>
92
+
93
+ <p align="center">
94
+ <a href="https://arxiv.org/abs/2603.14588"><img src="https://img.shields.io/badge/arXiv-2603.14588-b31b1b?style=for-the-badge&logo=arxiv&logoColor=white" alt="arXiv Paper"/></a>
95
+ <a href="https://pypi.org/project/superlocalmemory/"><img src="https://img.shields.io/pypi/v/superlocalmemory?style=for-the-badge&logo=pypi&logoColor=white" alt="PyPI"/></a>
96
+ <a href="https://www.npmjs.com/package/superlocalmemory"><img src="https://img.shields.io/npm/v/superlocalmemory?style=for-the-badge&logo=npm&logoColor=white" alt="npm"/></a>
97
+ <a href="https://www.gnu.org/licenses/agpl-3.0"><img src="https://img.shields.io/badge/License-AGPL_v3-blue.svg?style=for-the-badge" alt="AGPL v3"/></a>
98
+ <a href="#eu-ai-act-compliance"><img src="https://img.shields.io/badge/EU_AI_Act-Compliant-brightgreen?style=for-the-badge" alt="EU AI Act"/></a>
99
+ <a href="https://superlocalmemory.com"><img src="https://img.shields.io/badge/Web-superlocalmemory.com-ff6b35?style=for-the-badge" alt="Website"/></a>
100
+ <a href="#dual-interface-mcp--cli"><img src="https://img.shields.io/badge/MCP-Native-blue?style=for-the-badge" alt="MCP Native"/></a>
101
+ <a href="#dual-interface-mcp--cli"><img src="https://img.shields.io/badge/CLI-Agent--Native-green?style=for-the-badge" alt="CLI Agent-Native"/></a>
102
+ </p>
103
+
104
+ ---
105
+
106
+ ## Why SuperLocalMemory?
107
+
108
+ Every major AI memory system — Mem0, Zep, Letta, EverMemOS — sends your data to cloud LLMs for core operations. That means latency on every query, cost on every interaction, and after **August 2, 2026**, a compliance problem under the EU AI Act.
109
+
110
+ SuperLocalMemory V3 takes a different approach: **mathematics instead of cloud compute.** Three techniques from differential geometry, algebraic topology, and stochastic analysis replace the work that other systems need LLMs to do — similarity scoring, contradiction detection, and lifecycle management. The result is an agent memory that runs entirely on your machine, on CPU, with no API keys, and still outperforms funded alternatives.
111
+
112
+ **The numbers** (evaluated on [LoCoMo](https://arxiv.org/abs/2402.09714), the standard long-conversation memory benchmark):
113
+
114
+ | System | Score | Cloud Required | Open Source | Funding |
115
+ |:-------|:-----:|:--------------:|:-----------:|:-------:|
116
+ | EverMemOS | 92.3% | Yes | No | — |
117
+ | Hindsight | 89.6% | Yes | No | — |
118
+ | **SLM V3 Mode C** | **87.7%** | Optional | **Yes (EL2)** | $0 |
119
+ | Zep v3 | 85.2% | Yes | Deprecated | $35M |
120
+ | **SLM V3 Mode A** | **74.8%** | **No** | **Yes (EL2)** | $0 |
121
+ | Mem0 | 64.2% | Yes | Partial | $24M |
122
+
123
+ Mode A scores **74.8% with zero cloud dependency** — outperforming Mem0 by 16 percentage points without a single API call. On open-domain questions, Mode A scores **85.0% — the highest of any system in the evaluation**, including cloud-powered ones. Mode C reaches **87.7%**, matching enterprise cloud systems.
124
+
125
+ Mathematical layers contribute **+12.7 percentage points** on average across 6 conversations (n=832 questions), with up to **+19.9pp on the most challenging dialogues**. This isn't more compute — it's better math.
126
+
127
+ > **Upgrading from V2 (2.8.6)?** V3 is a complete architectural reinvention — new mathematical engine, new retrieval pipeline, new storage schema. Your existing data is preserved but requires migration. After installing V3, run `slm migrate` to upgrade your data. Read the [Migration Guide](https://github.com/qualixar/superlocalmemory/wiki/Migration-from-V2) before upgrading. Backup is created automatically.
128
+
129
+ ---
130
+
131
+ ## What's New in V3.3 — The Living Brain Evolves
132
+
133
+ > V3.3 gives your memory a lifecycle. Memories strengthen when used, fade when neglected, compress when idle, and consolidate into reusable patterns — all automatically, all locally. Your agent gets smarter the longer it runs.
134
+
135
+ ### Features at a Glance
136
+
137
+ - **Adaptive Memory Lifecycle** — memories naturally strengthen with use and fade when neglected. No manual cleanup, no hardcoded TTLs.
138
+ - **Smart Compression** — embedding precision adapts to memory importance. Low-priority memories compress up to 32x. High-value memories stay full-resolution.
139
+ - **Cognitive Consolidation** — the system automatically extracts patterns from clusters of related memories. One decision referenced 50 times becomes one reusable insight.
140
+ - **Pattern Learning** — auto-learned soft prompts injected into your agent's context at session start. The system teaches itself what matters to you.
141
+ - **Hopfield Retrieval (6th Channel)** — vague or partial queries now complete themselves. Ask half a question, get the whole answer.
142
+ - **Process Health** — orphaned SLM processes detected and cleaned automatically. No more zombie workers eating RAM.
143
+
144
+ ### New CLI Commands
145
+
146
+ ```bash
147
+ # Run a memory lifecycle review — strengthens active memories, archives neglected ones
148
+ slm decay
149
+
150
+ # Run smart compression — adapts embedding precision to memory importance
151
+ slm quantize
152
+
153
+ # Extract reusable patterns from memory clusters
154
+ slm consolidate --cognitive
155
+
156
+ # View auto-learned patterns that get injected into agent context
157
+ slm soft-prompts
158
+
159
+ # Clean up orphaned SLM processes
160
+ slm reap
161
+ ```
162
+
163
+ ### New MCP Tools
164
+
165
+ | Tool | Description |
166
+ |:-----|:------------|
167
+ | `forget` | Programmatic memory archival via lifecycle rules |
168
+ | `quantize` | Trigger smart compression on demand |
169
+ | `consolidate_cognitive` | Extract and store patterns from memory clusters |
170
+ | `get_soft_prompts` | Retrieve auto-learned patterns for context injection |
171
+ | `reap_processes` | Clean orphaned SLM processes |
172
+ | `get_retention_stats` | Memory lifecycle analytics |
173
+
174
+ ### Mode A/B Memory Improvements
175
+
176
+ | Metric | V3.2 | V3.3 | Change |
177
+ |:-------|:----:|:----:|:------:|
178
+ | RAM usage (Mode A/B) | ~4GB | ~40MB | **100x reduction** |
179
+ | Retrieval channels | 5 | 6 | +Hopfield completion |
180
+ | MCP tools | 29 | 35 | +6 new |
181
+ | CLI commands | 21 | 26 | +5 new |
182
+ | Dashboard tabs | 20 | 23 | +3 new |
183
+ | API endpoints | 9 | 16 | +7 new |
184
+
185
+ Embedding migration happens automatically when you switch modes — no manual steps needed.
186
+
187
+ ### Dashboard
188
+
189
+ Three new tabs: **Memory Lifecycle** (retention curves, decay stats), **Compression** (storage savings, precision distribution), and **Patterns** (auto-learned soft prompts, consolidation history). Seven new API endpoints power the new views.
190
+
191
+ ### Enable V3.3 Features
192
+
193
+ All new features default OFF. Zero breaking changes. Opt in when ready:
194
+
195
+ ```bash
196
+ # Turn on adaptive memory lifecycle
197
+ slm config set lifecycle.enabled true
198
+
199
+ # Turn on smart compression
200
+ slm config set quantization.enabled true
201
+
202
+ # Turn on cognitive consolidation
203
+ slm config set consolidation.cognitive.enabled true
204
+
205
+ # Turn on pattern learning (soft prompts)
206
+ slm config set soft_prompts.enabled true
207
+
208
+ # Turn on Hopfield retrieval (6th channel)
209
+ slm config set retrieval.hopfield.enabled true
210
+
211
+ # Or enable everything at once
212
+ slm config set v33_features.all true
213
+ ```
214
+
215
+ **Fully backward compatible.** All existing MCP tools, CLI commands, and configs work unchanged. New tables are created automatically on first run. No migration needed.
216
+
217
+ ---
218
+
219
+ <details>
220
+ <summary><strong>What's New in V3.2 — The Living Brain</strong> (click to expand)</summary>
221
+
222
+ 100x faster recall (<10ms at 10K facts), automatic memory surfacing, associative retrieval (5th channel), temporal intelligence with bi-temporal validity, sleep-time consolidation, and core memory blocks. All features default OFF, zero breaking changes.
223
+
224
+ | Metric | V3.0 | V3.2 | Change |
225
+ |:-------|:----:|:----:|:------:|
226
+ | Recall latency (10K facts) | ~500ms | <10ms | **100x faster** |
227
+ | Retrieval channels | 4 | 5 | +spreading activation |
228
+ | MCP tools | 24 | 29 | +5 new |
229
+ | DB tables | 9 | 18 | +9 new |
230
+
231
+ Enable with `slm config set v32_features.all true`. See the [V3.2 Overview](https://github.com/qualixar/superlocalmemory/wiki/V3.2-Overview) wiki page for details.
232
+
233
+ </details>
234
+
235
+ ---
236
+
237
+ ## Quick Start
238
+
239
+ ### Install via npm (recommended)
240
+
241
+ ```bash
242
+ npm install -g superlocalmemory
243
+ slm setup # Choose mode (A/B/C)
244
+ slm doctor # Verify everything is working
245
+ slm warmup # Pre-download embedding model (~500MB, optional)
246
+ ```
247
+
248
+ ### Install via pip
249
+
250
+ ```bash
251
+ pip install superlocalmemory
252
+ ```
253
+
254
+ ### First Use
255
+
256
+ ```bash
257
+ slm remember "Alice works at Google as a Staff Engineer"
258
+ slm recall "What does Alice do?"
259
+ slm status
260
+ ```
261
+
262
+ ### MCP Integration (Claude, Cursor, Windsurf, VS Code, etc.)
263
+
264
+ ```json
265
+ {
266
+ "mcpServers": {
267
+ "superlocalmemory": {
268
+ "command": "slm",
269
+ "args": ["mcp"]
270
+ }
271
+ }
272
+ }
273
+ ```
274
+
275
+ 35 MCP tools + 7 resources available. Works with Claude Code, Cursor, Windsurf, VS Code Copilot, Continue, Cody, ChatGPT Desktop, Gemini CLI, JetBrains, Zed, and 17+ AI tools. **V3.3: Adaptive lifecycle, smart compression, and pattern learning.**
276
+
277
+ ### Dual Interface: MCP + CLI
278
+
279
+ SLM works everywhere -- from IDEs to CI pipelines to Docker containers. The only AI memory system with both MCP and agent-native CLI.
280
+
281
+ | Need | Use | Example |
282
+ |------|-----|---------|
283
+ | IDE integration | MCP | Auto-configured for 17+ IDEs via `slm connect` |
284
+ | Shell scripts | CLI + `--json` | `slm recall "auth" --json \| jq '.data.results[0]'` |
285
+ | CI/CD pipelines | CLI + `--json` | `slm remember "deployed v2.1" --json` in GitHub Actions |
286
+ | Agent frameworks | CLI + `--json` | OpenClaw, Codex, Goose, nanobot |
287
+ | Human use | CLI | `slm recall "auth"` (readable text output) |
288
+
289
+ **Agent-native JSON output** on every command:
290
+
291
+ ```bash
292
+ # Human-readable (default)
293
+ slm recall "database schema"
294
+ # 1. [0.87] Database uses PostgreSQL 16 on port 5432...
295
+
296
+ # Agent-native JSON
297
+ slm recall "database schema" --json
298
+ # {"success": true, "command": "recall", "version": "3.0.22", "data": {"results": [...]}}
299
+ ```
300
+
301
+ All `--json` responses follow a consistent envelope with `success`, `command`, `version`, `data`, and `next_actions` for agent guidance.
302
+
303
+ ---
304
+
305
+ ## Three Operating Modes
306
+
307
+ | Mode | What | Cloud? | EU AI Act | Best For |
308
+ |:----:|:-----|:------:|:---------:|:---------|
309
+ | **A** | Local Guardian | **None** | **Compliant** | Privacy-first, air-gapped, enterprise |
310
+ | **B** | Smart Local | Local only (Ollama) | Compliant | Better answers, data stays local |
311
+ | **C** | Full Power | Cloud LLM | Partial | Maximum accuracy, research |
312
+
313
+ ```bash
314
+ slm mode a # Zero-cloud (default)
315
+ slm mode b # Local Ollama
316
+ slm mode c # Cloud LLM
317
+ ```
318
+
319
+ **Mode A** is the only agent memory that operates with **zero cloud dependency** while achieving competitive retrieval accuracy on a standard benchmark. All data stays on your device. No API keys. No GPU. Runs on 2 vCPUs + 4GB RAM.
320
+
321
+ ---
322
+
323
+ ## Architecture
324
+
325
+ ```
326
+ Query ──► Strategy Classifier ──► 6 Parallel Channels:
327
+ ├── Semantic (Fisher-Rao geodesic distance)
328
+ ├── BM25 (keyword matching)
329
+ ├── Entity Graph (spreading activation, 3 hops)
330
+ ├── Temporal (date-aware retrieval)
331
+ ├── Associative (multi-hop spreading activation)
332
+ └── Hopfield (partial query completion)
333
+
334
+ RRF Fusion (k=60)
335
+
336
+ Scene Expansion + Bridge Discovery
337
+
338
+ Cross-Encoder Reranking
339
+
340
+ ◄── Top-K Results with channel scores
341
+ ```
342
+
343
+ ### Mathematical Foundations
344
+
345
+ Three novel contributions replace cloud LLM dependency with mathematical guarantees:
346
+
347
+ 1. **Fisher-Rao Retrieval Metric** — Similarity scoring derived from the Fisher information structure of diagonal Gaussian families. Graduated ramp from cosine to geodesic distance over the first 10 accesses. The first application of information geometry to agent memory retrieval.
348
+
349
+ 2. **Sheaf Cohomology for Consistency** — Algebraic topology detects contradictions by computing coboundary norms on the knowledge graph. The first algebraic guarantee for contradiction detection in agent memory.
350
+
351
+ 3. **Riemannian Langevin Lifecycle** — Memory positions evolve on the Poincare ball via discretized Langevin SDE. Frequently accessed memories stay active; neglected memories self-archive. No hardcoded thresholds.
352
+
353
+ These three layers collectively yield **+12.7pp average improvement** over the engineering-only baseline, with the Fisher metric alone contributing **+10.8pp** on the hardest conversations.
354
+
355
+ ---
356
+
357
+ ## Benchmarks
358
+
359
+ Evaluated on [LoCoMo](https://arxiv.org/abs/2402.09714) — 10 multi-session conversations, 1,986 total questions, 4 scored categories.
360
+
361
+ ### Mode A (Zero-Cloud, 10 Conversations, 1,276 Questions)
362
+
363
+ | Category | Score | vs. Mem0 (64.2%) |
364
+ |:---------|:-----:|:-----------------:|
365
+ | Single-Hop | 72.0% | +3.0pp |
366
+ | Multi-Hop | 70.3% | +8.6pp |
367
+ | Temporal | 80.0% | +21.7pp |
368
+ | **Open-Domain** | **85.0%** | **+35.0pp** |
369
+ | **Aggregate** | **74.8%** | **+10.6pp** |
370
+
371
+ Mode A achieves **85.0% on open-domain questions — the highest of any system in the evaluation**, including cloud-powered ones.
372
+
373
+ ### Math Layer Impact (6 Conversations, n=832)
374
+
375
+ | Conversation | With Math | Without | Delta |
376
+ |:-------------|:---------:|:-------:|:-----:|
377
+ | Easiest | 78.5% | 71.2% | +7.3pp |
378
+ | Hardest | 64.2% | 44.3% | **+19.9pp** |
379
+ | **Average** | **71.7%** | **58.9%** | **+12.7pp** |
380
+
381
+ Mathematical layers help most where heuristic methods struggle — the harder the conversation, the bigger the improvement.
382
+
383
+ ### Ablation (What Each Component Contributes)
384
+
385
+ | Removed | Impact |
386
+ |:--------|:------:|
387
+ | Cross-encoder reranking | **-30.7pp** |
388
+ | Fisher-Rao metric | **-10.8pp** |
389
+ | All math layers | **-7.6pp** |
390
+ | BM25 channel | **-6.5pp** |
391
+ | Sheaf consistency | -1.7pp |
392
+ | Entity graph | -1.0pp |
393
+
394
+ Full ablation details in the [Wiki](https://github.com/qualixar/superlocalmemory/wiki/Benchmarks).
395
+
396
+ ---
397
+
398
+ ## EU AI Act Compliance
399
+
400
+ The EU AI Act (Regulation 2024/1689) takes full effect **August 2, 2026**. Every AI memory system that sends personal data to cloud LLMs for core operations has a compliance question to answer.
401
+
402
+ | Requirement | Mode A | Mode B | Mode C |
403
+ |:------------|:------:|:------:|:------:|
404
+ | Data sovereignty (Art. 10) | **Pass** | **Pass** | Requires DPA |
405
+ | Right to erasure (GDPR Art. 17) | **Pass** | **Pass** | **Pass** |
406
+ | Transparency (Art. 13) | **Pass** | **Pass** | **Pass** |
407
+ | No network calls during memory ops | **Yes** | **Yes** | No |
408
+
409
+ To the best of our knowledge, **no existing agent memory system addresses EU AI Act compliance**. Modes A and B pass all checks by architectural design — no personal data leaves the device during any memory operation.
410
+
411
+ Built-in compliance tools: GDPR Article 15/17 export + complete erasure, tamper-proof SHA-256 audit chain, data provenance tracking, ABAC policy enforcement.
412
+
413
+ ---
414
+
415
+ ## Web Dashboard
416
+
417
+ ```bash
418
+ slm dashboard # Opens at http://localhost:8765
419
+ ```
420
+
421
+ <details open>
422
+ <summary><strong>Dashboard Demo — v3.4.4 "Neural Glass"</strong> (click to collapse)</summary>
423
+ <p align="center">
424
+ <a href="https://github.com/qualixar/superlocalmemory/issues/15">
425
+ <video src="https://github.com/user-attachments/assets/c3b54a1d-f62a-4ea7-bba7-900435e7b3ab" width="800" autoplay loop muted playsinline>
426
+ Your browser does not support the video tag. <a href="https://github.com/qualixar/superlocalmemory/issues/15">Watch the demo</a>.
427
+ </video>
428
+ </a>
429
+ </p>
430
+ </details>
431
+
432
+ **v3.4.4 "Neural Glass":** 21-tab sidebar dashboard with light + dark theme. Knowledge Graph (Sigma.js WebGL, community detection), Health Monitor, Entity Explorer (1,300+ entities), Mesh Peers (P2P agent communication), Ingestion Status (Gmail/Calendar/Transcript management), Privacy blur mode. Always-on daemon with auto-start. 8 mesh MCP tools built-in. Cross-platform: macOS + Windows + Linux. All data stays local.
433
+
434
+ ---
435
+
436
+ <details>
437
+ <summary><strong>Active Memory (V3.1) — Memory That Learns</strong> (click to expand)</summary>
438
+
439
+ Every recall generates learning signals. Over time, the system adapts to your patterns — from baseline (0-19 signals) → rule-based (20+) → ML model (200+, LightGBM trained on YOUR usage). Zero LLM tokens spent. Four mathematical signals computed locally: co-retrieval, confidence lifecycle, channel performance, and entropy gap.
440
+
441
+ Auto-capture hooks: `slm hooks install` + `slm observe` + `slm session-context`. MCP tools: `session_init`, `observe`, `report_feedback`.
442
+
443
+ **No competitor learns at zero token cost.**
444
+
445
+ </details>
446
+
447
+ ---
448
+
449
+ ## Features
450
+
451
+ ### Retrieval
452
+ - 6-channel hybrid: Semantic (Fisher-Rao) + BM25 + Entity Graph + Temporal + Associative + Hopfield
453
+ - RRF fusion + cross-encoder reranking
454
+ - Agentic sufficiency verification (auto-retry on weak results)
455
+ - Adaptive ranking with LightGBM (learns from usage)
456
+ - Hopfield completion for vague/partial queries
457
+
458
+ ### Intelligence
459
+ - 11-step ingestion pipeline (entity resolution, fact extraction, emotional tagging, scene building)
460
+ - Automatic contradiction detection via sheaf cohomology
461
+ - Adaptive memory lifecycle — memories strengthen with use, fade when neglected
462
+ - Smart compression — embedding precision adapts to memory importance (up to 32x savings)
463
+ - Cognitive consolidation — automatic pattern extraction from related memories
464
+ - Auto-learned soft prompts injected into agent context
465
+ - Behavioral pattern detection and outcome tracking
466
+
467
+ ### Trust & Security
468
+ - Bayesian Beta-distribution trust scoring (per-agent, per-fact)
469
+ - Trust gates (block low-trust agents from writing/deleting)
470
+ - ABAC (Attribute-Based Access Control) with DB-persisted policies
471
+ - Tamper-proof hash-chain audit trail (SHA-256 linked entries)
472
+
473
+ ### Infrastructure
474
+ - 23-tab web dashboard with real-time visualization
475
+ - 17+ IDE integrations (Claude, Cursor, Windsurf, VS Code, JetBrains, Zed, etc.)
476
+ - 35 MCP tools + 7 MCP resources
477
+ - Profile isolation (independent memory spaces)
478
+ - 1400+ tests, AGPL v3, cross-platform (Mac/Linux/Windows)
479
+ - CPU-only — no GPU required
480
+ - Automatic orphaned process cleanup
481
+
482
+ ---
483
+
484
+ ## CLI Reference
485
+
486
+ | Command | What It Does |
487
+ |:--------|:-------------|
488
+ | `slm remember "..."` | Store a memory |
489
+ | `slm recall "..."` | Search memories |
490
+ | `slm forget "..."` | Delete matching memories |
491
+ | `slm trace "..."` | Recall with per-channel score breakdown |
492
+ | `slm status` | System status |
493
+ | `slm health` | Math layer health (Fisher, Sheaf, Langevin) |
494
+ | `slm doctor` | Pre-flight check (deps, worker, Ollama, database) |
495
+ | `slm mode a/b/c` | Switch operating mode |
496
+ | `slm setup` | Interactive first-time wizard |
497
+ | `slm warmup` | Pre-download embedding model |
498
+ | `slm migrate` | V2 to V3 migration |
499
+ | `slm dashboard` | Launch 17-tab web dashboard |
500
+ | `slm mcp` | Start MCP server (for IDE integration) |
501
+ | `slm connect` | Configure IDE integrations |
502
+ | `slm hooks install` | Wire auto-memory into Claude Code hooks |
503
+ | `slm profile list/create/switch` | Profile management |
504
+ | `slm decay` | Run memory lifecycle review |
505
+ | `slm quantize` | Run smart compression cycle |
506
+ | `slm consolidate --cognitive` | Extract patterns from memory clusters |
507
+ | `slm soft-prompts` | View auto-learned patterns |
508
+ | `slm reap` | Clean orphaned SLM processes |
509
+
510
+ ---
511
+
512
+ ## Research Papers
513
+
514
+ SuperLocalMemory is backed by three peer-reviewed research papers covering trust, information geometry, and cognitive memory architecture.
515
+
516
+ ### Paper 3: The Living Brain (V3.3)
517
+ > **SuperLocalMemory V3.3: The Living Brain — Biologically-Inspired Forgetting, Cognitive Quantization, and Multi-Channel Retrieval for Zero-LLM Agent Memory Systems**
518
+ > Varun Pratap Bhardwaj (2026)
519
+ > [arXiv:2604.04514](https://arxiv.org/abs/2604.04514) · [Zenodo DOI: 10.5281/zenodo.19435120](https://zenodo.org/records/19435120)
520
+
521
+ ### Paper 2: Information-Geometric Foundations (V3)
522
+ > **SuperLocalMemory V3: Information-Geometric Foundations for Zero-LLM Enterprise Agent Memory**
523
+ > Varun Pratap Bhardwaj (2026)
524
+ > [arXiv:2603.14588](https://arxiv.org/abs/2603.14588) · [Zenodo DOI: 10.5281/zenodo.19038659](https://zenodo.org/records/19038659)
525
+
526
+ ### Paper 1: Trust & Behavioral Foundations (V2)
527
+ > **SuperLocalMemory: A Structured Local Memory Architecture for Persistent AI Agent Context**
528
+ > Varun Pratap Bhardwaj (2026)
529
+ > [arXiv:2603.02240](https://arxiv.org/abs/2603.02240) · [Zenodo DOI: 10.5281/zenodo.18709670](https://zenodo.org/records/18709670)
530
+
531
+ ### Cite This Work
532
+
533
+ ```bibtex
534
+ @article{bhardwaj2026slmv33,
535
+ title={SuperLocalMemory V3.3: The Living Brain — Biologically-Inspired
536
+ Forgetting, Cognitive Quantization, and Multi-Channel Retrieval
537
+ for Zero-LLM Agent Memory Systems},
538
+ author={Bhardwaj, Varun Pratap},
539
+ journal={arXiv preprint arXiv:2604.04514},
540
+ year={2026},
541
+ url={https://arxiv.org/abs/2604.04514}
542
+ }
543
+
544
+ @article{bhardwaj2026slmv3,
545
+ title={Information-Geometric Foundations for Zero-LLM Enterprise Agent Memory},
546
+ author={Bhardwaj, Varun Pratap},
547
+ journal={arXiv preprint arXiv:2603.14588},
548
+ year={2026}
549
+ }
550
+
551
+ @article{bhardwaj2026slm,
552
+ title={A Structured Local Memory Architecture for Persistent AI Agent Context},
553
+ author={Bhardwaj, Varun Pratap},
554
+ journal={arXiv preprint arXiv:2603.02240},
555
+ year={2026}
556
+ }
557
+ ```
558
+
559
+ ---
560
+
561
+ ## Prerequisites
562
+
563
+ | Requirement | Version | Why |
564
+ |:-----------|:--------|:----|
565
+ | **Node.js** | 14+ | npm package manager |
566
+ | **Python** | 3.11+ | V3 engine runtime |
567
+
568
+ All Python dependencies install automatically during `npm install` — core math, dashboard server, learning engine, and performance optimizations. If anything fails, the installer shows exact fix commands. Run `slm doctor` after install to verify everything works. BM25 keyword search works even without embeddings — you're never fully blocked.
569
+
570
+ | Component | Size | When |
571
+ |:----------|:-----|:-----|
572
+ | Core libraries (numpy, scipy, networkx) | ~50MB | During install |
573
+ | Dashboard & MCP server (fastapi, uvicorn) | ~20MB | During install |
574
+ | Learning engine (lightgbm) | ~10MB | During install |
575
+ | Search engine (sentence-transformers, torch) | ~200MB | During install |
576
+ | Embedding model (nomic-embed-text-v1.5, 768d) | ~500MB | First use or `slm warmup` |
577
+ | **Mode B** requires [Ollama](https://ollama.com) + a model (`ollama pull llama3.2`) | ~2GB | Manual |
578
+
579
+ ---
580
+
581
+ ## Contributing
582
+
583
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. [Wiki](https://github.com/qualixar/superlocalmemory/wiki) for detailed documentation.
584
+
585
+ ## License
586
+
587
+ GNU Affero General Public License v3.0 (AGPL-3.0). See [LICENSE](LICENSE).
588
+
589
+ For commercial licensing (closed-source, proprietary, or hosted use), see [COMMERCIAL-LICENSE.md](COMMERCIAL-LICENSE.md) or contact varun.pratap.bhardwaj@gmail.com.
590
+
591
+ Copyright (c) 2026 Varun Pratap Bhardwaj / Qualixar.
592
+
593
+ ## Attribution
594
+
595
+ Part of [Qualixar](https://qualixar.com) · Author: [Varun Pratap Bhardwaj](https://varunpratap.com)
596
+
597
+ ---
598
+
599
+ <p align="center">
600
+ <sub>Built with mathematical rigor. Not in the race — here to help everyone build better AI memory systems.</sub>
601
+ </p>