Memory Dream
/install openclaw-memory-dream
memory-dream
Auto-consolidates agent memory files after sessions — like REM sleep for AI agents.
What it does
As an AI agent accumulates sessions, its memory files can get cluttered: vague date references ("yesterday", "last week"), stale context that no longer applies, and contradictions where newer information superseded older entries but both remain.
memory-dream runs automatically in the background once enough sessions have passed and enough time has elapsed. It uses the configured LLM to quietly clean up memory files, resolving contradictions, replacing vague date references with actual dates, removing stale entries, and preserving everything that still matters.
Without it: MEMORY.md grows unbounded until it gets truncated on load.
With it: memory stays tight, relevant, and useful automatically.
Works standalone — no other plugins required. Optionally uses lossless-claw session summaries for richer consolidation context if that plugin is also installed.
Installation
openclaw plugins install @mitchelldavis44/openclaw-memory-dream
Configuration (openclaw.json)
{
"plugins": {
"entries": {
"memory-dream": {
"enabled": true,
"config": {
"minSessions": 5,
"minHours": 24,
"memoryFiles": ["MEMORY.md"],
"model": "claude-haiku-4-5"
}
}
}
}
}
| Option | Default | Description |
|---|---|---|
minSessions |
5 |
Session boundaries since last consolidation before triggering |
minHours |
24 |
Hours since last consolidation before triggering |
memoryFiles |
["MEMORY.md"] |
Memory files to consolidate (relative to workspace root) |
model |
(agent default) | LLM used for consolidation (cheap model recommended) |
Both conditions must be met before consolidation triggers.
Session detection in persistent channels: In DM-style channels where there's no discrete session lifecycle (e.g. Slack DMs), the plugin detects session boundaries via inactivity gaps — a gap of 30+ minutes between messages counts as a new session.
Status tool
memory_dream_status
Returns session count, last run time, next trigger estimate, and whether consolidation is currently running.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install openclaw-memory-dream - After installation, invoke the skill by name or use
/openclaw-memory-dream - Provide required inputs per the skill's parameter spec and get structured output
What is Memory Dream?
Auto-consolidates agent memory files after sessions — like REM sleep for AI agents. Prevents MEMORY.md from growing unbounded by using an LLM to prune stale... It is an AI Agent Skill for Claude Code / OpenClaw, with 218 downloads so far.
How do I install Memory Dream?
Run "/install openclaw-memory-dream" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Memory Dream free?
Yes, Memory Dream is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Memory Dream support?
Memory Dream is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Memory Dream?
It is built and maintained by Mitch Davis (@mitchelldavis44); the current version is v1.1.0.