Install
openclaw skills install lucid-dreamerNightly AI memory reasoning system. Lucid runs every night while you sleep — it reads your daily notes and memory files, detects stale facts, unresolved todos, recurring problems, forgotten decisions, and can optionally perform aggressive cleanup and contradiction detection. Includes optional session debrief for quick end-of-day memory capture. Zero dependencies, no database, no embeddings. Just a cron job and markdown files. Use when you want your AI agent to automatically maintain and improve its long-term memory over time. Triggers on "memory dreamer", "nightly memory review", "lucid", "auto memory", "memory cleanup", "memory hygiene".
openclaw skills install lucid-dreamerYour AI sleeps. Lucid dreams.
Lucid keeps your AI's memory clean. Every night, it reads what happened, checks what your AI already knows, and suggests what's outdated, missing, or forgotten.
See README.md for full setup, ARCHITECTURE.md for internals, and config/ for configuration.
Set your workspace path in the config:
export CLAWD_DIR=/path/to/your/workspace
Create a nightly cron job using OpenClaw's cron tool — run the prompt in prompts/nightly-review.md at 3 AM.
Optional: add a lightweight session debrief cron around 18:00 using prompts/session-debrief.md. This is a faster daily capture pass than the nightly review — it reads today's daily note and writes durable decisions/facts straight into memory without creating a review report.
Wake up to a review report in memory/review/YYYY-MM-DD.md.
Approve or reject suggestions — Lucid tracks state in memory/review/state.json.
Use prompts/session-debrief.md for a quick end-of-day memory pass around 18:00. It is designed to run faster than the nightly review: read today's daily note, capture durable decisions/facts/action items, and write them directly into memory.
Recommended OpenClaw cron settings:
openclaw cron add \
--name "lucid-debrief" \
--cron "0 18 * * *" \
--tz "Europe/Vienna" \
--model "your-preferred-model" \ # e.g. anthropic/claude-haiku-4-5 or opencode-go/minimax-m2.7
--session isolated \
--wake-mode now \
--message "$(cat prompts/session-debrief.md)"
What it does:
memory/TODAY.md)prompts/nightly-review.md — the main nightly review promptprompts/session-debrief.md — optional quick-capture prompt for ~18:00config/ — thresholds and behavior settingsexamples/ — sample review output and state fileFiles read at runtime:
MEMORY.md — long-term agent memory summaryUSER.md — user profile and preferencesmemory/YYYY-MM-DD.md)Files written at runtime:
memory/review/YYYY-MM-DD.md — the generated review reportmemory/review/state.json — approval/rejection tracking stateWhat this skill is designed to avoid:
git push is performed unless you explicitly run itRecommendations:
CLAWD_DIR explicitly in your environment to ensure the skill operates on the correct workspaceMEMORY.md, USER.md, and recent daily notes. Do not run it on a workspace containing unencrypted API keys or other secrets in plain markdown files.