openclaw-memory-resilience
Installation
SKILL.md
OpenClaw Memory Resilience
Covers the two highest-impact layers of memory durability for OpenClaw agents.
The Four Memory Layers (quick reference)
| Layer | What it is | Survives compaction? |
|---|---|---|
| Bootstrap files (SOUL.md, AGENTS.md, etc.) | Injected from disk at every session start | Yes — reloaded from disk |
| Session transcript (JSONL on disk) | Conversation history | Lossy — summarized on compaction |
| LLM context window | What the model currently sees | No — fixed size, overflows |
| Retrieval index (memory_search / QMD) | Searchable index over memory files | Yes — rebuilt from files |
Core rule: If it's not written to a file, it doesn't exist after compaction.