Dream Cycle

v1.0.1

Implement a nightly "dream cycle" for OpenClaw agents that: - Reviews and consolidates memory at night - Cleans up bloated workspace files - Prepares a morni...

0· 395·4 current·4 all-time
byimjohnathan@imjohnathanblog-spec
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match what the provided scripts do: audit workspace files and generate a morning brief from $HOME/.openclaw/workspace (or OPENCLAW_WORKSPACE). No unrelated binaries, credentials, or config paths are requested.
Instruction Scope
SKILL.md describes nightly 'reviews, prunes bloat and optimizes files' but the included scripts are read-only (audit.sh and morning-brief.sh) and do not perform pruning or file modification. The runtime instructions and provided scripts are largely aligned, but the description overstates automatic modification behavior — if automatic pruning is intended, the scripts do not implement it.
Install Mechanism
No install spec (instruction-only plus two included shell scripts). This is low risk: nothing is downloaded or written during installation beyond the skill files themselves.
Credentials
The skill requires no credentials or environment variables. The scripts optionally use OPENCLAW_WORKSPACE and otherwise read files under $HOME/.openclaw/workspace — this is proportionate to a memory-audit/morning-briefing tool.
Persistence & Privilege
always is false and the skill does not request elevated or system-wide privileges. It only reads workspace files and checks for a local 'openclaw' CLI; it does not modify other skills or system config.
Assessment
This skill appears to do what it says: auditing workspace memory files and producing a morning brief. Before installing: (1) note the SKILL.md promises pruning/optimizations but the scripts are read-only — if you expect automatic cleanup, request/inspect code that implements safe pruning; (2) review and approve cron jobs before enabling them so the timing/behavior is explicit; (3) verify the workspace path (OPENCLAW_WORKSPACE or $HOME/.openclaw/workspace) is correct and that the scripts run with least privilege needed; (4) if you later add automatic modification, review carefully for unintended deletion or exfiltration. Overall the skill does not request secrets or network access and is internally consistent aside from the 'pruning' claim.

Like a lobster shell, security has layers — review code before you run it.

latestvk973zsb3ry3g2hesj2jezvqd0d82cmtk
395downloads
0stars
2versions
Updated 1mo ago
v1.0.1
MIT-0

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:

  1. Dreams (2-4 AM): Reviews memories, connects dots, prunes bloat
  2. 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

TierCostWhat's Here
Tier 1~600 tokens/turnAGENTS.md, SOUL.md, USER.md — core identity
Tier 20 tokensMemory files indexed via QMD — search on demand
Tier 3Tool tokens onlyFull 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

  1. First Run: Create the skill files and cron jobs
  2. Nightly: Agent silently reviews memories, optimizes files
  3. Morning: User receives brief summary

Commands

  • dream now — Run dream cycle immediately
  • dream audit — Audit memory files without changes
  • dream brief — Generate morning brief without full cycle
  • dream status — Show current memory stats

Comments

Loading comments...