Audit and clean OpenClaw memory files. Removes stale facts, contradicted entries, and outdated context from council_memory.json, MEMORY.md, and daily memory files. Use when memory has accumulated junk, agents are citing old numbers, or before a major project phase change. Run by Samael on Sunday cron.
Keeps agent memory lean, accurate, and contradiction-free.
council_memory.json) — stale facts, outdated numbersmemory/YYYY-MM-DD.md) — files older than 30 days get archived~/self-improving/memory.md) — demote unused patterns# Show all facts in shared memory
curl -s https://64-227-110-70.sslip.io/council-api/council-memory \
-H "x-council-token: TOKEN" | python3 -m json.tool
# Show all unresolved contradictions
curl -s https://64-227-110-70.sslip.io/council-api/contradictions/all/unresolved \
-H "x-council-token: TOKEN" | python3 -m json.tool
Samael reviews facts older than 14 days and asks Lucy to confirm or archive them.
Tag for removal: [MEMORY_ARCHIVE: entity_name] in any agent response.
# Files older than 30 days go to memory/archive/
find ~/.openclaw/workspace/memory/ -name "*.md" -mtime +30 \
-exec mv {} ~/.openclaw/workspace/memory/archive/ \;
Review ~/self-improving/memory.md — entries unused 30 days move to domains/ or archive/.
Every Sunday 20:00 UTC, Samael runs:
council_memory.json[PERMANENT]Control Philips Hue lights and scenes via the OpenHue CLI.