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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install memory-sleep - 安装完成后,直接呼叫该 Skill 的名称或使用
/memory-sleep触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 128 次。
如何安装 Memory Sleep — Lightweight Consolidation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install memory-sleep」即可一键安装,无需额外配置。
Memory Sleep — Lightweight Consolidation 是免费的吗?
是的,Memory Sleep — Lightweight Consolidation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Memory Sleep — Lightweight Consolidation 支持哪些平台?
Memory Sleep — Lightweight Consolidation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Memory Sleep — Lightweight Consolidation?
由 Ivan Balukov(@balukov)开发并维护,当前版本 v1.0.0。