How Claude Dreams: Background Memory Defragmentation
There's a module inside Claude Code called autoDream. Its prompt title reads "Dream: Memory Consolidation."
This isn't a metaphor. Claude Code actually spins up a background sub-agent that reviews transcripts from past sessions, consolidates scattered memories — merging, deduplicating, correcting — and writes them back to disk. The whole thing is invisible unless you dig into the background task list.