superlocalmemory 3.6.13 → 3.6.14
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/.claude-plugin/marketplace.json +17 -0
- package/README.md +187 -741
- package/package.json +12 -5
- package/plugin/.claude-plugin/plugin.json +20 -0
- package/plugin/.mcp.json +12 -0
- package/plugin/CLAUDE.md +43 -0
- package/plugin/_GENERATED.md +6 -0
- package/plugin/agents/slm-memory-advisor.md +43 -0
- package/plugin/agents/slm-optimize-advisor.md +38 -0
- package/plugin/hooks/hooks.json +14 -0
- package/plugin/requirements.txt +1 -0
- package/plugin/scripts/ensure-venv.bat +122 -0
- package/plugin/scripts/ensure-venv.sh +105 -0
- package/plugin/scripts/slm-launch +15 -0
- package/plugin/scripts/slm-launch.bat +17 -0
- package/plugin/settings.json +16 -0
- package/plugin/skills/slm-cache/SKILL.md +140 -0
- package/plugin/skills/slm-compress/SKILL.md +143 -0
- package/plugin/skills/slm-graph/SKILL.md +300 -0
- package/plugin/skills/slm-recall/SKILL.md +196 -0
- package/plugin/skills/slm-remember/SKILL.md +182 -0
- package/plugin/skills/slm-session/SKILL.md +207 -0
- package/plugin/skills/slm-status/SKILL.md +149 -0
- package/plugin-src/.mcp.json +12 -0
- package/plugin-src/agents/slm-memory-advisor.md +43 -0
- package/plugin-src/agents/slm-optimize-advisor.md +38 -0
- package/plugin-src/commands/slm-optimize.md +22 -0
- package/plugin-src/commands/slm-recall.md +16 -0
- package/plugin-src/commands/slm-remember.md +16 -0
- package/plugin-src/commands/slm-status.md +15 -0
- package/plugin-src/hooks/.gitkeep +0 -0
- package/plugin-src/hooks/hooks.json +14 -0
- package/plugin-src/manifest.json +25 -0
- package/plugin-src/requirements.txt +1 -0
- package/plugin-src/rules/AGENTS.md +90 -0
- package/plugin-src/rules/CLAUDE.md.fragment +43 -0
- package/plugin-src/scripts/ensure-venv.bat +122 -0
- package/plugin-src/scripts/ensure-venv.sh +105 -0
- package/plugin-src/scripts/slm-launch +15 -0
- package/plugin-src/scripts/slm-launch.bat +17 -0
- package/plugin-src/settings.json +16 -0
- package/plugin-src/skills/slm-cache/SKILL.md +140 -0
- package/plugin-src/skills/slm-compress/SKILL.md +143 -0
- package/plugin-src/skills/slm-graph/SKILL.md +300 -0
- package/plugin-src/skills/slm-recall/SKILL.md +196 -0
- package/plugin-src/skills/slm-remember/SKILL.md +182 -0
- package/plugin-src/skills/slm-session/SKILL.md +207 -0
- package/plugin-src/skills/slm-status/SKILL.md +149 -0
- package/pyproject.toml +6 -2
- package/scripts/__tests__/build-plugin.test.mjs +613 -0
- package/scripts/_savings_math.py +270 -0
- package/scripts/build-plugin.js +742 -0
- package/scripts/dogfood_savings.py +490 -0
- package/scripts/install-skills.ps1 +4 -334
- package/scripts/install-skills.sh +4 -435
- package/scripts/postinstall-interactive.js +0 -27
- package/scripts/postinstall.js +21 -2
- package/src/superlocalmemory/__init__.py +1 -1
- package/src/superlocalmemory/cli/_lazy_init.py +115 -0
- package/src/superlocalmemory/cli/commands.py +348 -39
- package/src/superlocalmemory/cli/main.py +47 -4
- package/src/superlocalmemory/cli/setup_wizard.py +20 -6
- package/src/superlocalmemory/core/config.py +79 -9
- package/src/superlocalmemory/core/embeddings.py +10 -5
- package/src/superlocalmemory/core/engine.py +2 -2
- package/src/superlocalmemory/hooks/claude_code_hooks.py +27 -3
- package/src/superlocalmemory/hooks/portable_kit.py +506 -0
- package/src/superlocalmemory/infra/cloud_backup.py +99 -23
- package/src/superlocalmemory/mcp/cli_fallback.py +602 -0
- package/src/superlocalmemory/mcp/server.py +75 -4
- package/src/superlocalmemory/mcp/tools_code_graph.py +3 -3
- package/src/superlocalmemory/mcp/tools_core.py +12 -4
- package/src/superlocalmemory/optimize/cache/boundary_store.py +25 -6
- package/src/superlocalmemory/optimize/cache/centroid_store.py +27 -4
- package/src/superlocalmemory/optimize/cache/manager.py +92 -6
- package/src/superlocalmemory/optimize/cache/semantic.py +20 -1
- package/src/superlocalmemory/optimize/compress/ccr.py +12 -0
- package/src/superlocalmemory/optimize/compress/router.py +46 -13
- package/src/superlocalmemory/optimize/config/schema.py +6 -0
- package/src/superlocalmemory/optimize/proxy/_helpers.py +111 -8
- package/src/superlocalmemory/optimize/proxy/anthropic_surface.py +14 -4
- package/src/superlocalmemory/optimize/proxy/gemini_surface.py +23 -6
- package/src/superlocalmemory/optimize/proxy/openai_surface.py +10 -4
- package/src/superlocalmemory/optimize/proxy/server.py +11 -0
- package/src/superlocalmemory/optimize/proxy/vertex_surface.py +246 -0
- package/src/superlocalmemory/optimize/storage/db.py +30 -0
- package/src/superlocalmemory/server/recall_serializer.py +3 -1
- package/src/superlocalmemory/server/unified_daemon.py +24 -6
- package/src/superlocalmemory/ui/css/legacy-dashboard.css +18 -0
- package/src/superlocalmemory/ui/css/neural-glass.css +5 -0
- package/src/superlocalmemory/ui/index.html +2 -2
- package/src/superlocalmemory/ui/js/core.js +98 -0
- package/src/superlocalmemory/ui/js/dashboard.js +8 -1
- package/src/superlocalmemory/ui/js/ide-status.js +16 -3
- package/src/superlocalmemory/ui/js/math-health.js +15 -3
- package/src/superlocalmemory/ui/js/optimize.js +18 -2
- package/src/superlocalmemory/ui/js/trust-dashboard.js +10 -1
- package/src/superlocalmemory.egg-info/PKG-INFO +189 -742
- package/src/superlocalmemory.egg-info/SOURCES.txt +6 -9
- package/src/superlocalmemory.egg-info/requires.txt +1 -0
- package/ide/skills/slm-build-graph/SKILL.md +0 -423
- package/ide/skills/slm-list-recent/SKILL.md +0 -348
- package/ide/skills/slm-recall/SKILL.md +0 -326
- package/ide/skills/slm-remember/SKILL.md +0 -194
- package/ide/skills/slm-show-patterns/SKILL.md +0 -224
- package/ide/skills/slm-status/SKILL.md +0 -363
- package/ide/skills/slm-switch-profile/SKILL.md +0 -442
- package/skills/slm-build-graph/SKILL.md +0 -423
- package/skills/slm-list-recent/SKILL.md +0 -348
- package/skills/slm-optimize/README.md +0 -55
- package/skills/slm-optimize/SKILL.md +0 -139
- package/skills/slm-recall/SKILL.md +0 -343
- package/skills/slm-remember/SKILL.md +0 -194
- package/skills/slm-show-patterns/SKILL.md +0 -224
- package/skills/slm-status/SKILL.md +0 -363
- package/skills/slm-switch-profile/SKILL.md +0 -442
- package/src/superlocalmemory/cli/doctor_cmd.py +0 -152
- package/src/superlocalmemory/skills/slm-build-graph/SKILL.md +0 -423
- package/src/superlocalmemory/skills/slm-list-recent/SKILL.md +0 -348
- package/src/superlocalmemory/skills/slm-recall/SKILL.md +0 -343
- package/src/superlocalmemory/skills/slm-remember/SKILL.md +0 -194
- package/src/superlocalmemory/skills/slm-show-patterns/SKILL.md +0 -224
- package/src/superlocalmemory/skills/slm-status/SKILL.md +0 -363
- package/src/superlocalmemory/skills/slm-switch-profile/SKILL.md +0 -442
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: slm-show-patterns
|
|
3
|
-
description: Show what SuperLocalMemory has learned about your preferences, workflow patterns, and project context. Use when the user asks "what have you learned about me?" or wants to see their coding identity patterns. Shows tech preferences, workflow sequences, and engagement health.
|
|
4
|
-
version: "2.7.0"
|
|
5
|
-
license: AGPL-3.0-or-later
|
|
6
|
-
compatibility: "Requires SuperLocalMemory V2.7+ with learning features"
|
|
7
|
-
attribution:
|
|
8
|
-
creator: Varun Pratap Bhardwaj
|
|
9
|
-
role: Solution Architect & Original Creator
|
|
10
|
-
project: SuperLocalMemory V2
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
# SuperLocalMemory: Show Patterns
|
|
14
|
-
|
|
15
|
-
Show what SuperLocalMemory has learned about your preferences, workflow, and coding identity.
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
slm patterns list [threshold]
|
|
21
|
-
slm learning status
|
|
22
|
-
slm engagement
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Example Output
|
|
26
|
-
|
|
27
|
-
### Learned Patterns
|
|
28
|
-
```bash
|
|
29
|
-
$ slm patterns list 0.5
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
**Output:**
|
|
33
|
-
```
|
|
34
|
-
Learned Patterns (confidence >= 0.5)
|
|
35
|
-
=====================================
|
|
36
|
-
|
|
37
|
-
TECH PREFERENCES (cross-project):
|
|
38
|
-
#1 preferred_framework: React confidence: 0.92 (seen in 3 profiles)
|
|
39
|
-
#2 preferred_language: Python confidence: 0.88 (seen in 2 profiles)
|
|
40
|
-
#3 preferred_backend: FastAPI confidence: 0.85 (seen in 2 profiles)
|
|
41
|
-
#4 testing_style: pytest confidence: 0.78 (seen in 1 profile)
|
|
42
|
-
#5 preferred_db: PostgreSQL confidence: 0.71 (seen in 2 profiles)
|
|
43
|
-
|
|
44
|
-
WORKFLOW PATTERNS:
|
|
45
|
-
#6 morning_sequence: recall -> code -> remember frequency: 34
|
|
46
|
-
#7 debug_sequence: recall -> recall -> remember frequency: 18
|
|
47
|
-
#8 review_sequence: list -> recall -> remember frequency: 12
|
|
48
|
-
|
|
49
|
-
PROJECT CONTEXT:
|
|
50
|
-
#9 active_project: SuperLocalMemoryV2 last_seen: 2 hours ago
|
|
51
|
-
#10 active_project: client-dashboard last_seen: 1 day ago
|
|
52
|
-
|
|
53
|
-
Total: 10 patterns (7 high confidence)
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Learning Status
|
|
57
|
-
```bash
|
|
58
|
-
$ slm learning status
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
**Output:**
|
|
62
|
-
```
|
|
63
|
-
SuperLocalMemory v2.7 -- Learning System Status
|
|
64
|
-
==================================================
|
|
65
|
-
LightGBM: installed (4.5.0)
|
|
66
|
-
SciPy: installed (1.14.1)
|
|
67
|
-
ML Ranking: available
|
|
68
|
-
Full Learning: available
|
|
69
|
-
|
|
70
|
-
Feedback signals: 247
|
|
71
|
-
Unique queries: 89
|
|
72
|
-
Patterns learned: 34 (12 high confidence)
|
|
73
|
-
Workflow patterns: 8
|
|
74
|
-
Sources tracked: 4
|
|
75
|
-
Models trained: 2
|
|
76
|
-
Learning DB size: 128 KB
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Engagement Metrics
|
|
80
|
-
```bash
|
|
81
|
-
$ slm engagement
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
**Output:**
|
|
85
|
-
```
|
|
86
|
-
SuperLocalMemory -- Engagement Health
|
|
87
|
-
======================================
|
|
88
|
-
Status: HEALTHY
|
|
89
|
-
|
|
90
|
-
This Week:
|
|
91
|
-
Memories saved: 12
|
|
92
|
-
Recalls performed: 28
|
|
93
|
-
Memories marked useful: 8
|
|
94
|
-
Feedback ratio: 28.6%
|
|
95
|
-
|
|
96
|
-
Trends:
|
|
97
|
-
Recall frequency: increasing (up 15% from last week)
|
|
98
|
-
Save frequency: stable
|
|
99
|
-
Useful feedback: increasing (up 40% from last week)
|
|
100
|
-
|
|
101
|
-
Streaks:
|
|
102
|
-
Current daily streak: 5 days
|
|
103
|
-
Longest streak: 14 days
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## What the Patterns Mean
|
|
107
|
-
|
|
108
|
-
### Tech Preferences
|
|
109
|
-
Cross-project patterns that transfer between profiles. These represent your coding identity -- which frameworks, languages, and tools you consistently choose.
|
|
110
|
-
|
|
111
|
-
**How they are learned:**
|
|
112
|
-
- Extracted from memory content (mentions of frameworks, tools)
|
|
113
|
-
- Weighted by recency and frequency
|
|
114
|
-
- Confidence increases when the same preference appears across multiple profiles
|
|
115
|
-
|
|
116
|
-
**How they help:**
|
|
117
|
-
- When you `recall`, results matching your preferred stack rank higher
|
|
118
|
-
- Your AI tools can reference these to tailor suggestions
|
|
119
|
-
|
|
120
|
-
### Workflow Patterns
|
|
121
|
-
Sequences of actions you repeat. The system learns your work rhythm.
|
|
122
|
-
|
|
123
|
-
**Examples:**
|
|
124
|
-
- `recall -> code -> remember` = "Research, build, document" workflow
|
|
125
|
-
- `recall -> recall -> remember` = "Deep investigation" workflow
|
|
126
|
-
|
|
127
|
-
**How they help:**
|
|
128
|
-
- System predicts what you will need next
|
|
129
|
-
- Can pre-load relevant context based on your current workflow stage
|
|
130
|
-
|
|
131
|
-
### Engagement Health
|
|
132
|
-
Overall system usage metrics (fully local, zero telemetry).
|
|
133
|
-
|
|
134
|
-
**Healthy indicators:**
|
|
135
|
-
- Regular daily usage (streaks)
|
|
136
|
-
- Balanced save/recall ratio
|
|
137
|
-
- Increasing useful feedback
|
|
138
|
-
|
|
139
|
-
**Warning signs:**
|
|
140
|
-
- No recalls for 7+ days = stale memories
|
|
141
|
-
- No saves for 7+ days = not capturing knowledge
|
|
142
|
-
- Zero feedback = system cannot learn your preferences
|
|
143
|
-
|
|
144
|
-
## Correcting Patterns
|
|
145
|
-
|
|
146
|
-
If the system learned something wrong, correct it:
|
|
147
|
-
|
|
148
|
-
```bash
|
|
149
|
-
# See all patterns
|
|
150
|
-
slm patterns list
|
|
151
|
-
|
|
152
|
-
# Correct pattern #3 from "FastAPI" to "Django"
|
|
153
|
-
slm patterns correct 3 Django
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
The correction increases confidence to 1.0 and records the change history.
|
|
157
|
-
|
|
158
|
-
## Options
|
|
159
|
-
|
|
160
|
-
| Command | Description | Use Case |
|
|
161
|
-
|---------|-------------|----------|
|
|
162
|
-
| `slm patterns list` | All patterns (no threshold) | See everything learned |
|
|
163
|
-
| `slm patterns list 0.7` | High confidence only | See reliable patterns |
|
|
164
|
-
| `slm patterns correct <id> <value>` | Fix a wrong pattern | Override incorrect learning |
|
|
165
|
-
| `slm learning status` | System health | Check deps and stats |
|
|
166
|
-
| `slm learning retrain` | Force model retrain | After bulk feedback |
|
|
167
|
-
| `slm learning reset` | Delete all learning data | Fresh start (memories preserved) |
|
|
168
|
-
| `slm engagement` | Usage metrics | Track your engagement health |
|
|
169
|
-
|
|
170
|
-
## Use Cases
|
|
171
|
-
|
|
172
|
-
### 1. "What Have You Learned About Me?"
|
|
173
|
-
```bash
|
|
174
|
-
slm patterns list
|
|
175
|
-
# Shows all preferences, workflows, and project context
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
### 2. Pre-Session Context Loading
|
|
179
|
-
```bash
|
|
180
|
-
slm patterns context
|
|
181
|
-
# Returns structured context for AI tools to consume
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### 3. Onboarding a New AI Tool
|
|
185
|
-
```bash
|
|
186
|
-
slm learning status
|
|
187
|
-
# Verify learning is active, then use your existing memories
|
|
188
|
-
# New tool benefits from all previously learned patterns
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
### 4. Weekly Review
|
|
192
|
-
```bash
|
|
193
|
-
slm engagement
|
|
194
|
-
# Check if you are using your memory system effectively
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
## Requirements
|
|
198
|
-
|
|
199
|
-
- SuperLocalMemory V2.7+
|
|
200
|
-
- Optional: `lightgbm` and `scipy` for ML-powered ranking
|
|
201
|
-
- Works without optional deps (uses rule-based ranking as fallback)
|
|
202
|
-
|
|
203
|
-
## Notes
|
|
204
|
-
|
|
205
|
-
- **Privacy:** All learning is local. Zero telemetry, zero cloud calls.
|
|
206
|
-
- **Separate storage:** Learning data lives in `learning.db`, separate from `memory.db`.
|
|
207
|
-
- **Non-destructive:** `slm learning reset` only deletes learning data, never memories.
|
|
208
|
-
- **Graceful degradation:** If learning deps are missing, core features work normally.
|
|
209
|
-
|
|
210
|
-
## Related Commands
|
|
211
|
-
|
|
212
|
-
- `slm recall` - Search memories (results ranked by learned patterns)
|
|
213
|
-
- `slm useful <id>` - Mark memory as useful (feedback for learning)
|
|
214
|
-
- `slm status` - Overall system status
|
|
215
|
-
- `slm patterns update` - Re-learn patterns from existing memories
|
|
216
|
-
|
|
217
|
-
---
|
|
218
|
-
|
|
219
|
-
**Created by:** [Varun Pratap Bhardwaj](https://github.com/varun369) (Solution Architect)
|
|
220
|
-
**Project:** SuperLocalMemory V2
|
|
221
|
-
**License:** MIT (see [LICENSE](../../LICENSE))
|
|
222
|
-
**Repository:** https://github.com/varun369/SuperLocalMemoryV2
|
|
223
|
-
|
|
224
|
-
*Open source doesn't mean removing credit. Attribution must be preserved per MIT License terms.*
|
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: slm-status
|
|
3
|
-
description: Check SuperLocalMemory system status, health, and statistics. Use when the user wants to know memory count, graph stats, patterns learned, database health, or system diagnostics. Shows comprehensive system health dashboard.
|
|
4
|
-
version: "3.4.23"
|
|
5
|
-
license: AGPL-3.0-or-later
|
|
6
|
-
compatibility: "Requires SuperLocalMemory V2 installed at ~/.claude-memory/"
|
|
7
|
-
attribution:
|
|
8
|
-
creator: Varun Pratap Bhardwaj
|
|
9
|
-
role: Solution Architect & Original Creator
|
|
10
|
-
project: SuperLocalMemory V2
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
# SuperLocalMemory: Status
|
|
14
|
-
|
|
15
|
-
Check system status, health metrics, and statistics for your local memory system.
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
slm status [--verbose] [--check-integrity]
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Example Output
|
|
24
|
-
|
|
25
|
-
### Basic Status
|
|
26
|
-
```bash
|
|
27
|
-
$ slm status
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
**Output:**
|
|
31
|
-
```
|
|
32
|
-
╔══════════════════════════════════════════════════════╗
|
|
33
|
-
║ SuperLocalMemory V2 - System Status ║
|
|
34
|
-
╚══════════════════════════════════════════════════════╝
|
|
35
|
-
|
|
36
|
-
📊 Memory Statistics
|
|
37
|
-
Total Memories: 1,247
|
|
38
|
-
This Month: 143
|
|
39
|
-
This Week: 28
|
|
40
|
-
Today: 5
|
|
41
|
-
|
|
42
|
-
📈 Knowledge Graph
|
|
43
|
-
Nodes (Entities): 892
|
|
44
|
-
Edges (Relationships): 3,456
|
|
45
|
-
Clusters: 47
|
|
46
|
-
Avg Cluster Size: 19 memories
|
|
47
|
-
|
|
48
|
-
🎯 Pattern Learning
|
|
49
|
-
Coding Patterns: 34
|
|
50
|
-
Framework Preferences: React (72%), Vue (18%), Angular (10%)
|
|
51
|
-
Testing Style: TDD (65%), BDD (35%)
|
|
52
|
-
Performance Priority: High (78%)
|
|
53
|
-
|
|
54
|
-
💾 Database Health
|
|
55
|
-
Size: 4.2 MB
|
|
56
|
-
Integrity: ✅ OK
|
|
57
|
-
Last Backup: 2026-02-07 09:15
|
|
58
|
-
Backup Count: 12
|
|
59
|
-
|
|
60
|
-
🔧 Current Profile
|
|
61
|
-
Name: default
|
|
62
|
-
Created: 2026-01-15
|
|
63
|
-
Last Used: 2026-02-07 14:23
|
|
64
|
-
|
|
65
|
-
⚙️ System Info
|
|
66
|
-
Install Path: ~/.claude-memory
|
|
67
|
-
Database: memory.db
|
|
68
|
-
Python Version: 3.11.7
|
|
69
|
-
SQLite Version: 3.43.2
|
|
70
|
-
|
|
71
|
-
✅ Status: HEALTHY
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Verbose Mode
|
|
75
|
-
```bash
|
|
76
|
-
$ slm status --verbose
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
**Additional information:**
|
|
80
|
-
- Recent memory IDs
|
|
81
|
-
- Top entities in graph
|
|
82
|
-
- Pattern confidence scores
|
|
83
|
-
- Database table sizes
|
|
84
|
-
- Index statistics
|
|
85
|
-
|
|
86
|
-
### Integrity Check
|
|
87
|
-
```bash
|
|
88
|
-
$ slm status --check-integrity
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
**Runs full database integrity check:**
|
|
92
|
-
```
|
|
93
|
-
Running integrity check...
|
|
94
|
-
|
|
95
|
-
Database Structure: ✅ OK
|
|
96
|
-
FTS5 Index: ✅ OK
|
|
97
|
-
Graph Consistency: ✅ OK
|
|
98
|
-
Orphaned Nodes: 0 found
|
|
99
|
-
Duplicate Memories: 0 found
|
|
100
|
-
Corrupted Entries: 0 found
|
|
101
|
-
|
|
102
|
-
✅ All checks passed
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
## What This Shows
|
|
106
|
-
|
|
107
|
-
### 1. Memory Statistics
|
|
108
|
-
- **Total:** All memories ever saved
|
|
109
|
-
- **This Month:** Memories added in current month
|
|
110
|
-
- **This Week:** Last 7 days
|
|
111
|
-
- **Today:** Memories added today
|
|
112
|
-
|
|
113
|
-
**Useful for:**
|
|
114
|
-
- Understanding usage patterns
|
|
115
|
-
- Tracking growth
|
|
116
|
-
- Identifying active periods
|
|
117
|
-
|
|
118
|
-
### 2. Knowledge Graph
|
|
119
|
-
- **Nodes:** Unique entities extracted (people, technologies, concepts)
|
|
120
|
-
- **Edges:** Relationships between entities
|
|
121
|
-
- **Clusters:** Auto-discovered topic groups
|
|
122
|
-
- **Avg Cluster Size:** Memories per cluster
|
|
123
|
-
|
|
124
|
-
**Health indicators:**
|
|
125
|
-
- High edges/nodes ratio = well-connected knowledge
|
|
126
|
-
- Many clusters = diverse topics
|
|
127
|
-
- Large clusters = focused work
|
|
128
|
-
|
|
129
|
-
### 3. Pattern Learning
|
|
130
|
-
- **Coding Patterns:** Identified preferences and decisions
|
|
131
|
-
- **Framework Preferences:** Usage distribution
|
|
132
|
-
- **Testing Style:** TDD vs BDD preference
|
|
133
|
-
- **Performance Priority:** How important performance is to you
|
|
134
|
-
|
|
135
|
-
**Based on:**
|
|
136
|
-
- Keywords in memories ("prefer", "use", "avoid")
|
|
137
|
-
- Frequency of mentions
|
|
138
|
-
- Importance levels
|
|
139
|
-
- Recency (recent patterns weighted higher)
|
|
140
|
-
|
|
141
|
-
### 4. Database Health
|
|
142
|
-
- **Size:** Database file size
|
|
143
|
-
- **Integrity:** PRAGMA integrity_check result
|
|
144
|
-
- **Last Backup:** Most recent backup timestamp
|
|
145
|
-
- **Backup Count:** Total backups available
|
|
146
|
-
|
|
147
|
-
**Warning signs:**
|
|
148
|
-
- ❌ Integrity: NOT OK → Database corrupted
|
|
149
|
-
- ⚠️ Size > 100MB → Consider archiving old memories
|
|
150
|
-
- ⚠️ No backups → Enable backup system
|
|
151
|
-
|
|
152
|
-
### 5. Current Profile
|
|
153
|
-
- **Name:** Active profile (default, work, personal, etc.)
|
|
154
|
-
- **Created:** When profile was created
|
|
155
|
-
- **Last Used:** Last access timestamp
|
|
156
|
-
|
|
157
|
-
**Profiles allow:**
|
|
158
|
-
- Profile isolation
|
|
159
|
-
- Context switching
|
|
160
|
-
- Separate memory spaces
|
|
161
|
-
|
|
162
|
-
### 6. System Info
|
|
163
|
-
- **Install Path:** Where SuperLocalMemory is installed
|
|
164
|
-
- **Database:** Database filename
|
|
165
|
-
- **Python Version:** Python interpreter version
|
|
166
|
-
- **SQLite Version:** SQLite engine version
|
|
167
|
-
|
|
168
|
-
## Options
|
|
169
|
-
|
|
170
|
-
| Option | Description | Use Case |
|
|
171
|
-
|--------|-------------|----------|
|
|
172
|
-
| `--verbose` | Show detailed stats | Debugging, analysis |
|
|
173
|
-
| `--check-integrity` | Run full DB check | Troubleshooting |
|
|
174
|
-
| `--format json` | JSON output | Scripting |
|
|
175
|
-
| `--format text` | Human-readable (default) | Terminal use |
|
|
176
|
-
|
|
177
|
-
## Use Cases
|
|
178
|
-
|
|
179
|
-
### 1. Health Check Before Important Work
|
|
180
|
-
```bash
|
|
181
|
-
slm status --check-integrity
|
|
182
|
-
# Ensure DB is healthy before big import
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
### 2. Understanding Memory Usage
|
|
186
|
-
```bash
|
|
187
|
-
slm status
|
|
188
|
-
# "Do I have enough memories for pattern learning?"
|
|
189
|
-
# (Need 20+ for basic patterns, 50+ for advanced)
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
### 3. Performance Monitoring
|
|
193
|
-
```bash
|
|
194
|
-
slm status --verbose
|
|
195
|
-
# Check graph stats, optimize if needed
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
### 4. Backup Verification
|
|
199
|
-
```bash
|
|
200
|
-
slm status | grep "Last Backup"
|
|
201
|
-
# Ensure recent backup exists
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
### 5. Profile Switching Context
|
|
205
|
-
```bash
|
|
206
|
-
# Before switching
|
|
207
|
-
slm status
|
|
208
|
-
# Note: "Current Profile: work"
|
|
209
|
-
|
|
210
|
-
slm switch-profile personal
|
|
211
|
-
|
|
212
|
-
slm status
|
|
213
|
-
# Note: "Current Profile: personal"
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
## Advanced Usage
|
|
217
|
-
|
|
218
|
-
### Scripting & Automation
|
|
219
|
-
|
|
220
|
-
**Daily health check (cron job):**
|
|
221
|
-
```bash
|
|
222
|
-
#!/bin/bash
|
|
223
|
-
# Daily at 9 AM
|
|
224
|
-
|
|
225
|
-
status=$(slm status --check-integrity)
|
|
226
|
-
if echo "$status" | grep -q "NOT OK"; then
|
|
227
|
-
echo "SuperLocalMemory: Integrity check FAILED" | mail -s "Alert" you@example.com
|
|
228
|
-
fi
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
**Monitoring script:**
|
|
232
|
-
```bash
|
|
233
|
-
#!/bin/bash
|
|
234
|
-
# Monitor memory growth
|
|
235
|
-
|
|
236
|
-
count=$(slm status | grep "Total Memories:" | awk '{print $3}' | tr -d ',')
|
|
237
|
-
echo "$(date),${count}" >> memory-growth.csv
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
**JSON output for dashboards:**
|
|
241
|
-
```bash
|
|
242
|
-
slm status --format json > status.json
|
|
243
|
-
# Parse with jq, send to monitoring system
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
### Performance Indicators
|
|
247
|
-
|
|
248
|
-
**Good indicators:**
|
|
249
|
-
- Graph nodes > 100 → Rich knowledge base
|
|
250
|
-
- Edges/nodes ratio > 2 → Well-connected
|
|
251
|
-
- Patterns learned > 10 → AI understands your style
|
|
252
|
-
- Integrity: OK → Database healthy
|
|
253
|
-
|
|
254
|
-
**Warning signs:**
|
|
255
|
-
- Database size > 50MB but <100 memories → Possible issue
|
|
256
|
-
- Backup count: 0 → No disaster recovery
|
|
257
|
-
- Last used: >30 days ago → Stale data
|
|
258
|
-
|
|
259
|
-
## Troubleshooting
|
|
260
|
-
|
|
261
|
-
### "Status command hangs"
|
|
262
|
-
**Cause:** Database locked by another process
|
|
263
|
-
|
|
264
|
-
**Solution:**
|
|
265
|
-
```bash
|
|
266
|
-
# Check for locks
|
|
267
|
-
lsof ~/.claude-memory/memory.db
|
|
268
|
-
|
|
269
|
-
# Kill hanging processes
|
|
270
|
-
killall python3
|
|
271
|
-
|
|
272
|
-
# Try again
|
|
273
|
-
slm status
|
|
274
|
-
```
|
|
275
|
-
|
|
276
|
-
### "Integrity check fails"
|
|
277
|
-
**Cause:** Database corruption
|
|
278
|
-
|
|
279
|
-
**Solution:**
|
|
280
|
-
```bash
|
|
281
|
-
# Restore from backup
|
|
282
|
-
cp ~/.claude-memory/backups/memory.db.backup.* ~/.claude-memory/memory.db
|
|
283
|
-
|
|
284
|
-
# Verify
|
|
285
|
-
slm status --check-integrity
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
### "Pattern stats missing"
|
|
289
|
-
**Cause:** Need more memories (minimum 20)
|
|
290
|
-
|
|
291
|
-
**Solution:**
|
|
292
|
-
```bash
|
|
293
|
-
# Check memory count
|
|
294
|
-
slm status | grep "Total Memories"
|
|
295
|
-
|
|
296
|
-
# Add more memories
|
|
297
|
-
slm remember "Prefer React hooks over classes"
|
|
298
|
-
# ... add 20+ memories ...
|
|
299
|
-
|
|
300
|
-
# Rebuild patterns
|
|
301
|
-
slm build-graph
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
## Output Interpretation
|
|
305
|
-
|
|
306
|
-
### Status: HEALTHY
|
|
307
|
-
✅ All systems operational
|
|
308
|
-
- Database intact
|
|
309
|
-
- Graph built
|
|
310
|
-
- Patterns learned
|
|
311
|
-
- Backups available
|
|
312
|
-
|
|
313
|
-
### Status: WARNING
|
|
314
|
-
⚠️ Minor issues detected
|
|
315
|
-
- Old backups
|
|
316
|
-
- Large database
|
|
317
|
-
- Few patterns learned
|
|
318
|
-
|
|
319
|
-
**Action:** Review verbose output
|
|
320
|
-
|
|
321
|
-
### Status: ERROR
|
|
322
|
-
❌ Critical issues
|
|
323
|
-
- Database corrupted
|
|
324
|
-
- Integrity check failed
|
|
325
|
-
- No accessible data
|
|
326
|
-
|
|
327
|
-
**Action:** Restore from backup immediately
|
|
328
|
-
|
|
329
|
-
## Performance Benchmarks
|
|
330
|
-
|
|
331
|
-
| Command | Typical Time | Notes |
|
|
332
|
-
|---------|-------------|-------|
|
|
333
|
-
| `slm status` | ~200ms | Fast, lightweight |
|
|
334
|
-
| `slm status --verbose` | ~500ms | More data fetching |
|
|
335
|
-
| `slm status --check-integrity` | ~2s | Full DB scan |
|
|
336
|
-
|
|
337
|
-
**For large databases (10,000+ memories):**
|
|
338
|
-
- Basic status: ~500ms
|
|
339
|
-
- Verbose: ~1.5s
|
|
340
|
-
- Integrity check: ~10s
|
|
341
|
-
|
|
342
|
-
## Notes
|
|
343
|
-
|
|
344
|
-
- **Non-destructive:** Status check never modifies data
|
|
345
|
-
- **Real-time:** Shows current state (not cached)
|
|
346
|
-
- **Cross-tool:** Same status from all AI tools
|
|
347
|
-
- **Privacy:** All checks local, no external calls
|
|
348
|
-
|
|
349
|
-
## Related Commands
|
|
350
|
-
|
|
351
|
-
- `slm list` - List recent memories
|
|
352
|
-
- `slm build-graph` - Rebuild knowledge graph
|
|
353
|
-
- `slm switch-profile` - Switch memory profile
|
|
354
|
-
- `slm recall` - Search memories
|
|
355
|
-
|
|
356
|
-
---
|
|
357
|
-
|
|
358
|
-
**Created by:** [Varun Pratap Bhardwaj](https://github.com/varun369) (Solution Architect)
|
|
359
|
-
**Project:** SuperLocalMemory V2
|
|
360
|
-
**License:** MIT (see [LICENSE](../../LICENSE))
|
|
361
|
-
**Repository:** https://github.com/varun369/SuperLocalMemoryV2
|
|
362
|
-
|
|
363
|
-
*Open source doesn't mean removing credit. Attribution must be preserved per MIT License terms.*
|