Memory Sleep — Lightweight Consolidation
/install memory-sleep
\r \r
Sleep — Lightweight Memory Consolidation for OpenClaw\r
\r
memory-sleep is a small, conservative skill for agents that keep:\r
- daily notes in
memory/YYYY-MM-DD.md\r - long-term knowledge in
MEMORY.md\r \r It does not introduce extra indexes, dashboards, archives, or custom memory schemas.\r Its job is simple: keepMEMORY.mdfresh while daily files remain raw journals.\r \r
Use When\r
\r
- User says
dream\r - User asks to consolidate memory\r
- A nightly cron runs the skill\r
- Daily memory files are piling up and
MEMORY.mdis getting stale\r \r
Goals\r
\r
- Keep the existing OpenClaw-style memory structure\r
- Distill durable facts from recent journals\r
- Correct stale information in
MEMORY.md\r - Avoid over-editing or inventing new structure\r \r
Inputs\r
\r
MEMORY.md\rmemory/YYYY-MM-DD.mdfiles\r \r
Outputs\r
\r
- Updated
MEMORY.md\r - Optional short run note appended to today's daily file\r \r
Consolidation Flow\r
\r
1. Orient\r
\r
- Read
MEMORY.md\r - List files in
memory/\r - Focus on recent daily files first\r \r
2. Scan Recent Daily Files\r
\r Default window: last 7 days.\r \r Extract only durable items such as:\r
- preferences\r
- decisions\r
- recurring facts\r
- important project context\r
- corrections to stale memory\r \r Ignore or down-rank:\r
- routine acknowledgements\r
- temporary chatter\r
- one-off noise with no lasting value\r \r
3. Merge Conservatively into MEMORY.md\r
\r Use surgical edits only.\r \r Allowed operations:\r
- Add new durable facts\r
- Correct stale facts with newer confirmed info\r
- Deduplicate overlapping entries\r
- Prune clearly obsolete items when confidence is high\r
- Absolutize relative dates where useful\r \r Do not:\r
- rewrite the whole file unnecessarily\r
- create a new memory system\r
- add bureaucratic structure unless the file already uses it\r \r
4. Optional Journal Marking\r
\r For older files already consolidated, optionally prepend a short HTML comment such as:\r \r
\x3C!-- consolidated to MEMORY.md on YYYY-MM-DD -->\r
```\r
\r
Never delete journal files.\r
\r
### 5. Report Briefly\r
\r
Return a short summary like:\r
\r
```text\r
🌙 Dream complete\r
- Scanned N daily files\r
- MEMORY.md: +N added / ~N corrected / -N pruned\r
```\r
\r
## Rules\r
\r
- Prefer the existing workspace memory architecture\r
- `MEMORY.md` is the primary long-term memory output\r
- Daily files remain journals, not databases\r
- Be conservative when removing information\r
- Avoid leaking secrets into reports or memory summaries\r
- If logging the run, keep it short\r
\r
## Recommended Cron\r
\r
Nightly example:\r
\r
```text\r
0 3 * * *\r
```\r
\r
Example job message:\r
\r
```text\r
Execute dream skill: consolidate memory\r
```\r
\r
## Design Principle\r
\r
This skill is intentionally minimal.\r
\r
It is for users who want:\r
- lightweight consolidation\r
- compatibility with default OpenClaw memory habits\r
- no imposed sidecar files unless they choose to add them later\r
\r
Think of it as a careful editor, not a memory framework.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install memory-sleep - After installation, invoke the skill by name or use
/memory-sleep - Provide required inputs per the skill's parameter spec and get structured output
What is Memory Sleep — Lightweight Consolidation?
Lightweight memory consolidation for OpenClaw agents. Reviews recent daily memory files (`memory/*.md`), extracts durable knowledge, and merges it into `MEMO... It is an AI Agent Skill for Claude Code / OpenClaw, with 128 downloads so far.
How do I install Memory Sleep — Lightweight Consolidation?
Run "/install memory-sleep" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Memory Sleep — Lightweight Consolidation free?
Yes, Memory Sleep — Lightweight Consolidation is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Memory Sleep — Lightweight Consolidation support?
Memory Sleep — Lightweight Consolidation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Memory Sleep — Lightweight Consolidation?
It is built and maintained by Ivan Balukov (@balukov); the current version is v1.0.0.