superlocalmemory 3.6.10 → 3.6.12
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 +65 -0
- package/README.md +62 -6
- package/package.json +1 -1
- package/pyproject.toml +1 -1
- package/skills/slm-optimize/README.md +55 -0
- package/skills/slm-optimize/SKILL.md +139 -0
- package/src/superlocalmemory/cli/commands.py +1 -0
- package/src/superlocalmemory/cli/daemon.py +0 -407
- package/src/superlocalmemory/cli/main.py +3 -1
- package/src/superlocalmemory/core/context_cache.py +4 -1
- package/src/superlocalmemory/core/fact_consolidator.py +4 -1
- package/src/superlocalmemory/core/remote_mode.py +197 -0
- package/src/superlocalmemory/core/summarizer.py +4 -1
- package/src/superlocalmemory/llm/backbone.py +7 -1
- package/src/superlocalmemory/mcp/agent_context.py +7 -3
- package/src/superlocalmemory/mcp/server.py +4 -0
- package/src/superlocalmemory/mcp/tools_core.py +13 -1
- package/src/superlocalmemory/mcp/tools_mesh.py +14 -6
- package/src/superlocalmemory/mcp/tools_optimize.py +304 -0
- package/src/superlocalmemory/mesh/broker.py +15 -4
- package/src/superlocalmemory/optimize/compress/router.py +9 -4
- package/src/superlocalmemory/optimize/storage/db.py +40 -2
- package/src/superlocalmemory/server/api.py +11 -3
- package/src/superlocalmemory/server/routes/mesh.py +13 -0
- package/src/superlocalmemory/server/routes/token.py +14 -2
- package/src/superlocalmemory/server/routes/v3_api.py +83 -17
- package/src/superlocalmemory/server/ui.py +15 -4
- package/src/superlocalmemory/server/unified_daemon.py +96 -160
- package/src/superlocalmemory/storage/database.py +10 -1
- package/src/superlocalmemory/ui/js/auto-settings.js +24 -0
- package/src/superlocalmemory.egg-info/PKG-INFO +63 -7
- package/src/superlocalmemory.egg-info/SOURCES.txt +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: superlocalmemory
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.12
|
|
4
4
|
Summary: Information-geometric agent memory with mathematical guarantees
|
|
5
5
|
Author-email: Varun Pratap Bhardwaj <admin@superlocalmemory.com>
|
|
6
6
|
License: AGPL-3.0-or-later
|
|
@@ -95,18 +95,18 @@ Dynamic: license-file
|
|
|
95
95
|
<img src="https://superlocalmemory.com/assets/logo-mark.png" alt="SuperLocalMemory" width="200"/>
|
|
96
96
|
</p>
|
|
97
97
|
|
|
98
|
-
<h1 align="center">SuperLocalMemory V3.6</h1>
|
|
99
|
-
<p align="center"><strong>
|
|
100
|
-
<p align="center"><code>v3.6.
|
|
98
|
+
<h1 align="center">SuperLocalMemory V3.6.11</h1>
|
|
99
|
+
<p align="center"><strong>Cache. Compress. Remember. Three surfaces — proxy, MCP tools, or skill. Every setup covered.</strong><br/><em>The only local-first layer that pairs persistent memory with compression + caching across every Claude plan. Full 1M window preserved in MCP and skill mode.</em></p>
|
|
100
|
+
<p align="center"><code>v3.6.11 "Optimize Everywhere"</code> — <strong>Compress + cache on any plan, three ways in.</strong><br/>Proxy (full-turn cache): <code>slm wrap claude</code> · MCP (proxy-free): add <code>slm_compress</code> to your MCP config · Skill (zero-config): <code>~/.claude/skills/slm-optimize/</code></p>
|
|
101
101
|
<p align="center"><strong>Backed by 3 published research papers</strong> (arXiv preprints + Zenodo-archived) · <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>
|
|
102
102
|
|
|
103
103
|
<p align="center">
|
|
104
|
-
<code>
|
|
104
|
+
<code>Proxy · MCP tools · Skill — three surfaces</code> · <code>+10.6pp vs Mem0 zero-LLM</code> · <code>85% Open-Domain (best zero-LLM score)</code> · <code>EU AI Act Ready</code>
|
|
105
105
|
</p>
|
|
106
106
|
|
|
107
107
|
<p align="center">
|
|
108
108
|
<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>
|
|
109
|
-
<a href="
|
|
109
|
+
<a href="#three-surfaces-proxy--mcp-tools--skill"><img src="https://img.shields.io/badge/Proxy_|_MCP_|_Skill-22c55e?style=for-the-badge" alt="Three Surfaces: Proxy, MCP Tools, Skill"/></a>
|
|
110
110
|
<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>
|
|
111
111
|
<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>
|
|
112
112
|
<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>
|
|
@@ -126,7 +126,11 @@ Dynamic: license-file
|
|
|
126
126
|
<details>
|
|
127
127
|
<summary><strong>What's New in V3.6 — Optimize: SKIP, SHRINK, DISCOUNT, REMEMBER</strong> (click to expand)</summary>
|
|
128
128
|
|
|
129
|
-
> V3.6 is the only local-first layer that SKIPS repeat LLM calls (cache: 100%
|
|
129
|
+
> V3.6 is the only local-first layer that SKIPS repeat LLM calls (cache: 100% on a hit), SHRINKS tool outputs and injected context (compress: lossless-by-default, opt-in LLMLingua-2), and DISCOUNTS prefix costs (align: native KV-cache) — and remembers everything — in one install.
|
|
130
|
+
>
|
|
131
|
+
> **v3.6.12 "Distributed-ready":** Run SLM on a server and reach it across your LAN. `SLM_REMOTE=1` (default off) lets the dashboard load from a remote browser, lets MCP gateways/hubs forward tool calls, and makes custom local LLM endpoints (llama.cpp / LM Studio / Azure) configurable right from the dashboard — plus a batch of stability and security fixes. See [`docs/distributed-deployment.md`](docs/distributed-deployment.md).
|
|
132
|
+
>
|
|
133
|
+
> **v3.6.11 "Optimize Everywhere":** Three surfaces. **Proxy** (Surface A) — full-turn cache + compress on transport; needs `ANTHROPIC_BASE_URL`, shrinks the context window. **MCP tools** (Surface B) — `slm_compress`, `slm_retrieve`, `slm_cache_set`, `slm_cache_get`, `slm_optimize_stats`; no proxy, no window shrink, works on any Claude subscription. **Skill** (Surface C) — `slm-optimize` installs in `~/.claude/skills/`; zero-config auto-compress for large tool outputs and CLAUDE.md. No proxy, full 1M window. [See Three Surfaces →](#three-surfaces-proxy--mcp-tools--skill)
|
|
130
134
|
>
|
|
131
135
|
> **v3.6.10:** cache and compression are now **independent runtime switches** (cache-only, compress-only, both, or neither — toggle live from the dashboard, no restart). Compression was rebuilt to be **lossless by default** (the old string/array/code truncation is gone); aggressive mode adds LLMLingua-2 for **prose only** — never code, numbers, structured data, or the current turn.
|
|
132
136
|
|
|
@@ -213,6 +217,57 @@ Full docs:
|
|
|
213
217
|
|
|
214
218
|
---
|
|
215
219
|
|
|
220
|
+
## Three Surfaces: Proxy · MCP Tools · Skill
|
|
221
|
+
|
|
222
|
+
v3.6.11 delivers one engine across **three ways in** — choose the surface that fits your setup:
|
|
223
|
+
|
|
224
|
+
| Surface | How you use it | Requires proxy? | Window effect | Cache scope |
|
|
225
|
+
|---------|---------------|:---------------:|:-------------:|-------------|
|
|
226
|
+
| **A — Proxy** | `slm wrap claude` or `ANTHROPIC_BASE_URL=http://127.0.0.1:8765` | **Yes** | Shrinks (proxy intercepts full context) | Full-turn cache — every Claude call |
|
|
227
|
+
| **B — MCP tools** | Add 5 tools to MCP config; call `slm_compress`, `slm_cache_set/get` | **No** | **Preserved** (full 1M) | Results you explicitly route through SLM |
|
|
228
|
+
| **C — Skill** | Copy `skills/slm-optimize/SKILL.md` → `~/.claude/skills/` | **No** | **Preserved** (full 1M) | Auto-applied by the agent per skill rules |
|
|
229
|
+
|
|
230
|
+
**How to choose:**
|
|
231
|
+
- On a **metered API** (pay-per-token) and want to cache every call → **Proxy (A)**
|
|
232
|
+
- On a **Pro/Max/Team subscription** or any plan where you can't or won't run a proxy → **MCP tools (B)** or **Skill (C)**
|
|
233
|
+
- Want zero configuration → **Skill (C)**: install once, auto-compresses CLAUDE.md and large outputs
|
|
234
|
+
- Want agent-controlled caching of repeated file reads and tool outputs → **MCP tools (B)**
|
|
235
|
+
|
|
236
|
+
**The hard constraint:** The primary Claude conversation turn cannot be cached without a proxy — the MCP/skill path caches results you explicitly route through SLM (tool outputs, file reads, sub-model calls).
|
|
237
|
+
|
|
238
|
+
### MCP Tools Setup (Surface B)
|
|
239
|
+
|
|
240
|
+
Add to your `claude_desktop_config.json` or IDE MCP config alongside your existing SLM entry:
|
|
241
|
+
|
|
242
|
+
```json
|
|
243
|
+
{
|
|
244
|
+
"mcpServers": {
|
|
245
|
+
"superlocalmemory": {
|
|
246
|
+
"command": "slm",
|
|
247
|
+
"args": ["mcp"]
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
The 5 optimize tools (`slm_compress`, `slm_retrieve`, `slm_cache_set`, `slm_cache_get`, `slm_optimize_stats`) are included automatically from v3.6.11+. Verify with `slm_optimize_stats()`.
|
|
254
|
+
|
|
255
|
+
### Skill Setup (Surface C)
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
mkdir -p ~/.claude/skills/slm-optimize
|
|
259
|
+
cp $(pip show superlocalmemory | grep Location | awk '{print $2}')/superlocalmemory/skills/slm-optimize/SKILL.md \
|
|
260
|
+
~/.claude/skills/slm-optimize/SKILL.md
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
Then reference in your `CLAUDE.md`:
|
|
264
|
+
```markdown
|
|
265
|
+
## Context Management
|
|
266
|
+
Use the `slm-optimize` skill to compress large outputs and cache repeated reads.
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
216
271
|
<details>
|
|
217
272
|
<summary><strong>What's New in V3.3 — The Living Brain Evolves</strong> (click to expand)</summary>
|
|
218
273
|
|
|
@@ -389,6 +444,7 @@ No manual commands. No data loss. Zero downtime.
|
|
|
389
444
|
|
|
390
445
|
| Version | Codename | Key Features |
|
|
391
446
|
|---|---|---|
|
|
447
|
+
| **v3.6.11** | Optimize Everywhere | **Three surfaces** — Proxy (A: full-turn cache), MCP tools (B: `slm_compress`/`slm_retrieve`/`slm_cache_set`/`slm_cache_get`/`slm_optimize_stats` — proxy-free, 1M window), Skill (C: `slm-optimize` zero-config). `CacheDB.get_value()` (pure KV lookup). 23 new tests. Links: [Three Surfaces →](#three-surfaces-proxy--mcp-tools--skill) · [docs/optimize-overview.md](docs/optimize-overview.md) |
|
|
392
448
|
| **v3.6.0** | Optimize | **Cache** (skip repeat calls, 100% on hit) · **Compress** (shrink prompts 60-95%) · **Align** (KV-cache stabilization) · `slm optimize\|cache\|compress\|proxy\|wrap` CLI · Live savings dashboard (USD/INR/tokens) · Hot-reload config · Safe defaults · Links: [docs/optimize-overview.md](docs/optimize-overview.md) · [V3.6 Wiki](https://github.com/qualixar/superlocalmemory/wiki/V3.6-Overview) |
|
|
393
449
|
| **v3.5.0** | Scale-Ready + Context Injection v2 | CozoDB/LanceDB migration, 6-channel recall <1s, Core Memory Block, BM25→FTS5, context injection v2, score normalization |
|
|
394
450
|
| **v3.4.5** | Scale-Ready (foundation) | Tiered storage (active/warm/cold), graph pruning, BackendOrchestrator scaffolding, CozoDB + LanceDB init + migration code (read path wired in v3.5.0) |
|
|
@@ -114,6 +114,7 @@ src/superlocalmemory/core/recall_pipeline.py
|
|
|
114
114
|
src/superlocalmemory/core/recall_queue.py
|
|
115
115
|
src/superlocalmemory/core/recall_worker.py
|
|
116
116
|
src/superlocalmemory/core/registry.py
|
|
117
|
+
src/superlocalmemory/core/remote_mode.py
|
|
117
118
|
src/superlocalmemory/core/reranker_worker.py
|
|
118
119
|
src/superlocalmemory/core/safe_fs.py
|
|
119
120
|
src/superlocalmemory/core/security_primitives.py
|
|
@@ -283,6 +284,7 @@ src/superlocalmemory/mcp/tools_core.py
|
|
|
283
284
|
src/superlocalmemory/mcp/tools_evolution.py
|
|
284
285
|
src/superlocalmemory/mcp/tools_learning.py
|
|
285
286
|
src/superlocalmemory/mcp/tools_mesh.py
|
|
287
|
+
src/superlocalmemory/mcp/tools_optimize.py
|
|
286
288
|
src/superlocalmemory/mcp/tools_v28.py
|
|
287
289
|
src/superlocalmemory/mcp/tools_v3.py
|
|
288
290
|
src/superlocalmemory/mcp/tools_v33.py
|