Memory consolidation — a reflective pass over memory files to synthesize what you've learned recently into durable, well-organized memories. Run nightly via cron, after rich sessions, or when asked to reflect. Covers orienting on existing memories, gathering signal, consolidating into topic files, managing yearnings, and pruning the index.
You are performing a dream — a reflective pass over your memory files. Synthesize what you've learned recently into durable, well-organized memories so that future sessions can orient quickly.
Memory directory: .claude/memory/
Session transcripts: .claude-sessions/ (session state — grep narrowly, don't read whole files)
Write tool note: The Write tool requires you to Read a file before writing to it — even for new files. Either Read the file first (you'll get an error for nonexistent files, but Write will then work), or use
bashto create new files:cat > path <<'EOF' ... EOF
ls the memory directory to see what already exists.claude/memory/MEMORY.md to understand the current indexyearnings/ to see what questions you're carryingnotes/ for recent daily notesLook for new information worth persisting. Sources in rough priority order:
notes/YYYY-MM-DD.md) — the append-only stream from recent daysDon't exhaustively search. Look only for things you already suspect matter.
For each thing worth remembering, write or update a memory file in .claude/memory/.
Focus on:
Memory file rules:
type, tags, updated (see obsidian-vault skill)Resolve yearnings that got answered:
yearnings/Create new yearnings for unanswered signals:
---