Dream Cycle
/install dream-cycle
Dream Cycle Skill
Based on Ray Fernando's dream cycle concept for OpenClaw memory management.
Overview
The dream cycle is a nightly process where the agent:
- Dreams (2-4 AM): Reviews memories, connects dots, prunes bloat
- Briefs (7-8 AM): Delivers a morning summary to the user
This keeps Tier 1 memory lightweight while maintaining searchability via QMD.
Three-Tier Memory System
| Tier | Cost | What's Here |
|---|---|---|
| Tier 1 | ~600 tokens/turn | AGENTS.md, SOUL.md, USER.md — core identity |
| Tier 2 | 0 tokens | Memory files indexed via QMD — search on demand |
| Tier 3 | Tool tokens only | Full disk reads — rarely needed |
Goal: Keep AGENTS.md under 2,000 bytes, MEMORY.md under 1,500 bytes.
Templates
Morning Brief Template
🌅 **Morning Brief** - {date}
**Today:** {current tasks/goals}
**Recent Activityy:**
- {esterday's summary from memory}
**Patterns Noticed:**
- {any}
**Suggested recurring themes Focus:**
- {recommendations for the day}
**Memory Stats:**
- AGENTS.md: {size} bytes
- MEMORY.md: {size} bytes
- Indexed chunks: {count}
Dream Audit Report Template
🌙 **Dream Cycle Audit** - {date}
**Files Analyzed:**
- AGENTS.md: {size} bytes → {recommendation}
- MEMORY.md: {size} bytes → {recommendation}
- USER.md: {size} bytes → {recommendation}
**Bloat Detected:**
- {list of bloated sections}
**Actions Taken:**
- {list of optimizations applied}
**QMD Index Status:**
- {indexed files count} files indexed
- {total chunks} chunks
Cron Setup
Dream Job (Nightly)
cron: "0 3 * * *"
mode: run
delivery: none
model: {default or lightweight}
Morning Brief Job
cron: "0 7 * * *"
mode: session
delivery: announce
channel: {preferred channel}
Usage
- First Run: Create the skill files and cron jobs
- Nightly: Agent silently reviews memories, optimizes files
- Morning: User receives brief summary
Commands
dream now— Run dream cycle immediatelydream audit— Audit memory files without changesdream brief— Generate morning brief without full cycledream status— Show current memory stats
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install dream-cycle - After installation, invoke the skill by name or use
/dream-cycle - Provide required inputs per the skill's parameter spec and get structured output
What is Dream Cycle?
Implement a nightly "dream cycle" for OpenClaw agents that: - Reviews and consolidates memory at night - Cleans up bloated workspace files - Prepares a morni... It is an AI Agent Skill for Claude Code / OpenClaw, with 421 downloads so far.
How do I install Dream Cycle?
Run "/install dream-cycle" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Dream Cycle free?
Yes, Dream Cycle is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Dream Cycle support?
Dream Cycle is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Dream Cycle?
It is built and maintained by imjohnathan (@imjohnathanblog-spec); the current version is v1.0.1.