Claude Dream — AI skill for Claude Code
Memory consolidation skill for Claude Code — like REM sleep for your AI memory.
How to install Claude Dream
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open mengazaa/claude-dream and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Dream does
Memory consolidation skill for Claude Code — like REM sleep for your AI memory.
Alternatives in AI
- Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
- Om Humanize — Voice-calibrated editing — makes Claude-drafted text sound like you wrote it, not like AI wrote it 4.6k ★
- 小红书文案:aris 介绍 — 标题: 睡一觉起来论文从5分变7.5分 3.1k ★
README
/dream — Memory Consolidation for Claude Code
A Claude Code skill that consolidates your project memory files — like how your brain consolidates memories during REM sleep.
Inspired by Anthropic's unreleased [Auto-dream feature](https://github.com/Piebald-AI/claude-code-system-prompts/blob/main/system-prompts/agent-prompt-dream-memory-consolidation.md), adapted for any Claude Code project.
What it does
Claude Code remembers things about your project in `MEMORY.md` and memory topic files. Over time, these accumulate duplicates, stale entries, and messy metadata. `/dream` cleans it all up in 4 phases:
- Orient — Scan existing memory files, understand current state
- Gather Signal — Find duplicates, stale entries, missing metadata
- Consolidate — Merge duplicates, fix metadata, resolve contradictions
- Prune & Index — Keep MEMORY.md under 200 lines, organized by topic
Install
Option 1: Copy files manually
# Create skill directory
mkdir -p ~/.claude/skills/dream
# Copy the skill file
cp SKILL.md ~/.claude/skills/dream/SKILL.md
# Copy the slash command
cp dream.md ~/.claude/commands/dream.md
Option 2: One-liner
mkdir -p ~/.claude/skills/dream ~/.claude/commands && curl -sL https://raw.githubusercontent.com/mengazaa/claude-dream/main/SKILL.md -o ~/.claude/skills/dream/SKILL.md && curl -sL https://raw.githubusercontent.com/mengazaa/claude-dream/main/dream.md -o ~/.claude/commands/dream.md
Usage
In Claude Code, type:
/dream # Full 4-phase consolidation
/dream --scan # Read-only audit (see problems without fixing)
/dream --quick # Light pass (just merge duplicates + update index)
Optional: Nightly Auto-Dream
Set up a cron job to run `/dream --quick` every night:
# Create the script
cat > ~/.claude/scripts/nightly-dream.sh << 'EOF'
#!/bin/bash
LOGDIR="/tmp/claude-dream"
mkdir -p "$LOGDIR"
LOGFILE="$LOGDIR/dream-$(date +%Y-%m-%d).log"
cd /path/to/your/project # <--
Related Skills
AI Dream
🌙 Auto-dream memory consolidation for Claude Code & OpenClaw — REM sleep for your AI
Openclaw Auto Dream
Automatic memory consolidation for OpenClaw agents — like sleep for your AI. Powered by MyClaw.ai
Dream Code
Termux-first AI Coding Agent. Even while you sleep, your dreams keep building.
Claude Code Patterns
Field-tested Claude Code patterns & anti-patterns for personal agents — an AI workflow that compounds: knowled
Nmem
Give your AI agents a brain that gets smarter over time. 6-tier memory hierarchy with hybrid search, backgroun
MwAgent
Movie Watchlist Agent is a conversational AI assistant, built in Python with LangGraph, LangChain, and Claude,
Related Agents
Pattern Consolidator
Sleep-time memory compute. Reads daily notes + subagent logs from the last 7 days, identifies recurring patter
Part 16: autoDream — Automatic Memory Consolidation
Note: OpenClaw 2026.4+ has a built-in dreaming system (Part 22) inside memory-core. If you're on 2026.4+, use
Memory Master
Use when a repeated failure, user correction, or WF recovery loop triggers memory writing; also use during WF