Install
openclaw skills install autodreamAutomatic memory consolidation for OpenClaw agents. Analyzes daily memory files, removes duplicates, prunes stale entries, normalizes dates, and builds a clean MEMORY.md index. Like REM sleep for AI memory. Triggers on "consolidate memory", "dream", "clean up memory", "organize memory", "memory maintenance".
openclaw skills install autodreamConsolidates scattered daily memory files into a clean, organized MEMORY.md.
# Check if consolidation is needed
node /path/to/openclaw-autodream/bin/autodream.js {{workspace}} --stats
# Run consolidation (dry run first!)
node /path/to/openclaw-autodream/bin/autodream.js {{workspace}} --dry-run --verbose
# Run for real
node /path/to/openclaw-autodream/bin/autodream.js {{workspace}} --verbose
# Force full reconsolidation
node /path/to/openclaw-autodream/bin/autodream.js {{workspace}} --force --verbose
Replace {{workspace}} with your actual workspace path (e.g., ~/.openclaw/workspace).
# npm install -g openclaw-autodream
autodream ~/.openclaw/workspace --stats
autodream ~/.openclaw/workspace --verbose
autodream ~/.openclaw/workspace --dry-run
MEMORY.md (if any)memory/ for daily filesMEMORY.md with category sectionsMEMORY.md to memory/.autodream-backups/Add to your HEARTBEAT.md:
## Memory Consolidation Check
- Run `autodream <workspace> --stats` to check if consolidation is needed
- If "Would trigger: ✅ yes", run `autodream <workspace> --verbose`
- Only run consolidation during quiet hours (not while human is actively chatting)
Create .autodream.json in workspace root to customize:
{
"maxLines": 200,
"lookbackDays": 30,
"categories": [
"People & Relationships",
"Projects & Work",
"Preferences & Style",
"Technical Decisions",
"Important Events",
"Lessons Learned"
],
"preservePatterns": ["⚠️", "IMPORTANT", "NEVER", "ALWAYS"],
"triggerThreshold": {
"minHoursSinceLastRun": 24,
"minNewFiles": 5
}
}
MEMORY.md before modifyingmemory/.autodream-backups/memory/.autodream-reports/--dry-run# Long-Term Memory
<!-- Last consolidated: 2026-03-25T17:00:00Z | Files processed: 31 | Entries: 47 -->
## People & Relationships
- **Bob Smith** — Team Lead test run passed (2026-03-25)
## Projects & Work
- **Acme Corp** — Q1 review: 30.1% margin, targeting 40% (2026-03-25)
## Preferences & Style
- Values precision and factual accuracy (2026-02-01)
## Technical Decisions
- Using Supabase + Vercel for Project Alpha (2026-03-18)
## Lessons Learned
- Always backup before modifying production data (2026-02-15)