Install
openclaw skills install @mozz0/josh-learns๐ง Multi-layer memory system: fresh layer, mesh graph, auto-log, cross-layer search, compliance check, PDF vault archive
openclaw skills install @mozz0/josh-learnsMulti-layer memory system for LLM agents. Fresh daily layer, mesh graph indexing, auto-logging, cross-layer search, compliance checks, and a PDF vault that survives anything.
Built for OpenClaw. Works with any agent that can run Python.
| Layer | File | Purpose |
|---|---|---|
| Fresh | memory/fresh/today.md | Daily notes, 5-day rotation |
| Mesh | memory/mesh.json | Graph nodes + search index |
| Log | scripts/auto_log | Auto-log every interaction |
| Search | scripts/memory_search | Cross-layer search (fresh โ daily โ mesh โ raw โ long-term) |
| Vault | memory/pdf-vault/ | Verbatim PDF archive of daily logs + NAS sync |
mem-bridge init # Rotate fresh layer, create today.md
auto_log "msg" "reply" # Log an interaction
memory_search "query" # Search all memory layers
pdf-memory # Archive new daily logs as PDFs (incremental)
vault-push # Sync the PDF vault to the NAS (LAN + Tailscale)
| Tool | Source |
|---|---|
mem-bridge | memory/bridge.py โ fresh-layer rotation + checkpoint management |
auto_log | scripts/auto_log.py โ interaction logger |
memory_search | scripts/memory_search.py โ multi-layer search across all memory stores |
pdf-memory | scripts/pdf-memory.py โ daily logs โ verbatim PDFs, incremental, Unicode-safe |
vault-push | scripts/pdf-vault-nas-push.sh โ rsync the vault to the NAS, never deletes |
mem-bridge init # rotates fresh layers, creates today.md
cat memory/fresh/today.md # what is happening RIGHT NOW
cat memory/fresh/yesterday.md
cat memory/$(date +%Y-%m-%d).md # today's log
Always run this before answering. The agent should never answer from live context alone; memory files are the source of truth.
memory_search "keywords from the user's message" # BEFORE answering
auto_log "what the user said" "what you replied" # AFTER answering
Cost: $0 (grep-based, no API calls). If results are found, read the full source file, not just the snippet.
pdf-memory # archive today's log to a verbatim PDF (incremental, skips done)
vault-push # sync the vault to the NAS (tries LAN, then Tailscale)
The PDF vault is the unbreakable layer. Text files work, PDFs endure.
memory/pdf-vault/README.md first โ it contains the reboot instructions.memory/pdf-vault/YYYY-MM/).Sessions can lose context at compaction. Defense layers:
session-dumper cron runs every 5 minutes, appending the live session to memory/YYYY-MM-DD.md (no tokens burned, no interruption).The working files are the everyday memory: grep-able, $0, instant. The PDF vault is the archive failsafe: every daily log rendered to a verbatim PDF (Unicode-safe, Greek included), stored under memory/pdf-vault/, and synced to the NAS. If everything else is lost, the vault README tells the restored agent exactly how to read its way back.
Survived a full system format and a 4-hour recovery with every memory intact: 96 daily logs, 69 mesh nodes, 30 secrets. This is the memory system that an AI and its human rebuilt their whole partnership on.
Put bridge.py in memory/ and scripts in scripts/ of your agent workspace. Symlink or add to PATH:
ln -s $(pwd)/scripts/* ~/.local/bin/
ln -s $(pwd)/memory/bridge.py ~/.local/bin/mem-bridge
On session start, run:
mem-bridge init
https://github.com/mozz0/MeshMorize
Made by mozz0 ยท Released under MIT-0