superlocalmemory 3.4.16 → 3.4.18

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.
Files changed (83) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +1 -3
  3. package/pyproject.toml +10 -1
  4. package/src/superlocalmemory/cli/setup_wizard.py +30 -0
  5. package/src/superlocalmemory/server/routes/entity.py +5 -9
  6. package/src/superlocalmemory/server/routes/helpers.py +120 -15
  7. package/src/superlocalmemory/server/routes/ingest.py +2 -3
  8. package/src/superlocalmemory/server/routes/v3_api.py +42 -2
  9. package/src/superlocalmemory/server/unified_daemon.py +21 -11
  10. package/src/superlocalmemory.egg-info/PKG-INFO +5 -2
  11. package/src/superlocalmemory.egg-info/requires.txt +3 -0
  12. package/docs/ARCHITECTURE.md +0 -149
  13. package/docs/api-reference.md +0 -284
  14. package/docs/auto-memory.md +0 -150
  15. package/docs/cli-reference.md +0 -327
  16. package/docs/cloud-backup.md +0 -174
  17. package/docs/compliance.md +0 -191
  18. package/docs/configuration.md +0 -182
  19. package/docs/getting-started.md +0 -102
  20. package/docs/ide-setup.md +0 -261
  21. package/docs/mcp-tools.md +0 -220
  22. package/docs/migration-from-v2.md +0 -170
  23. package/docs/profiles.md +0 -173
  24. package/docs/screenshots/01-dashboard-main.png +0 -0
  25. package/docs/screenshots/02-knowledge-graph.png +0 -0
  26. package/docs/screenshots/03-math-health.png +0 -0
  27. package/docs/screenshots/03-patterns-learning.png +0 -0
  28. package/docs/screenshots/04-learning-dashboard.png +0 -0
  29. package/docs/screenshots/04-recall-lab.png +0 -0
  30. package/docs/screenshots/05-behavioral-analysis.png +0 -0
  31. package/docs/screenshots/05-trust-dashboard.png +0 -0
  32. package/docs/screenshots/06-graph-communities.png +0 -0
  33. package/docs/screenshots/06-settings.png +0 -0
  34. package/docs/screenshots/07-memories-blurred.png +0 -0
  35. package/docs/skill-evolution.md +0 -256
  36. package/docs/troubleshooting.md +0 -310
  37. package/docs/v2-archive/ACCESSIBILITY.md +0 -291
  38. package/docs/v2-archive/ARCHITECTURE.md +0 -886
  39. package/docs/v2-archive/CLI-COMMANDS-REFERENCE.md +0 -425
  40. package/docs/v2-archive/COMPRESSION-README.md +0 -390
  41. package/docs/v2-archive/FRAMEWORK-INTEGRATIONS.md +0 -300
  42. package/docs/v2-archive/MCP-MANUAL-SETUP.md +0 -775
  43. package/docs/v2-archive/MCP-TROUBLESHOOTING.md +0 -787
  44. package/docs/v2-archive/PATTERN-LEARNING.md +0 -228
  45. package/docs/v2-archive/PROFILES-GUIDE.md +0 -453
  46. package/docs/v2-archive/RESET-GUIDE.md +0 -353
  47. package/docs/v2-archive/SEARCH-ENGINE-V2.2.0.md +0 -749
  48. package/docs/v2-archive/SEARCH-INTEGRATION-GUIDE.md +0 -502
  49. package/docs/v2-archive/UI-SERVER.md +0 -262
  50. package/docs/v2-archive/UNIVERSAL-INTEGRATION.md +0 -488
  51. package/docs/v2-archive/V2.2.0-OPTIONAL-SEARCH.md +0 -666
  52. package/docs/v2-archive/WINDOWS-INSTALL-README.txt +0 -34
  53. package/docs/v2-archive/WINDOWS-POST-INSTALL.txt +0 -45
  54. package/docs/v2-archive/example_graph_usage.py +0 -146
  55. package/ui/index.html +0 -1879
  56. package/ui/js/agents.js +0 -192
  57. package/ui/js/auto-settings.js +0 -399
  58. package/ui/js/behavioral.js +0 -276
  59. package/ui/js/clusters.js +0 -206
  60. package/ui/js/compliance.js +0 -252
  61. package/ui/js/core.js +0 -246
  62. package/ui/js/dashboard.js +0 -110
  63. package/ui/js/events.js +0 -178
  64. package/ui/js/fact-detail.js +0 -92
  65. package/ui/js/feedback.js +0 -333
  66. package/ui/js/graph-core.js +0 -447
  67. package/ui/js/graph-filters.js +0 -220
  68. package/ui/js/graph-interactions.js +0 -351
  69. package/ui/js/graph-ui.js +0 -214
  70. package/ui/js/ide-status.js +0 -102
  71. package/ui/js/init.js +0 -45
  72. package/ui/js/learning.js +0 -435
  73. package/ui/js/lifecycle.js +0 -298
  74. package/ui/js/math-health.js +0 -98
  75. package/ui/js/memories.js +0 -264
  76. package/ui/js/modal.js +0 -357
  77. package/ui/js/patterns.js +0 -93
  78. package/ui/js/profiles.js +0 -236
  79. package/ui/js/recall-lab.js +0 -292
  80. package/ui/js/search.js +0 -59
  81. package/ui/js/settings.js +0 -224
  82. package/ui/js/timeline.js +0 -32
  83. package/ui/js/trust-dashboard.js +0 -73
