@memclaw/memclaw 0.9.10 → 0.9.13

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.
@@ -1,75 +0,0 @@
1
- # Maintenance Guide
2
-
3
- MemClaw automatically maintains data health through scheduled tasks and provides tools for manual intervention when needed.
4
-
5
- ## Automatic Maintenance
6
-
7
- **The plugin automatically registers a Cron Job that runs every 3 hours**, executing:
8
-
9
- | Command | Purpose |
10
- |---------|---------|
11
- | `vector prune` | Remove vectors whose source files no longer exist |
12
- | `vector reindex` | Rebuild vector index and remove stale entries |
13
- | `layers ensure-all` | Generate missing L0/L1 layer files |
14
-
15
- No manual setup required. The job is registered when the plugin starts.
16
-
17
- ## Manual Maintenance Tool
18
-
19
- Use `cortex_maintenance` tool to run maintenance on demand:
20
-
21
- ```json
22
- // Full maintenance
23
- { "dryRun": false }
24
-
25
- // Preview changes without executing
26
- { "dryRun": true }
27
-
28
- // Run specific commands only
29
- { "commands": ["prune", "reindex"] }
30
- ```
31
-
32
- **When to run manually:**
33
- - Search results seem incomplete or stale
34
- - After recovering from a crash or data corruption
35
- - When disk space cleanup is needed
36
-
37
- ## Diagnostic Commands
38
-
39
- ### Check System Health
40
-
41
- ```bash
42
- cortex-mem-cli --config config.toml --tenant tenant_claw stats
43
- ```
44
-
45
- ### Check Layer Status
46
-
47
- ```bash
48
- cortex-mem-cli --config config.toml --tenant tenant_claw layers status
49
- ```
50
-
51
- Shows how many directories have L0/L1 layers vs missing.
52
-
53
- ### Check Vector Index Status
54
-
55
- ```bash
56
- cortex-mem-cli --config config.toml --tenant tenant_claw vector status
57
- ```
58
-
59
- Shows total vectors and stale entries.
60
-
61
- ## Quick Fix Flow
62
-
63
- 1. **Search not working well?** → Check `layers status` and `vector status`
64
- 2. **Missing L0/L1 layers?** → Run `layers ensure-all`
65
- 3. **Stale vectors detected?** → Run `vector reindex`
66
- 4. **Still having issues?** → Run `vector prune`
67
-
68
- ## Troubleshooting
69
-
70
- | Issue | Solution |
71
- |-------|----------|
72
- | CLI not found | Ensure `@memclaw/bin-{platform}` is installed |
73
- | Connection refused | Check cortex-mem-service at `localhost:8085` |
74
- | Qdrant issues | Verify Qdrant at `localhost:6333` |
75
- | Layer generation fails | Check LLM API key in config.toml |
File without changes
File without changes