memory-dream

Consolidate Claude Code memory files by merging, pruning, and cross-referencing.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/moondrop-ro/claude-skills --skill memory-dream
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-dream
Source: https://github.com/moondrop-ro/claude-skills/tree/main/skills/memory-dream
Command: npx skills add https://github.com/moondrop-ro/claude-skills --skill memory-dream

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Memory fragmentation across Claude Code sessions is reduced by automatically discovering, merging near-duplicate memories, pruning stale entries, and cross-referencing with CLAUDE.md to keep per-project memory stores coherent.

Core Features & Use Cases

  • Merge near-duplicate memory files to reduce fragmentation and confusion.
  • Prune stale memories to keep memory stores relevant and accurate.
  • Cluster related memories into coherent topic files and cross-reference with CLAUDE.md for consistency.
  • Verify memories against the codebase to ensure alignment; auto mode applies changes and summarizes results after each run.

Quick Start

Run memory-dream to scan the current project and ancestors, then apply automatic memory consolidation.

Frequently Asked Questions about memory-dream

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I consolidate fragmented memory files in Claude Code?

Memory consolidation for Claude Code is automated by discovering, merging near-duplicate memories, pruning stale entries, and organizing files across project hierarchies. It cross-references CLAUDE.md to maintain consistency across per-project and ancestor memories.

What is memory deduplication and when do I need it for multi-project codebases?

Memory deduplication identifies and merges near-duplicate memory files to reduce fragmentation and confusion. You need it for multi-project codebases when per-project memories, ancestor memories, and cross-references become fragmented across sessions.

Can I verify Claude Code memories against the codebase automatically?

Yes, you can verify memories against the codebase to ensure alignment using auto mode. Auto mode applies changes automatically and summarizes results after each run, keeping per-project memory stores coherent with the actual codebase.

Does memory-dream work with per-project memories and ancestor memories across hierarchies?

Yes, it handles per-project memories and ancestor memories across project hierarchies. It discovers memory files throughout the hierarchy, applies staleness detection and deduplication, and maintains cross-references against CLAUDE.md for consistency.

What's the best way to prune stale memories in Claude Code project memory stores?

The best way to prune stale memories is running an automated consolidation scan that detects staleness, removes outdated entries, and clusters related memories into coherent topic files. Plan mode previews changes while auto mode applies them directly.

Why does Claude Code memory fragmentation cause confusion across sessions?

Memory fragmentation causes confusion because near-duplicate memories accumulate across sessions and project hierarchies without deduplication. Stale entries persist, and per-project memories drift out of sync with CLAUDE.md and the actual codebase.