@@ -1,182 +0,0 @@
1
- # Configuration
2
- > SuperLocalMemory V3 Documentation
3
- > https://superlocalmemory.com | Part of Qualixar
4
-
5
- Control how SuperLocalMemory stores, retrieves, and processes your memories.
6
-
7
- ---
8
-
9
- ## Three Operating Modes
10
-
11
- SuperLocalMemory runs in one of three modes. You pick the trade-off between privacy and power.
12
-
13
- | Mode | What it does | Needs API key? | Data leaves your machine? |
14
- |------|-------------|:--------------:|:-------------------------:|
15
- | **A: Zero-Cloud** | Math-based retrieval. No LLM calls. | No | Never |
16
- | **B: Local LLM** | Mode A + a local LLM via Ollama. | No | Never |
17
- | **C: Cloud LLM** | Mode B + a cloud LLM for maximum recall quality. | Yes | Yes (queries only) |
18
-
19
- ### Check your current mode
20
-
21
- ```bash
22
- slm mode
23
- ```
24
-
25
- ### Switch modes
26
-
27
- ```bash
28
- slm mode a # Zero-cloud (default)
29
- slm mode b # Local LLM
30
- slm mode c # Cloud LLM
31
- ```
32
-
33
- Switching modes takes effect immediately. No data is lost.
34
-
35
- ### Mode A: Zero-Cloud (Default)
36
-
37
- All operations run locally. Retrieval uses four channels (semantic similarity, keyword search, entity graph, and temporal context) combined with mathematical scoring. No network calls.
38
-
39
- Best for: privacy-sensitive work, air-gapped environments, EU AI Act compliance.
40
-
41
- ### Mode B: Local LLM
42
-
43
- Everything from Mode A, plus a local LLM (via Ollama) that improves recall by understanding query intent and reranking results.
44
-
45
- **Setup:**
46
-
47
- ```bash
48
- # Install Ollama (if not already installed)
49
- brew install ollama # macOS
50
- curl -fsSL https://ollama.com/install.sh | sh # Linux
51
-
52
- # Pull a model
53
- ollama pull llama3.2
54
-
55
- # Switch to Mode B
56
- slm mode b
57
- ```
58
-
59
- Best for: developers who want better recall without sending data to the cloud.
60
-
61
- ### Mode C: Cloud LLM
62
-
63
- Everything from Mode B, plus a cloud LLM for cross-encoder reranking and agentic multi-round retrieval. Highest recall quality.
64
-
65
- **Setup:**
66
-
67
- ```bash
68
- slm mode c
69
- slm provider set openai
70
- ```
71
-
72
- You will be prompted for your API key (stored locally in your config file, never transmitted except to the provider you choose).
73
-
74
- Best for: maximum recall quality when privacy constraints allow cloud calls.
75
-
76
- ## Provider Configuration
77
-
78
- Mode C supports multiple LLM providers.
79
-
80
- ### Set your provider
81
-
82
- ```bash
83
- slm provider # Show current provider
84
- slm provider set # Interactive provider selector
85
- ```
86
-
87
- ### Supported providers
88
-
89
- | Provider | Command | Env variable |
90
- |----------|---------|-------------|
91
- | OpenAI | `slm provider set openai` | `OPENAI_API_KEY` |
92
- | Anthropic | `slm provider set anthropic` | `ANTHROPIC_API_KEY` |
93
- | Azure OpenAI | `slm provider set azure` | `AZURE_OPENAI_API_KEY` |
94
- | Ollama (local) | `slm provider set ollama` | None needed |
95
- | OpenRouter | `slm provider set openrouter` | `OPENROUTER_API_KEY` |
96
-
97
- ### Set API keys
98
-
99
- You can set keys interactively or via environment variables:
100
-
101
- ```bash
102
- # Interactive (stored in config file)
103
- slm provider set openai
104
- # Prompts: Enter your OpenAI API key: sk-...
105
-
106
- # Via environment variable (takes precedence)
107
- export OPENAI_API_KEY="sk-..."
108
- ```
109
-
110
- ## Config File
111
-
112
- All settings live in:
113
-
114
- ```
115
- ~/.superlocalmemory/config.json
116
- ```
117
-
118
- ### Example config
119
-
120
- ```json
121
- {
122
- "mode": "a",
123
- "profile": "default",
124
- "provider": {
125
- "name": "openai",
126
- "model": "gpt-4o-mini",
127
- "api_key_env": "OPENAI_API_KEY"
128
- },
129
- "auto_capture": true,
130
- "auto_recall": true,
131
- "embedding_model": "all-MiniLM-L6-v2",
132
- "max_recall_results": 10,
133
- "retention": {
134
- "default_policy": "indefinite"
135
- }
136
- }
137
- ```
138
-
139
- ### Key settings
140
-
141
- | Setting | Default | Description |
142
- |---------|---------|-------------|
143
- | `mode` | `"a"` | Operating mode: `a`, `b`, or `c` |
144
- | `profile` | `"default"` | Active memory profile |
145
- | `auto_capture` | `true` | Automatically store decisions and context |
146
- | `auto_recall` | `true` | Automatically inject relevant memories |
147
- | `embedding_model` | `"all-MiniLM-L6-v2"` | Sentence transformer for semantic search |
148
- | `max_recall_results` | `10` | Maximum memories returned per query |
149
-
150
- ## Environment Variables
151
-
152
- These override config file settings when set:
153
-
154
- | Variable | Purpose |
155
- |----------|---------|
156
- | `SLM_MODE` | Override operating mode |
157
- | `SLM_PROFILE` | Override active profile |
158
- | `SLM_DATA_DIR` | Override data directory (default: `~/.superlocalmemory/`) |
159
- | `OPENAI_API_KEY` | OpenAI API key for Mode C |
160
- | `ANTHROPIC_API_KEY` | Anthropic API key for Mode C |
161
- | `AZURE_OPENAI_API_KEY` | Azure OpenAI API key for Mode C |
162
- | `OPENROUTER_API_KEY` | OpenRouter API key for Mode C |
163
-
164
- ## Database Location
165
-
166
- All data is stored locally in:
167
-
168
- ```
169
- ~/.superlocalmemory/memory.db # SQLite database
170
- ~/.superlocalmemory/config.json # Configuration
171
- ~/.superlocalmemory/backups/ # Automatic backups
172
- ```
173
-
174
- To use a custom location:
175
-
176
- ```bash
177
- export SLM_DATA_DIR="/path/to/your/data"
178
- ```
179
-
180
- ---
181
-
182
- *SuperLocalMemory V3 — Copyright 2026 Varun Pratap Bhardwaj. Elastic License 2.0. Part of Qualixar.*
@@ -1,102 +0,0 @@
1
- # Getting Started
2
- > SuperLocalMemory V3 Documentation
3
- > https://superlocalmemory.com | Part of Qualixar
4
-
5
- Get your AI's memory system running in under 5 minutes. **V3.1: Now with Active Memory — your memory learns from your usage and gets smarter over time, at zero token cost.**
6
-
7
- ---
8
-
9
- ## Prerequisites
10
-
11
- - **Node.js** 18 or later
12
- - **Python** 3.10 or later (installed automatically on most systems)
13
- - An AI coding tool (Claude Code, Cursor, VS Code, Windsurf, or any MCP-compatible IDE)
14
-
15
- ## Install
16
-
17
- ```bash
18
- npm install -g superlocalmemory
19
- ```
20
-
21
- This installs the `slm` command globally.
22
-
23
- ## Run the Setup Wizard
24
-
25
- ```bash
26
- slm setup
27
- ```
28
-
29
- The wizard walks you through three choices:
30
-
31
- 1. **Pick your mode**
32
- - **Mode A** (default) — Zero cloud. All memory stays on your machine. No API key needed.
33
- - **Mode B** — Local LLM. Uses Ollama on your machine for smarter recall.
34
- - **Mode C** — Cloud LLM. Uses OpenAI, Anthropic, or another provider for maximum power.
35
-
36
- 2. **Connect your IDE** — The wizard detects installed IDEs and configures them automatically.
37
-
38
- 3. **Verify installation** — A quick self-test confirms everything works.
39
-
40
- > **Tip:** Start with Mode A. You can switch to B or C anytime with `slm mode b` or `slm mode c`.
41
-
42
- ## Store Your First Memory
43
-
44
- ```bash
45
- slm remember "The project uses PostgreSQL 16 on port 5433, not the default 5432"
46
- ```
47
-
48
- You should see:
49
-
50
- ```
51
- Stored memory #1 (Mode A, profile: default)
52
- ```
53
-
54
- ## Recall a Memory
55
-
56
- ```bash
57
- slm recall "what database port do we use"
58
- ```
59
-
60
- Output:
61
-
62
- ```
63
- [1] The project uses PostgreSQL 16 on port 5433, not the default 5432
64
- Score: 0.94 | Stored: 2 minutes ago | Profile: default
65
- ```
66
-
67
- ## Check System Status
68
-
69
- ```bash
70
- slm status
71
- ```
72
-
73
- This shows:
74
-
75
- - Current mode (A, B, or C)
76
- - Active profile
77
- - Total memories stored
78
- - Database location
79
- - Health of math layers (Fisher, Sheaf, Langevin)
80
-
81
- ## How It Works With Your IDE
82
-
83
- Once connected, SuperLocalMemory works automatically:
84
-
85
- - **Auto-recall** — When your AI assistant responds, relevant memories are injected as context. No manual queries needed.
86
- - **Auto-capture** — Decisions, bug fixes, architecture choices, and preferences are stored as you work. No manual tagging needed.
87
-
88
- You can still use `slm remember` and `slm recall` from the terminal whenever you want explicit control.
89
-
90
- ## Next Steps
91
-
92
- | What you want to do | Guide |
93
- |---------------------|-------|
94
- | Set up a specific IDE | [IDE Setup](ide-setup.md) |
95
- | Switch modes or providers | [Configuration](configuration.md) |
96
- | Learn all CLI commands | [CLI Reference](cli-reference.md) |
97
- | Migrate from V2 | [Migration from V2](migration-from-v2.md) |
98
- | Understand how it works | [Architecture](architecture.md) |
99
-
100
- ---
101
-
102
- *SuperLocalMemory V3 — Copyright 2026 Varun Pratap Bhardwaj. Elastic License 2.0. Part of Qualixar.*
package/docs/ide-setup.md DELETED
@@ -1,261 +0,0 @@
1
- # IDE Setup
2
- > SuperLocalMemory V3 Documentation
3
- > https://superlocalmemory.com | Part of Qualixar
4
-
5
- Connect SuperLocalMemory to your AI coding tool. Once connected, memories are captured and recalled automatically.
6
-
7
- ---
8
-
9
- ## Auto-Detection
10
-
11
- The fastest way to connect all your IDEs:
12
-
13
- ```bash
14
- slm connect
15
- ```
16
-
17
- This scans your system for installed IDEs, configures each one, and verifies the connection. Run it once after installing SLM.
18
-
19
- To connect a specific IDE:
20
-
21
- ```bash
22
- slm connect claude
23
- slm connect cursor
24
- slm connect vscode
25
- ```
26
-
27
- ## Claude Code
28
-
29
- **Auto:**
30
-
31
- ```bash
32
- slm connect claude
33
- ```
34
-
35
- **Manual:** Add to `~/.claude.json`:
36
-
37
- ```json
38
- {
39
- "mcpServers": {
40
- "superlocalmemory": {
41
- "command": "npx",
42
- "args": ["-y", "superlocalmemory", "mcp"],
43
- "env": {}
44
- }
45
- }
46
- }
47
- ```
48
-
49
- Restart Claude Code. Verify with: `slm status` in a Claude Code session.
50
-
51
- ## Cursor
52
-
53
- **Auto:**
54
-
55
- ```bash
56
- slm connect cursor
57
- ```
58
-
59
- **Manual:** Add to `~/.cursor/mcp.json`:
60
-
61
- ```json
62
- {
63
- "mcpServers": {
64
- "superlocalmemory": {
65
- "command": "npx",
66
- "args": ["-y", "superlocalmemory", "mcp"],
67
- "env": {}
68
- }
69
- }
70
- }
71
- ```
72
-
73
- Restart Cursor. The memory tools appear in the tool list automatically.
74
-
75
- ## VS Code / GitHub Copilot
76
-
77
- **Auto:**
78
-
79
- ```bash
80
- slm connect vscode
81
- ```
82
-
83
- **Manual:** Add to VS Code settings (JSON):
84
-
85
- ```json
86
- {
87
- "mcp": {
88
- "servers": {
89
- "superlocalmemory": {
90
- "command": "npx",
91
- "args": ["-y", "superlocalmemory", "mcp"]
92
- }
93
- }
94
- }
95
- }
96
- ```
97
-
98
- ## Windsurf
99
-
100
- **Auto:**
101
-
102
- ```bash
103
- slm connect windsurf
104
- ```
105
-
106
- **Manual:** Add to `~/.windsurf/mcp.json`:
107
-
108
- ```json
109
- {
110
- "mcpServers": {
111
- "superlocalmemory": {
112
- "command": "npx",
113
- "args": ["-y", "superlocalmemory", "mcp"],
114
- "env": {}
115
- }
116
- }
117
- }
118
- ```
119
-
120
- ## Gemini CLI
121
-
122
- **Auto:**
123
-
124
- ```bash
125
- slm connect gemini
126
- ```
127
-
128
- **Manual:** Add to `~/.gemini/settings.json`:
129
-
130
- ```json
131
- {
132
- "mcpServers": {
133
- "superlocalmemory": {
134
- "command": "npx",
135
- "args": ["-y", "superlocalmemory", "mcp"]
136
- }
137
- }
138
- }
139
- ```
140
-
141
- ## JetBrains (IntelliJ, PyCharm, WebStorm, etc.)
142
-
143
- **Auto:**
144
-
145
- ```bash
146
- slm connect jetbrains
147
- ```
148
-
149
- **Manual:** Open **Settings > Tools > AI Assistant > MCP Servers** and add:
150
-
151
- | Field | Value |
152
- |-------|-------|
153
- | Name | `superlocalmemory` |
154
- | Command | `npx` |
155
- | Arguments | `-y superlocalmemory mcp` |
156
-
157
- Restart the IDE after adding the server.
158
-
159
- ## Continue.dev
160
-
161
- **Auto:**
162
-
163
- ```bash
164
- slm connect continue
165
- ```
166
-
167
- **Manual:** Add to `~/.continue/config.json`:
168
-
169
- ```json
170
- {
171
- "mcpServers": [
172
- {
173
- "name": "superlocalmemory",
174
- "command": "npx",
175
- "args": ["-y", "superlocalmemory", "mcp"]
176
- }
177
- ]
178
- }
179
- ```
180
-
181
- ## Zed
182
-
183
- **Auto:**
184
-
185
- ```bash
186
- slm connect zed
187
- ```
188
-
189
- **Manual:** Add to `~/.config/zed/settings.json`:
190
-
191
- ```json
192
- {
193
- "context_servers": {
194
- "superlocalmemory": {
195
- "command": {
196
- "path": "npx",
197
- "args": ["-y", "superlocalmemory", "mcp"]
198
- }
199
- }
200
- }
201
- }
202
- ```
203
-
204
- ## Verifying the Connection
205
-
206
- After connecting any IDE, verify it works:
207
-
208
- 1. Open a chat/prompt session in your IDE
209
- 2. Ask: "What do you know about my preferences?"
210
- 3. If SLM is connected, the AI will check your memories before responding
211
-
212
- Or run from the terminal:
213
-
214
- ```bash
215
- slm status
216
- ```
217
-
218
- Look for `Connected IDEs: claude, cursor, ...` in the output.
219
-
220
- ## Troubleshooting
221
-
222
- ### "slm command not found"
223
-
224
- The npm global bin directory is not in your PATH.
225
-
226
- ```bash
227
- # Find where npm installs global packages
228
- npm root -g
229
-
230
- # Add the bin directory to your PATH
231
- # For zsh (~/.zshrc):
232
- export PATH="$(npm root -g)/../bin:$PATH"
233
-
234
- # For bash (~/.bashrc):
235
- export PATH="$(npm root -g)/../bin:$PATH"
236
- ```
237
-
238
- ### IDE does not detect SLM tools
239
-
240
- 1. Ensure SLM is installed globally: `npm list -g superlocalmemory`
241
- 2. Restart the IDE completely (not just reload)
242
- 3. Check the MCP config file has correct JSON syntax
243
- 4. Run `slm connect <ide>` to regenerate the config
244
-
245
- ### "Connection refused" or timeout errors
246
-
247
- ```bash
248
- # Test the MCP server directly
249
- npx superlocalmemory mcp --test
250
-
251
- # Check for port conflicts
252
- slm status --verbose
253
- ```
254
-
255
- ### Multiple IDE configs conflicting
256
-
257
- Each IDE has its own config file. They do not conflict. All IDEs share the same memory database at `~/.superlocalmemory/memory.db`.
258
-
259
- ---
260
-
261
- *SuperLocalMemory V3 — Copyright 2026 Varun Pratap Bhardwaj. Elastic License 2.0. Part of Qualixar.*