Install
openclaw skills install anti-amnesiaComplete anti-amnesia system for OpenClaw agents. Prevents context loss across sessions with structured state files, automatic session saving, health monitoring, and decision tracking. Your agent wakes up knowing everything — every time.
openclaw skills install anti-amnesiaYour OpenClaw agent forgets everything between sessions. This skill fixes that.
/new or /reset. Zero manual work.memory/YYYY-MM-DD.md files capture everything that happens each day.Add to your ~/.openclaw/openclaw.json under hooks:
{
"hooks": {
"session-memory": {
"enabled": true,
"messages": 9999,
"path": "memory/"
}
}
}
Copy the templates from this skill's templates/ folder to your workspace:
templates/STATE.md → workspace/STATE.md
templates/HEARTBEAT.md → workspace/HEARTBEAT.md
Edit STATE.md with your actual projects and decisions.
Add to your AGENTS.md session start protocol:
## Every Session — Mandatory
1. Read `STATE.md` — current world state
2. Read `memory/YYYY-MM-DD.md` (today) — if missing, create it
3. Read `MEMORY.md` — long-term memory
mkdir -p workspace/memory
STATE.md → What's happening now
memory/today.md → What happened today
MEMORY.md → What happened before
1. Read STATE.md
2. Check cron health (consecutiveErrors > 0 → alert)
3. Check critical processes (are they running?)
4. Read income-tracker.md (if night shift)
5. Write everything to memory/today.md
Decision made in chat → Write to file IMMEDIATELY
No "I'll remember that" — files only
If it's not in a file, it didn't happen.
Mental notes don't survive session restarts. Files do. Every decision, every status change, every important conversation — write it down in the same response.
| File | Purpose | When to Read |
|---|---|---|
STATE.md | Current world state | Every session + heartbeat |
MEMORY.md | Long-term curated memory | Every session |
memory/YYYY-MM-DD.md | Daily journal | Every session + heartbeat |
HEARTBEAT.md | Wake-up protocol | Every heartbeat |
AGENTS.md | Agent behavior rules | On first load |
Most OpenClaw agents lose context because they rely on conversation history alone. When context resets, everything is gone.
This system creates external persistent memory — files that survive any reset. Your agent reads them on startup and knows everything within 30 seconds.
Tested in production: 24/7 autonomous trading system, 20+ cron jobs, multi-agent coordination — zero context loss over weeks of operation.