Install
openclaw skills install @mirza42/savemaintenanceDeterministic reconciliation of conversation-log.md, FTS5 index, and saved conversations — one-shot fix or maintenance run
openclaw skills install @mirza42/savemaintenanceOne-shot tool for keeping the three-tier memory system coherent. Cross-references the conversation log against files on disk, rebuilds the FTS5 index, runs a full audit. Zero external dependencies.
The three-tier memory system (log → FTS5 index → files) is designed for consistency, but things drift:
savemaintenance is the repair pipeline for all of the above. Run it weekly, or after any bulk operation on saved conversations.
# Copy the pipeline to the workspace
cp -r {baseDir}/. ~/.openclaw/workspace/savemaintenance/
# Dry run first — see what would change
cd ~/.openclaw/workspace/savemaintenance && python3 full-reconcile.py --dry
# Full repair: backup → reconcile → rebuild → audit
./run.sh
# Or run individual steps
python3 full-reconcile.py --step backup
python3 full-reconcile.py --step reconcile
python3 full-reconcile.py --step rebuild
python3 full-reconcile.py --step audit
Copies conversation-log.md and topic-index.json to timestamped backups.
.md file no longer exists.md files not in the log (reads # Title from file content)Regenerates the FTS5 index at /dev/shm/memory-index.db from scratch.
Reports: orphan entries, missing files, index coherence, directory hygiene.
| File | Purpose |
|---|---|
run.sh | Entry point — snapshot then full reconcile |
full-reconcile.py | Core pipeline (backup → reconcile → rebuild → audit) |
snapshot.py | Manual snapshot/restore tool |
README.md | Full documentation |
python3 snapshot.py # Auto-timestamped snapshot
python3 snapshot.py take <tag> # Named snapshot
python3 snapshot.py list # List all snapshots
Snapshots go to backups/ by default.
| Path | Default |
|---|---|
| Saved conversations | ~/.openclaw/workspace/saved/ |
| Conversation log | ~/.openclaw/workspace/saved/conversation-log.md |
| Memory index | /dev/shm/memory-index.db |
| Backup dir | ~/.openclaw/workspace/savemaintenance/backups/ |
Set OPENCLAW_WORKSPACE env var to override ~/.openclaw/workspace.
save skill from ClawHub (for memory-index.py)