superlocalmemory 3.6.22 → 3.7.0
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 +52 -0
- package/README.md +275 -72
- package/bin/slm-npm +43 -89
- package/docs/pi-dev-integration.md +43 -0
- package/ide/configs/antigravity-mcp.json +2 -2
- package/ide/configs/chatgpt-desktop-mcp.json +1 -1
- package/ide/configs/claude-desktop-mcp.json +2 -2
- package/ide/configs/windsurf-mcp.json +2 -2
- package/ide/hooks/context-hook.js +6 -2
- package/ide/hooks/post-recall-hook.js +7 -3
- package/ide/hooks/tool-event-hook.sh +2 -1
- package/package.json +19 -10
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/_GENERATED.md +1 -1
- package/plugin/agents/slm-memory-advisor.md +1 -1
- package/plugin/requirements.txt +1 -1
- package/plugin/skills/slm-session/SKILL.md +1 -1
- package/plugin-src/rules/AGENTS.md +1 -1
- package/pyproject.toml +40 -8
- package/scripts/postinstall-interactive.js +17 -94
- package/scripts/postinstall.js +185 -258
- package/scripts/preuninstall.js +9 -50
- package/src/superlocalmemory/__init__.py +2 -2
- package/src/superlocalmemory/attribution/mathematical_dna.py +1 -1
- package/src/superlocalmemory/attribution/signer.py +34 -19
- package/src/superlocalmemory/attribution/watermark.py +1 -1
- package/src/superlocalmemory/cli/_lazy_init.py +3 -5
- package/src/superlocalmemory/cli/commands.py +490 -195
- package/src/superlocalmemory/cli/context_commands.py +5 -4
- package/src/superlocalmemory/cli/daemon.py +282 -187
- package/src/superlocalmemory/cli/db_migrate.py +3 -1
- package/src/superlocalmemory/cli/diagnostics_cmd.py +28 -0
- package/src/superlocalmemory/cli/evidence_cmd.py +103 -0
- package/src/superlocalmemory/cli/ingest_cmd.py +7 -3
- package/src/superlocalmemory/cli/main.py +128 -31
- package/src/superlocalmemory/cli/pending_store.py +54 -38
- package/src/superlocalmemory/cli/scale_engine_cmd.py +37 -0
- package/src/superlocalmemory/cli/service_installer.py +57 -52
- package/src/superlocalmemory/cli/setup_wizard.py +142 -88
- package/src/superlocalmemory/cli/version_banner.py +2 -1
- package/src/superlocalmemory/code_graph/config.py +3 -1
- package/src/superlocalmemory/core/backend_orchestrator.py +81 -21
- package/src/superlocalmemory/core/config.py +65 -20
- package/src/superlocalmemory/core/consolidation_engine.py +9 -7
- package/src/superlocalmemory/core/context_cache.py +56 -8
- package/src/superlocalmemory/core/derivation_lineage.py +246 -0
- package/src/superlocalmemory/core/embedding_worker.py +32 -20
- package/src/superlocalmemory/core/embeddings.py +54 -18
- package/src/superlocalmemory/core/engine.py +150 -104
- package/src/superlocalmemory/core/engine_ingestion.py +513 -0
- package/src/superlocalmemory/core/engine_wiring.py +2 -0
- package/src/superlocalmemory/core/evidence_bundle.py +526 -0
- package/src/superlocalmemory/core/fact_consolidator.py +5 -11
- package/src/superlocalmemory/core/graph_analyzer.py +2 -2
- package/src/superlocalmemory/core/health_monitor.py +4 -2
- package/src/superlocalmemory/core/ingestion_command.py +636 -0
- package/src/superlocalmemory/core/injection.py +69 -18
- package/src/superlocalmemory/core/lifecycle_state.py +153 -0
- package/src/superlocalmemory/core/maintenance.py +23 -22
- package/src/superlocalmemory/core/maintenance_scheduler.py +51 -35
- package/src/superlocalmemory/core/mutations.py +143 -0
- package/src/superlocalmemory/core/platform_utils.py +7 -4
- package/src/superlocalmemory/core/ram_lock.py +16 -5
- package/src/superlocalmemory/core/rate_limit.py +1 -1
- package/src/superlocalmemory/core/recall_pipeline.py +60 -101
- package/src/superlocalmemory/core/recall_worker.py +76 -59
- package/src/superlocalmemory/core/registry.py +1 -1
- package/src/superlocalmemory/core/scale_engine.py +293 -0
- package/src/superlocalmemory/core/score_contract.py +62 -0
- package/src/superlocalmemory/core/security_primitives.py +3 -1
- package/src/superlocalmemory/core/slm_disabled.py +3 -5
- package/src/superlocalmemory/core/store_pipeline.py +172 -40
- package/src/superlocalmemory/core/tier_manager.py +32 -20
- package/src/superlocalmemory/core/worker_pool.py +13 -4
- package/src/superlocalmemory/dynamics/activation_guided_quantization.py +1 -1
- package/src/superlocalmemory/dynamics/eap_scheduler.py +10 -3
- package/src/superlocalmemory/dynamics/ebbinghaus_langevin_coupling.py +1 -1
- package/src/superlocalmemory/dynamics/fisher_langevin_coupling.py +1 -1
- package/src/superlocalmemory/encoding/auto_linker.py +1 -1
- package/src/superlocalmemory/encoding/cognitive_consolidator.py +7 -16
- package/src/superlocalmemory/encoding/consolidator.py +22 -5
- package/src/superlocalmemory/encoding/fact_extractor.py +1 -1
- package/src/superlocalmemory/encoding/foresight.py +2 -0
- package/src/superlocalmemory/encoding/graph_builder.py +1 -1
- package/src/superlocalmemory/encoding/temporal_parser.py +2 -0
- package/src/superlocalmemory/evaluation/__init__.py +13 -0
- package/src/superlocalmemory/evaluation/calibration.py +308 -0
- package/src/superlocalmemory/evolution/skill_evolver.py +2 -1
- package/src/superlocalmemory/graph/cozo_backend.py +256 -23
- package/src/superlocalmemory/hooks/_outcome_common.py +21 -11
- package/src/superlocalmemory/hooks/antigravity_adapter.py +10 -31
- package/src/superlocalmemory/hooks/auto_invoker.py +25 -27
- package/src/superlocalmemory/hooks/auto_recall.py +31 -6
- package/src/superlocalmemory/hooks/auto_recall_hook.py +13 -33
- package/src/superlocalmemory/hooks/before_web_hook.py +9 -7
- package/src/superlocalmemory/hooks/claude_code_hooks.py +126 -39
- package/src/superlocalmemory/hooks/codex_assets.py +59 -0
- package/src/superlocalmemory/hooks/codex_hooks.py +186 -0
- package/src/superlocalmemory/hooks/context_payload.py +1 -1
- package/src/superlocalmemory/hooks/copilot_adapter.py +9 -24
- package/src/superlocalmemory/hooks/cursor_adapter.py +10 -32
- package/src/superlocalmemory/hooks/hook_daemon.py +4 -2
- package/src/superlocalmemory/hooks/hook_handlers.py +241 -55
- package/src/superlocalmemory/hooks/memory_protocol.py +5 -3
- package/src/superlocalmemory/hooks/post_tool_async_hook.py +4 -2
- package/src/superlocalmemory/hooks/session_registry.py +15 -8
- package/src/superlocalmemory/hooks/stop_outcome_hook.py +10 -6
- package/src/superlocalmemory/hooks/topic_shift_hook.py +42 -12
- package/src/superlocalmemory/hooks/user_prompt_hook.py +9 -14
- package/src/superlocalmemory/hooks/user_prompt_rehash_hook.py +19 -11
- package/src/superlocalmemory/infra/auth_middleware.py +38 -5
- package/src/superlocalmemory/infra/backup.py +7 -5
- package/src/superlocalmemory/infra/cloud_backup.py +18 -8
- package/src/superlocalmemory/infra/daemon_identity.py +248 -0
- package/src/superlocalmemory/infra/data_root.py +199 -0
- package/src/superlocalmemory/infra/event_bus.py +3 -1
- package/src/superlocalmemory/infra/local_diagnostics.py +327 -0
- package/src/superlocalmemory/infra/process_reaper.py +23 -0
- package/src/superlocalmemory/ingestion/adapter_manager.py +27 -9
- package/src/superlocalmemory/ingestion/base_adapter.py +25 -31
- package/src/superlocalmemory/ingestion/calendar_adapter.py +13 -4
- package/src/superlocalmemory/ingestion/credentials.py +14 -7
- package/src/superlocalmemory/ingestion/gmail_adapter.py +13 -4
- package/src/superlocalmemory/ingestion/transcript_adapter.py +7 -2
- package/src/superlocalmemory/learning/consolidation_quantization_worker.py +1 -1
- package/src/superlocalmemory/learning/ensemble.py +11 -0
- package/src/superlocalmemory/learning/entity_compiler.py +1 -1
- package/src/superlocalmemory/learning/feedback.py +1 -1
- package/src/superlocalmemory/learning/forgetting_scheduler.py +12 -7
- package/src/superlocalmemory/learning/quantization_scheduler.py +1 -1
- package/src/superlocalmemory/learning/ranker.py +4 -1
- package/src/superlocalmemory/learning/source_quality.py +1 -1
- package/src/superlocalmemory/learning/trigram_index.py +3 -2
- package/src/superlocalmemory/llm/backbone.py +13 -8
- package/src/superlocalmemory/math/ebbinghaus.py +1 -1
- package/src/superlocalmemory/math/fisher.py +1 -1
- package/src/superlocalmemory/math/fisher_quantized.py +1 -1
- package/src/superlocalmemory/math/hopfield.py +1 -1
- package/src/superlocalmemory/math/langevin.py +1 -1
- package/src/superlocalmemory/math/polar_quant.py +3 -4
- package/src/superlocalmemory/math/qjl.py +1 -1
- package/src/superlocalmemory/math/sheaf.py +1 -1
- package/src/superlocalmemory/math/turbo_quant.py +3 -2
- package/src/superlocalmemory/mcp/_daemon_proxy.py +12 -11
- package/src/superlocalmemory/mcp/_pool_adapter.py +27 -0
- package/src/superlocalmemory/mcp/http_transport.py +53 -0
- package/src/superlocalmemory/mcp/server.py +39 -13
- package/src/superlocalmemory/mcp/shared.py +69 -3
- package/src/superlocalmemory/mcp/tools_active.py +141 -31
- package/src/superlocalmemory/mcp/tools_core.py +128 -29
- package/src/superlocalmemory/mcp/tools_evolution.py +5 -7
- package/src/superlocalmemory/mcp/tools_learning.py +42 -2
- package/src/superlocalmemory/mcp/tools_mesh.py +7 -23
- package/src/superlocalmemory/mcp/tools_optimize.py +8 -1
- package/src/superlocalmemory/mcp/tools_v28.py +23 -2
- package/src/superlocalmemory/mcp/tools_v3.py +26 -1
- package/src/superlocalmemory/mcp/tools_v33.py +56 -17
- package/src/superlocalmemory/mesh/broker.py +2 -0
- package/src/superlocalmemory/mesh/remote_sync.py +50 -12
- package/src/superlocalmemory/optimize/cache/manager.py +77 -1
- package/src/superlocalmemory/optimize/cache/semantic.py +23 -3
- package/src/superlocalmemory/optimize/compress/ccr.py +4 -0
- package/src/superlocalmemory/optimize/compress/router.py +6 -1
- package/src/superlocalmemory/optimize/config/__init__.py +5 -0
- package/src/superlocalmemory/optimize/config/store.py +6 -4
- package/src/superlocalmemory/optimize/proxy/_helpers.py +15 -5
- package/src/superlocalmemory/optimize/proxy/capture.py +3 -2
- package/src/superlocalmemory/optimize/proxy/server.py +2 -2
- package/src/superlocalmemory/optimize/storage/db.py +14 -13
- package/src/superlocalmemory/retrieval/agentic.py +1 -1
- package/src/superlocalmemory/retrieval/ann_index.py +1 -1
- package/src/superlocalmemory/retrieval/bm25_channel.py +35 -11
- package/src/superlocalmemory/retrieval/bridge_discovery.py +73 -8
- package/src/superlocalmemory/retrieval/engine.py +169 -79
- package/src/superlocalmemory/retrieval/entity_channel.py +289 -67
- package/src/superlocalmemory/retrieval/forgetting_filter.py +1 -1
- package/src/superlocalmemory/retrieval/fusion.py +1 -1
- package/src/superlocalmemory/retrieval/hopfield_channel.py +118 -30
- package/src/superlocalmemory/retrieval/profile_channel.py +1 -1
- package/src/superlocalmemory/retrieval/quantization_aware_search.py +16 -10
- package/src/superlocalmemory/retrieval/reranker.py +56 -20
- package/src/superlocalmemory/retrieval/scope_policy.py +85 -0
- package/src/superlocalmemory/retrieval/semantic_channel.py +122 -14
- package/src/superlocalmemory/retrieval/spreading_activation.py +141 -25
- package/src/superlocalmemory/retrieval/strategy.py +1 -1
- package/src/superlocalmemory/retrieval/temporal_channel.py +30 -15
- package/src/superlocalmemory/retrieval/vector_store.py +1 -1
- package/src/superlocalmemory/server/api.py +10 -7
- package/src/superlocalmemory/server/bandit_loops.py +4 -2
- package/src/superlocalmemory/server/recall_serializer.py +24 -0
- package/src/superlocalmemory/server/route_mutations.py +84 -0
- package/src/superlocalmemory/server/routes/agents.py +8 -6
- package/src/superlocalmemory/server/routes/brain.py +14 -12
- package/src/superlocalmemory/server/routes/chat.py +29 -12
- package/src/superlocalmemory/server/routes/data_io.py +55 -24
- package/src/superlocalmemory/server/routes/helpers.py +29 -4
- package/src/superlocalmemory/server/routes/ingest.py +53 -36
- package/src/superlocalmemory/server/routes/memories.py +104 -43
- package/src/superlocalmemory/server/routes/mesh.py +31 -0
- package/src/superlocalmemory/server/routes/profiles.py +26 -4
- package/src/superlocalmemory/server/routes/tiers.py +43 -11
- package/src/superlocalmemory/server/routes/timeline.py +5 -1
- package/src/superlocalmemory/server/routes/v3_api.py +76 -21
- package/src/superlocalmemory/server/security_middleware.py +1 -1
- package/src/superlocalmemory/server/ui.py +6 -3
- package/src/superlocalmemory/server/unified_daemon.py +680 -293
- package/src/superlocalmemory/server/write_identity.py +147 -0
- package/src/superlocalmemory/storage/access_log.py +4 -3
- package/src/superlocalmemory/storage/database.py +118 -25
- package/src/superlocalmemory/storage/migration_runner.py +84 -1
- package/src/superlocalmemory/storage/migration_v33.py +1 -1
- package/src/superlocalmemory/storage/migrations/M002_model_state_history.py +6 -60
- package/src/superlocalmemory/storage/migrations/M018_ingestion_operations.py +120 -0
- package/src/superlocalmemory/storage/migrations/M019_derivation_lineage.py +54 -0
- package/src/superlocalmemory/storage/migrations/M020_model_state_integrity.py +52 -0
- package/src/superlocalmemory/storage/migrations/__init__.py +5 -0
- package/src/superlocalmemory/storage/models.py +16 -0
- package/src/superlocalmemory/storage/quantized_store.py +20 -3
- package/src/superlocalmemory/storage/v2_migrator.py +5 -3
- package/src/superlocalmemory/ui/favicon.svg +5 -0
- package/src/superlocalmemory/ui/index.html +1 -0
- package/src/superlocalmemory/ui/js/compliance.js +1 -1
- package/src/superlocalmemory/ui/js/core.js +49 -8
- package/src/superlocalmemory/ui/js/dashboard.js +23 -2
- package/src/superlocalmemory/ui/js/feedback.js +1 -1
- package/src/superlocalmemory/ui/js/graph-filters.js +1 -1
- package/src/superlocalmemory/ui/js/graph-ui.js +1 -1
- package/src/superlocalmemory/ui/js/lifecycle.js +1 -1
- package/src/superlocalmemory/ui/js/ng-mesh.js +15 -49
- package/src/superlocalmemory/ui/js/settings.js +4 -2
- package/src/superlocalmemory/vector/lancedb_backend.py +57 -9
- package/bin/slm +0 -59
- package/bin/slm.bat +0 -77
- package/bin/slm.cmd +0 -5
- package/ide/integrations/langchain/README.md +0 -106
- package/ide/integrations/langchain/langchain_superlocalmemory/__init__.py +0 -9
- package/ide/integrations/langchain/langchain_superlocalmemory/chat_message_history.py +0 -201
- package/ide/integrations/langchain/pyproject.toml +0 -38
- package/ide/integrations/langchain/tests/__init__.py +0 -3
- package/ide/integrations/langchain/tests/test_chat_message_history.py +0 -215
- package/ide/integrations/langchain/tests/test_security.py +0 -117
- package/ide/integrations/llamaindex/README.md +0 -81
- package/ide/integrations/llamaindex/llama_index/storage/chat_store/superlocalmemory/__init__.py +0 -9
- package/ide/integrations/llamaindex/llama_index/storage/chat_store/superlocalmemory/base.py +0 -316
- package/ide/integrations/llamaindex/pyproject.toml +0 -43
- package/ide/integrations/llamaindex/tests/__init__.py +0 -3
- package/ide/integrations/llamaindex/tests/test_chat_store.py +0 -294
- package/ide/integrations/llamaindex/tests/test_security.py +0 -241
- package/plugin-src/.mcp.json +0 -12
- package/plugin-src/agents/slm-memory-advisor.md +0 -44
- package/plugin-src/agents/slm-optimize-advisor.md +0 -38
- package/plugin-src/hooks/.gitkeep +0 -0
- package/plugin-src/hooks/hooks.json +0 -23
- package/plugin-src/manifest.json +0 -25
- package/plugin-src/requirements.txt +0 -1
- package/plugin-src/rules/CLAUDE.md.fragment +0 -44
- package/plugin-src/scripts/ensure-venv.bat +0 -122
- package/plugin-src/scripts/ensure-venv.sh +0 -105
- package/plugin-src/scripts/slm-launch +0 -15
- package/plugin-src/scripts/slm-launch.bat +0 -17
- package/plugin-src/settings.json +0 -16
- package/plugin-src/skills/slm-cache/SKILL.md +0 -140
- package/plugin-src/skills/slm-compress/SKILL.md +0 -143
- package/plugin-src/skills/slm-graph/SKILL.md +0 -300
- package/plugin-src/skills/slm-recall/SKILL.md +0 -204
- package/plugin-src/skills/slm-remember/SKILL.md +0 -194
- package/plugin-src/skills/slm-session/SKILL.md +0 -207
- package/plugin-src/skills/slm-status/SKILL.md +0 -149
- package/scripts/__tests__/build-plugin.test.mjs +0 -613
- package/scripts/_savings_math.py +0 -270
- package/scripts/build-dmg.sh +0 -417
- package/scripts/build-plugin.js +0 -742
- package/scripts/build-slm-hook.ps1 +0 -40
- package/scripts/build-slm-hook.sh +0 -45
- package/scripts/build_entry.py +0 -452
- package/scripts/ci/stage5b_gate.sh +0 -50
- package/scripts/dogfood_savings.py +0 -490
- package/scripts/generate-thumbnails.py +0 -218
- package/scripts/install-skills.ps1 +0 -4
- package/scripts/install-skills.sh +0 -5
- package/scripts/install.ps1 +0 -701
- package/scripts/install.sh +0 -1015
- package/scripts/postinstall_binary.js +0 -287
- package/scripts/prepack.js +0 -33
- package/scripts/release_manifest.py +0 -273
- package/scripts/slm-hook.spec +0 -56
- package/scripts/start-dashboard.ps1 +0 -52
- package/scripts/start-dashboard.sh +0 -41
- package/scripts/sync-wiki.ps1 +0 -127
- package/scripts/sync-wiki.sh +0 -82
- package/scripts/test-dmg.sh +0 -161
- package/scripts/test-npm-package.ps1 +0 -252
- package/scripts/test-npm-package.sh +0 -207
- package/scripts/verify-install.ps1 +0 -294
- package/scripts/verify-install.sh +0 -266
- package/scripts/verify-v27.ps1 +0 -301
- package/scripts/verify-v27.sh +0 -233
- package/src/superlocalmemory.egg-info/PKG-INFO +0 -513
- package/src/superlocalmemory.egg-info/SOURCES.txt +0 -529
- package/src/superlocalmemory.egg-info/dependency_links.txt +0 -1
- package/src/superlocalmemory.egg-info/entry_points.txt +0 -2
- package/src/superlocalmemory.egg-info/requires.txt +0 -71
- package/src/superlocalmemory.egg-info/top_level.txt +0 -1
|
@@ -1,513 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: superlocalmemory
|
|
3
|
-
Version: 3.6.22
|
|
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.28.1
|
|
31
|
-
Requires-Dist: numpy==2.4.4
|
|
32
|
-
Requires-Dist: scipy==1.17.1
|
|
33
|
-
Requires-Dist: networkx==3.6.1
|
|
34
|
-
Requires-Dist: mcp==1.27.1
|
|
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.136.1
|
|
40
|
-
Requires-Dist: uvicorn==0.46.0
|
|
41
|
-
Requires-Dist: websockets==16.0
|
|
42
|
-
Requires-Dist: zeroconf>=0.140
|
|
43
|
-
Requires-Dist: lightgbm==4.6.0
|
|
44
|
-
Requires-Dist: orjson==3.11.9
|
|
45
|
-
Requires-Dist: tomli-w==1.2.0
|
|
46
|
-
Requires-Dist: tree-sitter==0.25.2
|
|
47
|
-
Requires-Dist: tree-sitter-language-pack==0.13.0
|
|
48
|
-
Requires-Dist: rustworkx==0.17.1
|
|
49
|
-
Requires-Dist: watchdog==5.0.3
|
|
50
|
-
Requires-Dist: psutil==7.2.2
|
|
51
|
-
Requires-Dist: structlog==25.5.0
|
|
52
|
-
Requires-Dist: portalocker==3.2.0
|
|
53
|
-
Requires-Dist: cryptography==45.0.2
|
|
54
|
-
Requires-Dist: sentence-transformers==5.3.0
|
|
55
|
-
Requires-Dist: optimum==2.1.0
|
|
56
|
-
Requires-Dist: onnxruntime==1.24.4
|
|
57
|
-
Requires-Dist: transformers==4.57.6
|
|
58
|
-
Requires-Dist: huggingface_hub==0.36.2
|
|
59
|
-
Requires-Dist: torch==2.11.0
|
|
60
|
-
Requires-Dist: scikit-learn==1.8.0
|
|
61
|
-
Requires-Dist: sqlite-vec==0.1.9
|
|
62
|
-
Requires-Dist: llmlingua==0.2.2
|
|
63
|
-
Provides-Extra: search
|
|
64
|
-
Requires-Dist: sentence-transformers==5.3.0; extra == "search"
|
|
65
|
-
Requires-Dist: optimum==2.1.0; extra == "search"
|
|
66
|
-
Requires-Dist: einops==0.8.2; extra == "search"
|
|
67
|
-
Requires-Dist: torch==2.11.0; extra == "search"
|
|
68
|
-
Requires-Dist: scikit-learn==1.8.0; extra == "search"
|
|
69
|
-
Requires-Dist: geoopt>=0.5.0; extra == "search"
|
|
70
|
-
Requires-Dist: onnxruntime==1.24.4; extra == "search"
|
|
71
|
-
Provides-Extra: ui
|
|
72
|
-
Requires-Dist: fastapi[all]>=0.135.1; extra == "ui"
|
|
73
|
-
Requires-Dist: uvicorn>=0.42.0; extra == "ui"
|
|
74
|
-
Requires-Dist: python-multipart<1.0.0,>=0.0.6; extra == "ui"
|
|
75
|
-
Provides-Extra: injection
|
|
76
|
-
Requires-Dist: tiktoken>=0.8.0; extra == "injection"
|
|
77
|
-
Provides-Extra: learning
|
|
78
|
-
Requires-Dist: lightgbm>=4.0.0; extra == "learning"
|
|
79
|
-
Provides-Extra: performance
|
|
80
|
-
Requires-Dist: orjson>=3.9.0; extra == "performance"
|
|
81
|
-
Provides-Extra: ingestion
|
|
82
|
-
Requires-Dist: keyring>=25.0.0; extra == "ingestion"
|
|
83
|
-
Requires-Dist: google-auth-oauthlib>=1.2.0; extra == "ingestion"
|
|
84
|
-
Requires-Dist: google-api-python-client>=2.100.0; extra == "ingestion"
|
|
85
|
-
Requires-Dist: icalendar>=6.0.0; extra == "ingestion"
|
|
86
|
-
Provides-Extra: full
|
|
87
|
-
Requires-Dist: superlocalmemory[ingestion,injection,learning,performance,search,ui]; extra == "full"
|
|
88
|
-
Provides-Extra: dev
|
|
89
|
-
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
90
|
-
Requires-Dist: pytest-cov>=4.1; extra == "dev"
|
|
91
|
-
Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
|
|
92
|
-
Requires-Dist: sqlite-vec>=0.1.6; extra == "dev"
|
|
93
|
-
Dynamic: license-file
|
|
94
|
-
|
|
95
|
-
<p align="center">
|
|
96
|
-
<img src="https://superlocalmemory.com/assets/logo-mark.png" alt="SuperLocalMemory" width="200"/>
|
|
97
|
-
</p>
|
|
98
|
-
|
|
99
|
-
<h1 align="center">SuperLocalMemory V3.6.21</h1>
|
|
100
|
-
<p align="center"><strong>Cache. Compress. Remember. Three surfaces — proxy, MCP tools, or skill. Every setup covered.</strong><br/>
|
|
101
|
-
<em>To the best of our knowledge, the only zero-cloud agent memory that beats Mem0's zero-LLM score on LoCoMo. Mode A: 74.8% vs Mem0 64.2% — no GPU, no API key, on CPU.</em></p>
|
|
102
|
-
<p align="center"><code>v3.6.21</code> — <strong>Plugin-native. Profile-aware. Distributed-ready.</strong><br/>
|
|
103
|
-
Proxy: <code>slm wrap claude</code> · MCP: add <code>slm_compress</code> to your config · Skill: zero-config</p>
|
|
104
|
-
<p align="center"><strong>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>
|
|
105
|
-
|
|
106
|
-
<p align="center">
|
|
107
|
-
<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>
|
|
108
|
-
<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>
|
|
109
|
-
<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>
|
|
110
|
-
<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>
|
|
111
|
-
<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>
|
|
112
|
-
<a href="#eu-ai-act-compliance"><img src="https://img.shields.io/badge/EU_AI_Act-Design_Compliant-brightgreen?style=for-the-badge" alt="EU AI Act Design Compliant"/></a>
|
|
113
|
-
<a href="https://superlocalmemory.com"><img src="https://img.shields.io/badge/Web-superlocalmemory.com-ff6b35?style=for-the-badge" alt="Website"/></a>
|
|
114
|
-
<a href="#dual-interface-mcp--cli"><img src="https://img.shields.io/badge/MCP-Native-blue?style=for-the-badge" alt="MCP Native"/></a>
|
|
115
|
-
<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>
|
|
116
|
-
<a href="#multilingual-embedding-support"><img src="https://img.shields.io/badge/Multilingual-30%2B_Languages-ff69b4?style=for-the-badge" alt="Multilingual 30+ Languages"/></a>
|
|
117
|
-
</p>
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## Why SuperLocalMemory?
|
|
122
|
-
|
|
123
|
-
Every hosted AI memory platform — Mem0 Cloud, Zep Cloud, Letta Cloud, EverMemOS Cloud — sends your data to cloud LLMs by default. Self-hosted variants exist but require Docker, a separate graph DB, or Ollama config, and most default to OpenAI until you flip env vars. After **August 2, 2026**, any of those cloud paths becomes a compliance question under the EU AI Act.
|
|
124
|
-
|
|
125
|
-
SuperLocalMemory V3 uses **mathematics instead of cloud compute** — differential geometry, algebraic topology, and stochastic analysis replace the work other systems need LLMs to do. Local-first out of the box. No Docker. No graph DB. No API keys. CPU-only.
|
|
126
|
-
|
|
127
|
-
**Benchmark results** (evaluated on [LoCoMo](https://arxiv.org/abs/2402.09714), the standard long-conversation memory benchmark, published April 2026):
|
|
128
|
-
|
|
129
|
-
| System | Score | Config | Cloud LLM required? | Open Source | Source |
|
|
130
|
-
|:-------|:-----:|:-------|:-------------------:|:-----------:|:-------|
|
|
131
|
-
| EverMemOS | 93.05% | Cloud (proprietary) | Yes | Core only | [evermind.ai](https://evermind.ai/) (Feb 2026) |
|
|
132
|
-
| Hindsight (LoComo10) | 92.0% | Cloud | Yes | No | [benchmarks.hindsight.vectorize.io](https://benchmarks.hindsight.vectorize.io) (Apr 2026) |
|
|
133
|
-
| Mem0 (token-efficient) | 91.6% | Hybrid (Cohere/OpenAI) | Yes | Partial | [mem0.ai blog](https://mem0.ai/blog/mem0-the-token-efficient-memory-algorithm) (Apr 16 2026) |
|
|
134
|
-
| **SLM V3 Mode C** | **87.7%** | Local + optional LLM | Optional (Ollama OK) | **Yes (AGPL-3.0)** | In-house, [arXiv:2603.14588](https://arxiv.org/abs/2603.14588) |
|
|
135
|
-
| Zep v3 Cloud | 85.2% | Cloud | Yes | Community deprecated | [getzep.com](https://www.getzep.com/) |
|
|
136
|
-
| **SLM V3 Mode A** | **74.8%** | **Local, CPU-only, zero-LLM** | **No** | **Yes (AGPL-3.0)** | In-house, [arXiv:2603.14588](https://arxiv.org/abs/2603.14588) |
|
|
137
|
-
| Mem0 (zero-retrieval-LLM) | 64.2% | Local baseline | No | Partial | Mem0 paper, zero-LLM row |
|
|
138
|
-
|
|
139
|
-
> **How to read this table.** Scores from different papers use different LoCoMo splits, judge models, and prompt variants. We do NOT claim these numbers are apples-to-apples across rows. Rows marked "In-house" were run by us; cited rows link to the vendor's public source and date. The only apples-to-apples comparison is **Mode A 74.8% vs Mem0 zero-retrieval-LLM 64.2%** (+10.6pp) — both are zero-LLM configurations. Mem0's 91.6% and EverMemOS's 93.05% use cloud LLMs; Mode C uses a local LLM (Ollama).
|
|
140
|
-
|
|
141
|
-
**What Mode A is:** CPU-only, SQLite-only, zero-LLM retrieval on published LoCoMo questions. To the best of our knowledge it is the only publicly-released local-first memory that clears Mem0's zero-LLM baseline on this benchmark. If another fully-local system hits similar numbers, please open an issue so we can update this table.
|
|
142
|
-
|
|
143
|
-
Mathematical layers contribute **+12.7 percentage points** average across 6 conversations (n=832 questions), with up to **+19.9pp on the most challenging dialogues**.
|
|
144
|
-
|
|
145
|
-
---
|
|
146
|
-
|
|
147
|
-
## Quick Start
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
# npm (recommended)
|
|
151
|
-
npm install -g superlocalmemory
|
|
152
|
-
slm setup # Choose mode (A/B/C)
|
|
153
|
-
slm doctor # Verify everything is working
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
```bash
|
|
157
|
-
# pip
|
|
158
|
-
pip install superlocalmemory
|
|
159
|
-
slm setup
|
|
160
|
-
slm doctor
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
# First use
|
|
165
|
-
slm remember "Alice works at Google as a Staff Engineer"
|
|
166
|
-
slm recall "What does Alice do?"
|
|
167
|
-
slm status
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
```bash
|
|
171
|
-
# Wrap your agent — starts proxy + sets environment + launches agent
|
|
172
|
-
slm wrap claude
|
|
173
|
-
# Your first repeat prompt → CACHE HIT → $0.00
|
|
174
|
-
# See savings: slm optimize savings --since 1
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
**Upgrading:** `pip install -U superlocalmemory && slm restart && slm doctor` — migration is automatic, no data loss.
|
|
178
|
-
|
|
179
|
-
---
|
|
180
|
-
|
|
181
|
-
## Three Pillars
|
|
182
|
-
|
|
183
|
-
### Memory
|
|
184
|
-
|
|
185
|
-
<a id="dual-interface-mcp--cli"></a>
|
|
186
|
-
|
|
187
|
-
Five-channel hybrid retrieval: Semantic (Fisher-Rao geodesic distance) + BM25 + Entity Graph + Temporal + Hopfield (associative/partial-query completion). RRF fusion, cross-encoder reranking, adaptive LightGBM ranking. All data stays local — SQLite + optional LanceDB/CozoDB.
|
|
188
|
-
|
|
189
|
-
Three mathematical contributions replace cloud LLM dependency:
|
|
190
|
-
|
|
191
|
-
1. **Fisher-Rao Retrieval Metric** — similarity scoring from the Fisher information structure of diagonal Gaussian families. To the best of our knowledge, the first public application of information geometry to agent memory retrieval.
|
|
192
|
-
2. **Sheaf Cohomology for Consistency** — algebraic topology detects contradictions via coboundary norms on the knowledge graph.
|
|
193
|
-
3. **Riemannian Langevin Lifecycle** — memory positions evolve on the Poincare ball; neglected memories self-archive, no hardcoded thresholds.
|
|
194
|
-
|
|
195
|
-
Auto-capture hooks (`slm hooks install`) fire only on real signals — topic pivot, web call, file edit — never on a timer. Fail-open, <10ms p99 hot path.
|
|
196
|
-
|
|
197
|
-
**Multi-scope memory (v3.6.15, opt-in):** keep memories `personal` (default), `shared` with named profiles, or `global` across the machine. Off by default — recall only ever returns your own facts until you turn sharing on, per call or in config. See **[docs/shared-memory.md](docs/shared-memory.md)**.
|
|
198
|
-
|
|
199
|
-
<a id="multilingual-embedding-support"></a>
|
|
200
|
-
|
|
201
|
-
**Multilingual:** plug in any OpenAI-compatible embedding endpoint — Ollama, vLLM, LiteLLM, `bge-m3`, `multilingual-e5`, `Qwen3-Embedding`. The math layer is language-agnostic; 30+ languages work at full retrieval quality. No cloud dependency, no code changes.
|
|
202
|
-
|
|
203
|
-
### Cache + Compress
|
|
204
|
-
|
|
205
|
-
<a id="three-surfaces-proxy--mcp-tools--skill"></a>
|
|
206
|
-
|
|
207
|
-
One engine, three ways in — choose the surface that fits your setup:
|
|
208
|
-
|
|
209
|
-
| Surface | How you use it | Requires proxy? | Window effect | Cache scope |
|
|
210
|
-
|---------|---------------|:---------------:|:-------------:|-------------|
|
|
211
|
-
| **A — Proxy** | `slm wrap claude` or `ANTHROPIC_BASE_URL=http://127.0.0.1:8765` | **Yes** | Shrinks | Full-turn cache — every call |
|
|
212
|
-
| **B — MCP tools** | Add 5 tools to MCP config; call `slm_compress`, `slm_cache_set/get` | **No** | **Preserved (1M)** | Results you explicitly route through SLM |
|
|
213
|
-
| **C — Skill** | Copy `skills/slm-optimize/SKILL.md` → `~/.claude/skills/` | **No** | **Preserved (1M)** | Auto-applied by the agent per skill rules |
|
|
214
|
-
|
|
215
|
-
**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) — without a proxy the main conversation turn is not intercepted.
|
|
216
|
-
|
|
217
|
-
**How to choose:**
|
|
218
|
-
- Metered API (pay-per-token), want every call cached → **Proxy (A)**
|
|
219
|
-
- Pro/Max/Team subscription or any plan where you won't run a proxy → **MCP tools (B)** or **Skill (C)**
|
|
220
|
-
- Zero configuration → **Skill (C)**: install once, auto-compresses CLAUDE.md and large outputs
|
|
221
|
-
- Agent-controlled caching of repeated file reads → **MCP tools (B)**
|
|
222
|
-
|
|
223
|
-
**Cache:** exact-match SQLite lookup (SHA-256, zero false hits) + vCache-gated semantic (opt-in). **100% cost saved on a hit** (input + output tokens).
|
|
224
|
-
|
|
225
|
-
**Compress:** safe mode = lossless normalization (JSON/code/tool outputs, 60-95% fewer tokens); aggressive mode = LLMLingua-2 prose only (opt-in). CCR stores originals for byte-exact reversal. Anthropic 90% / OpenAI 50% prefix-cache discount alignment included. [CITATION-NEEDED-ONLINE: live provider prefix-cache discount rates]
|
|
226
|
-
|
|
227
|
-
**Savings dashboard:** `slm optimize savings --since 7` — live USD/INR/tokens saved. Hot-reload config, fail-open.
|
|
228
|
-
|
|
229
|
-
### Mesh
|
|
230
|
-
|
|
231
|
-
<a id="multi-machine-mesh-coordination"></a>
|
|
232
|
-
|
|
233
|
-
Run SLM on multiple machines and have agents coordinate as one team — no external broker, no Docker. HTTP-based sync every 30s, mDNS discovery (`SLM_MESH_DISCOVERY=on`), graceful offline queue.
|
|
234
|
-
|
|
235
|
-
```bash
|
|
236
|
-
# Machine A (broker)
|
|
237
|
-
export SLM_MESH_HOST=192.168.1.100
|
|
238
|
-
export SLM_MESH_SHARED_SECRET=my-secret-key
|
|
239
|
-
slm init
|
|
240
|
-
|
|
241
|
-
# Machine B (client)
|
|
242
|
-
export SLM_MESH_PEER_URL=http://192.168.1.100:8765
|
|
243
|
-
export SLM_MESH_SHARED_SECRET=my-secret-key
|
|
244
|
-
slm init
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
8 mesh MCP tools: `mesh_peers`, `mesh_send`, `mesh_broadcast`, `mesh_project`, `mesh_inbox`, `mesh_pending`, `mesh_state`, `mesh_lock`.
|
|
248
|
-
|
|
249
|
-
Full docs: [docs/multi-machine.md](docs/multi-machine.md) · [docs/distributed-deployment.md](docs/distributed-deployment.md)
|
|
250
|
-
|
|
251
|
-
---
|
|
252
|
-
|
|
253
|
-
## Install Paths
|
|
254
|
-
|
|
255
|
-
| Path | Command | When |
|
|
256
|
-
|:-----|:--------|:-----|
|
|
257
|
-
| **npm** (recommended) | `npm install -g superlocalmemory` | Node 14+, installs Python deps automatically |
|
|
258
|
-
| **pip** | `pip install superlocalmemory` | Python 3.11+, direct install |
|
|
259
|
-
| **Claude Code Plugin** (WP-06) | `/plugin marketplace add qualixar/superlocalmemory` then `/plugin install superlocalmemory@qualixar` | Self-bootstraps venv, isolated SLM_DATA_DIR, additive — 14-tool core. Ships the skills/agents/hooks/commands |
|
|
260
|
-
| **Portable / IDE connect** (WP-08) | `slm connect <ide> [--here]` | Wire any IDE without reinstalling; `slm connect claude-code` → plugin pointer |
|
|
261
|
-
|
|
262
|
-
After any install path: `slm setup` → `slm doctor` → `slm warmup` (optional, pre-downloads ~500MB embedding model).
|
|
263
|
-
|
|
264
|
-
| Component | Size | When |
|
|
265
|
-
|:----------|:-----|:-----|
|
|
266
|
-
| Core libraries (numpy, scipy, networkx) | ~50MB | During install |
|
|
267
|
-
| Dashboard & MCP server (fastapi, uvicorn) | ~20MB | During install |
|
|
268
|
-
| Learning engine (lightgbm) | ~10MB | During install |
|
|
269
|
-
| Search engine (sentence-transformers, torch) | ~200MB | During install |
|
|
270
|
-
| Embedding model (nomic-embed-text-v1.5, 768d) | ~500MB | First use or `slm warmup` |
|
|
271
|
-
| **Mode B** requires [Ollama](https://ollama.com) + a model (`ollama pull llama3.2`) | ~2GB | Manual |
|
|
272
|
-
|
|
273
|
-
---
|
|
274
|
-
|
|
275
|
-
## MCP + Profiles
|
|
276
|
-
|
|
277
|
-
SLM supports two MCP transports:
|
|
278
|
-
|
|
279
|
-
**HTTP (recommended, v3.6.7+):**
|
|
280
|
-
```json
|
|
281
|
-
{ "mcpServers": { "superlocalmemory": { "type": "http", "url": "http://127.0.0.1:8765/mcp/" } } }
|
|
282
|
-
```
|
|
283
|
-
Or: `claude mcp add --transport http superlocalmemory http://127.0.0.1:8765/mcp/`
|
|
284
|
-
|
|
285
|
-
**stdio (universal fallback):**
|
|
286
|
-
```json
|
|
287
|
-
{ "mcpServers": { "superlocalmemory": { "command": "slm", "args": ["mcp"] } } }
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
### MCP Profiles (WP-01)
|
|
291
|
-
|
|
292
|
-
Control tool surface via `SLM_MCP_PROFILE`:
|
|
293
|
-
|
|
294
|
-
| Profile | Tools | Use case |
|
|
295
|
-
|:--------|:-----:|:---------|
|
|
296
|
-
| `core14` (default) | 14 | Memory core — `remember`, `recall`, `forget`, `session_init`, + mesh |
|
|
297
|
-
| `mesh8` | 8 | Mesh-only — multi-machine coordination |
|
|
298
|
-
| `full38` | 38 | Core + optimize + evolution + trust |
|
|
299
|
-
| `power50` | 50 | Full38 + admin + ingestion + compliance |
|
|
300
|
-
| `whole81` | 81 | Every tool (`SLM_MCP_ALL_TOOLS=1`) |
|
|
301
|
-
|
|
302
|
-
**Precedence:** `ALL` > `TOOLS` > `PROFILE` > `default`
|
|
303
|
-
|
|
304
|
-
```bash
|
|
305
|
-
export SLM_MCP_PROFILE=full38 # or core14 / mesh8 / power50 / whole81
|
|
306
|
-
slm mcp
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
Per-IDE configs available for Claude Code, Cursor, Windsurf, VS Code Copilot, Continue, Gemini CLI, JetBrains, Zed, and more (15 configs in `ide/configs/`). See [docs/ide-setup.md](docs/ide-setup.md).
|
|
310
|
-
|
|
311
|
-
---
|
|
312
|
-
|
|
313
|
-
## Claude Code Plugin
|
|
314
|
-
|
|
315
|
-
Install directly in Claude Code — no system-level npm/pip needed. This is how you
|
|
316
|
-
get the **skills, agents, hooks, commands, and rules** (the MCP server is
|
|
317
|
-
bootstrapped automatically). It is a two-step flow — add the marketplace once,
|
|
318
|
-
then install:
|
|
319
|
-
|
|
320
|
-
```bash
|
|
321
|
-
# 1. Add the Qualixar marketplace (one-time — the repo IS the marketplace)
|
|
322
|
-
/plugin marketplace add qualixar/superlocalmemory
|
|
323
|
-
|
|
324
|
-
# 2. Install the plugin
|
|
325
|
-
/plugin install superlocalmemory@qualixar
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
- Self-bootstraps a Python venv, installs all deps in an isolated `SLM_DATA_DIR`
|
|
329
|
-
- Registers the 14-tool core MCP surface (`core14` profile by default)
|
|
330
|
-
- Ships the SLM skills / agents / hooks / commands / rules
|
|
331
|
-
- Additive — does not replace an existing SLM install
|
|
332
|
-
- `slm connect claude-code` detects an existing plugin install and links them
|
|
333
|
-
|
|
334
|
-
> **Plugin vs `pip`/`npm`:** `pip install superlocalmemory` / `npm i -g superlocalmemory`
|
|
335
|
-
> give you the `slm` CLI + the MCP server (the *tools*). The **skills/agents/hooks/
|
|
336
|
-
> commands** come only through the plugin above. Use the plugin for Claude Code; use
|
|
337
|
-
> pip/npm for the CLI or other IDEs.
|
|
338
|
-
|
|
339
|
-
To update later: `/plugin marketplace update qualixar` then `/plugin install superlocalmemory@qualixar`.
|
|
340
|
-
|
|
341
|
-
---
|
|
342
|
-
|
|
343
|
-
## Modes + EU AI Act
|
|
344
|
-
|
|
345
|
-
<a id="eu-ai-act-compliance"></a>
|
|
346
|
-
|
|
347
|
-
| Mode | What | Cloud? | EU AI Act | Best For |
|
|
348
|
-
|:----:|:-----|:------:|:---------:|:---------|
|
|
349
|
-
| **A** | Local Guardian | **None** | **Compliant** | Privacy-first, air-gapped, enterprise |
|
|
350
|
-
| **B** | Smart Local | Local only (Ollama) | Compliant | Better answers, data stays local |
|
|
351
|
-
| **C** | Full Power | Cloud LLM | Partial | Maximum accuracy, research |
|
|
352
|
-
|
|
353
|
-
```bash
|
|
354
|
-
slm mode a # Zero-cloud (default)
|
|
355
|
-
slm mode b # Local Ollama
|
|
356
|
-
slm mode c # Cloud LLM
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
**Mode A** is, to the best of our knowledge, the only publicly-released agent memory that runs with zero cloud calls while clearing Mem0's published LoCoMo score. All data stays on your device. No API keys. No GPU. Runs on 2 vCPUs + 4GB RAM.
|
|
360
|
-
|
|
361
|
-
The EU AI Act (Regulation 2024/1689) takes full effect **August 2, 2026**.
|
|
362
|
-
|
|
363
|
-
| Requirement | Mode A | Mode B | Mode C |
|
|
364
|
-
|:------------|:------:|:------:|:------:|
|
|
365
|
-
| Data sovereignty (Art. 10) | **Pass** | **Pass** | Requires DPA |
|
|
366
|
-
| Right to erasure (GDPR Art. 17) | **Pass** | **Pass** | **Pass** |
|
|
367
|
-
| Transparency (Art. 13) | **Pass** | **Pass** | **Pass** |
|
|
368
|
-
| No network calls during memory ops | **Yes** | **Yes** | No |
|
|
369
|
-
|
|
370
|
-
To the best of our knowledge, no existing agent memory system addresses EU AI Act compliance by architectural design. Modes A and B pass all checks — no personal data leaves the device during any memory operation.
|
|
371
|
-
|
|
372
|
-
Built-in compliance tools: GDPR Article 15/17 export + complete erasure, tamper-proof SHA-256 audit chain, data provenance tracking, ABAC policy enforcement. See [docs/compliance.md](docs/compliance.md).
|
|
373
|
-
|
|
374
|
-
---
|
|
375
|
-
|
|
376
|
-
## Advanced
|
|
377
|
-
|
|
378
|
-
| Topic | Link |
|
|
379
|
-
|:------|:-----|
|
|
380
|
-
| Full optimize docs | [docs/optimize-overview.md](docs/optimize-overview.md) · [docs/optimize-cli.md](docs/optimize-cli.md) · [docs/optimize-config.md](docs/optimize-config.md) |
|
|
381
|
-
| Distributed deployment | [docs/distributed-deployment.md](docs/distributed-deployment.md) |
|
|
382
|
-
| Multi-machine mesh | [docs/multi-machine.md](docs/multi-machine.md) |
|
|
383
|
-
| Auto-memory hooks | [docs/auto-memory.md](docs/auto-memory.md) |
|
|
384
|
-
| Architecture + math | [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) |
|
|
385
|
-
| CLI reference | [docs/cli-reference.md](docs/cli-reference.md) |
|
|
386
|
-
| MCP tools reference | [docs/mcp-tools.md](docs/mcp-tools.md) |
|
|
387
|
-
| Getting started | [docs/getting-started.md](docs/getting-started.md) |
|
|
388
|
-
| IDE setup (15 configs) | [docs/ide-setup.md](docs/ide-setup.md) |
|
|
389
|
-
| Skill evolution | [docs/skill-evolution.md](docs/skill-evolution.md) |
|
|
390
|
-
| V2 migration | [docs/migration-from-v2.md](docs/migration-from-v2.md) |
|
|
391
|
-
| Configuration | [docs/configuration.md](docs/configuration.md) |
|
|
392
|
-
| Wiki | [github.com/qualixar/superlocalmemory/wiki](https://github.com/qualixar/superlocalmemory/wiki) |
|
|
393
|
-
|
|
394
|
-
**Web dashboard:**
|
|
395
|
-
```bash
|
|
396
|
-
slm dashboard # Opens at http://localhost:8765
|
|
397
|
-
```
|
|
398
|
-
17-tab sidebar with Knowledge Graph (Sigma.js WebGL, community detection), Health Monitor, Entity Explorer, Mesh Peers, Ingestion Status, Privacy blur mode. Cross-platform: macOS + Windows + Linux.
|
|
399
|
-
|
|
400
|
-
**Release history:**
|
|
401
|
-
|
|
402
|
-
| Version | Codename | Key Features |
|
|
403
|
-
|---|---|---|
|
|
404
|
-
| **v3.6.21** | Dashboard Audit | Full UI audit across all 7 dashboard tabs — auth fix for mesh panel (issue #60 frontend), Quick Store endpoint, timeline endpoint, r.ok guards, SSE \r fix, event delegation for lazy tabs, optimize toggle revert; backbone.py JSONDecodeError fix (issue #62) |
|
|
405
|
-
| **v3.6.20** | Mesh Auth | Remote mesh auth fix (issue #60) — `_get_broker` now accepts Bearer + X-Mesh-Secret from non-loopback callers; config settings preservation (AIDEV-86) |
|
|
406
|
-
| **v3.6.17** | Community | 8 contributor PRs (observability events, marker-bounded adapter writes, daemon port discovery, anthropic `api_base`, OpenMP workers, atomic-write rehash, `_jl` sentinel, LFS pointer); dashboard-feedback fix (#53/#59); env-tunable SQLite knobs + idle backoff; remote LLM test-probe (#40) |
|
|
407
|
-
| **v3.6.16** | Docs | Corrected Claude Code plugin install — adds the required `/plugin marketplace add` step; clarifies plugin vs pip/npm delivery |
|
|
408
|
-
| **v3.6.15** | Multi-scope | **Opt-in [shared memory](docs/shared-memory.md)** (personal/shared/global, off by default), default-deny scope at every read path, recall scope-race fix, contributor PRs #42/#43/#44, fixes #46–#49 |
|
|
409
|
-
| **v3.6.14** | Plugin-native | Claude Code Plugin (WP-06), MCP profiles (WP-01), IDE connect (WP-08), asset consolidation, UI polish (WP-12) |
|
|
410
|
-
| **v3.6.x** | Optimize Everywhere / Distributed-ready | Three surfaces (proxy/MCP/skill), `SLM_REMOTE=1` LAN mode, remote dashboard, custom LLM endpoints |
|
|
411
|
-
| **v3.5.0** | Scale-Ready | CozoDB/LanceDB, 6-channel recall <1s, Core Memory Block, context injection v2, score normalization |
|
|
412
|
-
| **v3.4.x** | Scale-Ready (foundation) | Tiered storage, graph pruning, Hopfield channel, LightGBM ranking, mDNS mesh discovery |
|
|
413
|
-
| **v3.3.x** | Foundation | BM25Plus, Fisher-Rao, sqlite-vec, RRF fusion, cross-encoder rerank. 3 published papers |
|
|
414
|
-
|
|
415
|
-
---
|
|
416
|
-
|
|
417
|
-
## Research Papers
|
|
418
|
-
|
|
419
|
-
SuperLocalMemory is backed by three published research papers (arXiv preprints + Zenodo DOIs). These are preprints — not conference-accepted or journal-published yet.
|
|
420
|
-
|
|
421
|
-
### Paper 3: The Living Brain (V3.3)
|
|
422
|
-
> **SuperLocalMemory V3.3: The Living Brain — Biologically-Inspired Forgetting, Cognitive Quantization, and Multi-Channel Retrieval for Zero-LLM Agent Memory Systems**
|
|
423
|
-
> Varun Pratap Bhardwaj (2026)
|
|
424
|
-
> [arXiv:2604.04514](https://arxiv.org/abs/2604.04514) · [Zenodo DOI: 10.5281/zenodo.19435120](https://zenodo.org/records/19435120)
|
|
425
|
-
|
|
426
|
-
### Paper 2: Information-Geometric Foundations (V3)
|
|
427
|
-
> **SuperLocalMemory V3: Information-Geometric Foundations for Zero-LLM Enterprise Agent Memory**
|
|
428
|
-
> Varun Pratap Bhardwaj (2026)
|
|
429
|
-
> [arXiv:2603.14588](https://arxiv.org/abs/2603.14588) · [Zenodo DOI: 10.5281/zenodo.19038659](https://zenodo.org/records/19038659)
|
|
430
|
-
|
|
431
|
-
### Paper 1: Trust & Behavioral Foundations (V2)
|
|
432
|
-
> **SuperLocalMemory: A Structured Local Memory Architecture for Persistent AI Agent Context**
|
|
433
|
-
> Varun Pratap Bhardwaj (2026)
|
|
434
|
-
> [arXiv:2603.02240](https://arxiv.org/abs/2603.02240) · [Zenodo DOI: 10.5281/zenodo.18709670](https://zenodo.org/records/18709670)
|
|
435
|
-
|
|
436
|
-
### Cite This Work
|
|
437
|
-
|
|
438
|
-
```bibtex
|
|
439
|
-
@article{bhardwaj2026slmv33,
|
|
440
|
-
title={SuperLocalMemory V3.3: The Living Brain — Biologically-Inspired
|
|
441
|
-
Forgetting, Cognitive Quantization, and Multi-Channel Retrieval
|
|
442
|
-
for Zero-LLM Agent Memory Systems},
|
|
443
|
-
author={Bhardwaj, Varun Pratap},
|
|
444
|
-
journal={arXiv preprint arXiv:2604.04514},
|
|
445
|
-
year={2026},
|
|
446
|
-
url={https://arxiv.org/abs/2604.04514}
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
@article{bhardwaj2026slmv3,
|
|
450
|
-
title={Information-Geometric Foundations for Zero-LLM Enterprise Agent Memory},
|
|
451
|
-
author={Bhardwaj, Varun Pratap},
|
|
452
|
-
journal={arXiv preprint arXiv:2603.14588},
|
|
453
|
-
year={2026}
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
@article{bhardwaj2026slm,
|
|
457
|
-
title={A Structured Local Memory Architecture for Persistent AI Agent Context},
|
|
458
|
-
author={Bhardwaj, Varun Pratap},
|
|
459
|
-
journal={arXiv preprint arXiv:2603.02240},
|
|
460
|
-
year={2026}
|
|
461
|
-
}
|
|
462
|
-
```
|
|
463
|
-
|
|
464
|
-
---
|
|
465
|
-
|
|
466
|
-
## Support / License / Qualixar
|
|
467
|
-
|
|
468
|
-
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. [Wiki](https://github.com/qualixar/superlocalmemory/wiki) for detailed documentation.
|
|
469
|
-
|
|
470
|
-
GNU Affero General Public License v3.0 (AGPL-3.0). See [LICENSE](LICENSE).
|
|
471
|
-
|
|
472
|
-
For commercial licensing (closed-source, proprietary, or hosted use), see [COMMERCIAL-LICENSE.md](COMMERCIAL-LICENSE.md) or contact varun.pratap.bhardwaj@gmail.com.
|
|
473
|
-
|
|
474
|
-
Copyright (c) 2026 Varun Pratap Bhardwaj / Qualixar.
|
|
475
|
-
|
|
476
|
-
Part of [Qualixar](https://qualixar.com) · Author: [Varun Pratap Bhardwaj](https://varunpratap.com)
|
|
477
|
-
|
|
478
|
-
### Acknowledgments
|
|
479
|
-
|
|
480
|
-
- **[Everything Claude Code (ECC)](https://github.com/affaan-m/everything-claude-code)** — SLM's skill observation patterns were inspired by ECC's continuous learning architecture. SLM supports direct ingestion of ECC observations via `slm ingest --source ecc`. We recommend ECC for Claude Code users who want the deepest learning experience alongside SLM.
|
|
481
|
-
- **[HKUDS/OpenSpace](https://github.com/HKUDS/OpenSpace)** — The skill evolution research in SLM draws from the EvoSkills co-evolutionary verification concepts (arXiv:2604.01687). We adopted their 3-trigger evolution system and anti-loop guard patterns.
|
|
482
|
-
|
|
483
|
-
### Qualixar AI Agent Reliability Platform
|
|
484
|
-
|
|
485
|
-
Qualixar is building the open-source infrastructure for AI agent reliability engineering. Seven products, one coherent platform:
|
|
486
|
-
|
|
487
|
-
| Product | Purpose | Install |
|
|
488
|
-
|---------|---------|---------|
|
|
489
|
-
| **[SuperLocalMemory](https://github.com/qualixar/superlocalmemory)** | Persistent memory + learning | `npm install -g superlocalmemory` |
|
|
490
|
-
| **[Qualixar OS](https://github.com/qualixar/qualixar-os)** | Universal agent runtime | `npx qualixar-os` |
|
|
491
|
-
| **[SLM Mesh](https://github.com/qualixar/slm-mesh)** | P2P coordination across sessions | `npm i slm-mesh` |
|
|
492
|
-
| **[SLM MCP Hub](https://github.com/qualixar/slm-mcp-hub)** | Federate 430+ MCP tools | `pip install slm-mcp-hub` |
|
|
493
|
-
| **[AgentAssay](https://github.com/qualixar/agentassay)** | Token-efficient agent testing | `pip install agentassay` |
|
|
494
|
-
| **[AgentAssert](https://github.com/qualixar/agentassert-abc)** | Behavioral contracts + drift detection | `pip install agentassert-abc` |
|
|
495
|
-
| **[SkillFortify](https://github.com/qualixar/skillfortify)** | Formal verification for agent skills | `pip install skillfortify` |
|
|
496
|
-
|
|
497
|
-
**Zero cloud dependency. Local-first. EU AI Act compliant.**
|
|
498
|
-
|
|
499
|
-
Start here → **[qualixar.com](https://qualixar.com)** · [All papers on Qualixar HuggingFace](https://huggingface.co/Qualixar)
|
|
500
|
-
|
|
501
|
-
---
|
|
502
|
-
|
|
503
|
-
<p align="center">
|
|
504
|
-
<sub>Built with mathematical rigor. Not in the race — here to help everyone build better AI memory systems.</sub>
|
|
505
|
-
</p>
|
|
506
|
-
|
|
507
|
-
---
|
|
508
|
-
|
|
509
|
-
## Star This Project
|
|
510
|
-
|
|
511
|
-
If this project solves a real problem for you, **please star the repo** — it helps other developers discover Qualixar and signals that the AI agent reliability community is growing.
|
|
512
|
-
|
|
513
|
-
[](https://star-history.com/#qualixar/superlocalmemory&Date)
|