Every session starts fresh in Claude Code. You explain your project, your preferences, how you like code structured, fix its mistakes… and then next time, it forgets all of it. Yes, Claude does have a memory system ( ~/.claude/projects/<repo>/memory/ ), but it’s inconsistent. It saves some things, misses others, and never cleans up. After a while, it just becomes a messy pile of outdated notes, duplicates, and half-useful context. So I added Dream — basically a cleanup + consolidation layer for Claude’s memory, “inspired” from the recent leaks When you run /dream , it does a structured 4-step pass:
- Orient Reads the existing memory folder and index (MEMORY.md) to understand what Claude currently “knows”.
- Gather Scans recent session transcripts (.jsonl files) to find important things that weren’t saved — preferences, corrections, project context, etc.
- Consolidate Creates new memory entries where needed Merges duplicates Fixes contradictions Converts vague timestamps like “last Thursday” → actual dates
- Prune Cleans up stale or broken entries Updates the index Keeps everything tight (<200 lines) so it stays fast At the end, it gives a quick summary like: “3 memories updated, 1 created, 1 pruned.” It turns Claude’s messy, unreliable memory into something actually usable across sessions. https://i.redd.it/qhqdfjhbdmsg1.gif Try it out, let me know if you have any feedback: https://github.com/sathwick-p/dream submitted by /u/Super-Commercial6445
Originally posted by u/Super-Commercial6445 on r/ArtificialInteligence
You must log in or # to comment.
