About dream-memory
Dream Memory is a portable skill for consolidating an agent's stored notes into a concise, maintained memory. It helps merge durable facts, remove stale or conflicting entries, and keep MEMORY.md as an index.
Key features
- 01Merge overlapping memory notes
- 02Prune stale or contradicted facts
- 03Convert relative dates to absolute dates
- 04Keep MEMORY.md concise and index-like
- 05Inspect logs and transcripts
Use cases
- 01Run a scheduled memory cleanup
- 02Consolidate topic files after a work session
- 03Remove outdated or conflicting memory entries
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ learnprompt/ cc-harness-skills --skill dream-memoryAfter installing, type/dream-memoryin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
README.mdreferences/prompt-template.mdsource-notes.mdscripts/dream_memory.pyDetails
From the project READMEDream Memory
Use this skill when you want a deliberate memory-consolidation pass instead of storing more raw notes.
This bundle is intentionally portable. It borrows the workflow shape from Claude Code's dream system, but it does not depend on Claude Code internals.
Use It For
- nightly or manual memory cleanup
- merging overlapping memory notes
- normalizing relative dates into absolute dates
- pruning stale or contradicted memories
- keeping
MEMORY.mdsmall and index-like
Avoid It For
- saving a single new memory from the current turn
- persisting code facts that should be re-read from source
- replacing plans, task boards, or issue trackers
Quick Start
Inspect a memory directory before running the consolidation prompt:
python3 {baseDir}/scripts/dream_memory.py --memory-root /path/to/memory --transcripts-dir /path/to/transcripts
Then use the portable prompt in references/prompt-template.md.
Workflow
- Inspect
MEMORY.md, topic files, and recent logs or transcripts. - Identify durable facts worth keeping.
- Merge into topic files instead of creating near-duplicates.
- Remove stale or contradicted memory.
- Rewrite
MEMORY.mdas a concise index.
Rules
MEMORY.mdis an index, not a content dump.- Prefer topic merges over new file creation.
- Convert relative dates to absolute dates.
- Do not store code-state facts that can drift.
Supporting Files
- Prompt template: references/prompt-template.md
- Source notes: references/source-notes.md
- Helper script:
python3 {baseDir}/scripts/dream_memory.py ...