/podcast-wiki:dreamfrom Podcast Wiki
Consolidates Claude's file-based memory and project wiki by replaying recent sessions, merging duplicate concepts, surfacing contradictions, and pruning outdated entries. Use at end of a working day or via /dream.
Ships in Podcast Wiki. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The brain replays the day during sleep, keeps what matters, generalizes, and wakes up fresh. This skill does the same at two levels: Claude's memory directory (Part A) and the wiki's concept pages (Part B), where separately ingested episodes produced near-duplicate concepts that should become one general truth. It is built from the wiki's own synthesis: [[concepts/memory-consolidation]], [[concepts/agent-memory]], [[concepts/human-vs-ai-memory]], [[concepts/knowledge-rot]].
| Principle | Source |
|---|---|
| Replay before writing. Consolidation works on the day's actual experience, not on a guess about it. | Hippocampal replay ([[episodes/langtalks--60-brain-memory]]) |
| Distill, don't hoard. A growing stack of notes that gets reread every morning is the failure mode. Each memory must change future behavior. | Gilad Levi ([[episodes/explainable--164-gilad-levi-continual-learning]]) |
| Learn from corrections. Compare what Claude did with what the user changed, rejected or redid, and infer the rule. | Nightly correction job ([[episodes/langtalks--72-personal-assistant-agent]]) |
| Merge episodes into general truths. Several small session memories become one general rule. Digest and discard. | Itamar Friedman ([[episodes/langtalks--57-memory]]) |
| Frequency over recency. Resolve conflicts by how often and how consistently something held, not by which came last. Never overwrite silently. | Mem0 critique ([[episodes/langtalks--60-brain-memory]]) |
| Learn from outcomes. Fixes, reverts and failed runs are lessons nobody typed out. | CI results and rollbacks fed back as context ([[episodes/ai-engineering-podcast--company-brain]]) |
| Fix it once, in the shared skill. A lesson that keeps recurring for one task belongs in that task's skill, not in a note every session rereads. | Atlas folds learnings into a shared skill ([[episodes/ai-engineering-podcast--atlas-ai-teammate]]) |
| Earn your place. A rule that isn't used or keeps getting overridden gets changed or deleted. | Usage/acceptance test ([[episodes/langtalks--57-memory]]) |
| Fight rot. Dropped projects, renamed files and finished work keep resurfacing unless someone says so. | Dana Maman ([[episodes/osim-tochna--second-brain-and-llm-wiki]]) |
| Surface contradictions. The LLM's job is to check new knowledge against old. Ingest only sees the pages one episode touches, so conflicts between episodes on different pages go unnoticed. | Karpathy ([[concepts/llm-wiki]]) |
| Stay inspectable. Plain-language files the user can read and veto. | [[episodes/langtalks--57-memory]] |
Memory lives at ~/.claude/projects/<cwd with / replaced by ->/memory/ (the replay header prints it). Read MEMORY.md and every memory file. The format and the four types (user, feedback, project, reference) are defined in the system prompt's memory section. Follow it exactly.
Run uv run tools/dream_replay.py. It prints each human prompt since the last dream, after the tail of what Claude said just before, so a short "no, too heavy" reads in context. It ends with two # outcomes lists: commits in the window whose subject reads like a fix or revert (dream's own commits excluded), and failure lines from scheduled-ingest runs (~/Library/Logs/podcast-wiki.log). Use --since YYYY-MM-DD to widen the window. If it prints no prompts and no outcomes, skip to step 4.
Go through the replay and list candidates. Look for:
feedback, with Why and How to apply.feedback too. Don't record only failures.user.project, with absolute dates.reference.git show <hash> and ask what Claude did wrong the first time (a headless run that lacked a permission, a transcript that dropped content, a lint failure after ingest). The lesson is the rule that would have prevented it. If the fix already wrote that rule into a skill, tool or CLAUDE.md, the repo records it; drop it. Otherwise it's a feedback candidate, with the commit hash as evidence. Ignore commits whose subject only matched a keyword. For each job failure, check git log after that run for a fix. Fixed: drop it. Recurring and unfixed (the same failure in 2+ runs): put it in the report as an open problem, since a memory can't fix a broken job. A one-off network error is noise.Salience test: would a future session act differently knowing this? If not, drop it. Also drop anything the repo already records (code, git history, CLAUDE.md, the wiki itself), one-off task details, and secrets.
For each candidate:
[[name]].**Open:** and ask in the report.A memory that is really a rule for one specific task shouldn't stay a note every session rereads. Move it into the file that defines that task: a skill's SKILL.md, a tool, or a CLAUDE.md procedure. For example, "progress bar during transcription" goes into step 2 of .claude/commands/ingest-podcasts.md.
Candidates: feedback (or project constraint) memories tied to one task, with repeat evidence (3+ sessions or commits) or that the user stated as a standing rule ("always", "never"). Keep in memory: user memories, preferences that cut across tasks (tone, numbered options), and anything personal. The repo is public, so never promote handles, emails, private URLs or names.
Interactive run: show the candidates as a numbered list (memory → target file: the line to add) and ask which to apply. For each approved one, add the rule to the target in that file's own style (one line in the right step, not a new section), delete the memory file, and commit as dream: promote <memory> into <file>. Headless run: don't promote. List the candidates in the report.
ls, grep). Fix it or drop it.project memories whose status changed (shipped, abandoned, superseded).Delete memories that are contradicted, obsolete (finished or abandoned work), duplicated by a merge, or that never mattered. Never delete a feedback memory the user stated explicitly unless they reversed it. List every deletion in the report.
MEMORY.md: one line per memory (- [Title](file.md) — hook), grouped by type, no memory content in it.uv run tools/dream_replay.py --stamp to record this dream, so the next replay starts here.Episodes get ingested one at a time, so the same idea lands on several concept pages under different names (a person's second brain, an org's company brain, the LLM wiki that maintains either), and two episodes can disagree without either page knowing. Lint only checks that pages are well-formed. Dreaming generalizes them (steps 7–9) and confronts them (step 10).
Read wiki/index.md and the Summary of every concept page. List clusters of 2+ pages that describe the same underlying idea, even at a different scale (personal vs org), from a different angle, or under a different name. The test: would a reader learning this topic want one page, with the differences as sections? Pages that only share a domain (both "about memory") are not a cluster. Wiki-structure pages belong to a cluster too. Check wiki/log.md for earlier "kept separate" decisions, and revisit them with this test.
For each cluster, propose: the surviving slug (the most general name, or a new one), the pages folded into it, and a one-line why.
Interactive run: show the proposals as a numbered list and ask which to apply. Headless/nightly run (claude -p): don't merge. Put the proposals in the report and stop Part B.
CLAUDE.md. Rewrite the Summary as one synthesis. Keep every claim with its episode and person links. Differences become sub-headings under Key ideas (e.g. "Personal scale" / "Org scale") or go to Disagreements. Union the Takeaways and Related links. Set hubs, set sources to the number of distinct episodes linked, and set updated.grep -rl "concepts/<old>" wiki/ and rewrite every [[concepts/<old>]] (including |alias forms) to the survivor, in episodes, people, hubs, takeaways and other concepts. Drop self-links and duplicate links that this creates.## YYYY-MM-DD — dream: merged <old>, <old> → <survivor> to wiki/log.md.uv run tools/lint_wiki.py, and fix it until it prints clean.Never edit raw/. Commit the wiki changes as dream: merge <old> into <survivor>.
Run after merging, so the comparison uses the merged pages. Go neighborhood by neighborhood, not by skimming. A neighborhood is one hub's concepts (or the index's "Unsorted" group), plus each page's ## Related pages. Read all of its Key ideas together and look for claim pairs on different pages where:
The test: could a reader who read only one of the two pages act wrongly? Different scales or contexts that both hold (solo vs team, 2024 vs 2026) aren't contradictions. Skip them, or note the context difference only if a reader would misread it. Pairs already in a Disagreements section are done.
For each real contradiction, add one bullet to both pages' ## Disagreements & open questions, naming who says what and linking both episodes and people: - A says X; B says Y … ([[episodes/a]], [[people/a]], [[episodes/b]], [[people/b]]). Never delete or reword the original claims. Bump updated, and set sources to the number of distinct episodes the page now links. This only adds text, so apply it in headless runs too.
Log ## YYYY-MM-DD — dream: contradictions with one line per pair (page-a ↔ page-b: topic), run uv run tools/lint_wiki.py until it prints clean, and commit as dream: surface N contradictions.
Reply with a short table, Added / Updated / Promoted / Merged / Pruned / Contradictions, one line each with the memory or concept name. Mark Part A rows memory and Part B rows wiki. Follow it with any open questions and any unapplied cluster proposals. The memory directory is outside the repo, so only promotions and Part B changes get committed.
Dreaming fits a nightly run, when compute is idle and cheaper ([[episodes/langtalks--57-memory]]). It can be added to the existing launchd job as claude -p "/dream", but only when the user asks.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hagaihen/podcast-wiki --plugin podcast-wiki4 skills in this plugin
/demoBuild a small throwaway podcast wiki from 3 bundled sample transcripts, with no Spotify, Whisper or Apple Silicon needed. Use on /podcast-wiki:demo, or when the user wants to try Podcast Wiki before setting it up./lint-wikiHealth-check the podcast wiki (wiki/) and fix what's found. Use when the user asks to lint, audit, clean up, or check the wiki, or after a large ingest./setupSet up a new podcast wiki in the current project (copies the tools, creates wiki/, walks through the Spotify login). Use on /podcast-wiki:setup, or when the user wants to start their own podcast wiki.Other plugins' skills for the same job