Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Dream?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/youknowfred-dream)
---
description: The generative sleep pass — offline replay surfaces the latent graph edges consolidate can't reach (bridges, unlinked mentions, undeclared refines). Tier-A edges auto-apply reversibly; --dry-run previews. Deprecated, off by default and removed in v2.0.0: --deparasite, reverse replay, and the --generate draft tier. Triggers "dream", "find latent links", "de-parasite my graph", "generate schemas", "/hippo:dream".
---
# /hippo:dream — the generative sleep pass
hippo's other verbs are the housekeeping functions of sleep: `consolidate` drains episodic
captures into memory, reconsolidation repairs drifted memories, staleness decays them. This
is the **generative** one: an offline replay pass that re-runs recall over each memory's own
derived self-query, watches what **co-fires**, and diffs that against the link graph to
surface the latent edges the corpus is structurally missing —
- **completion** — a body already *names* another memory (plain prose, or a dangling
`[[wikilink]]` that nearly resolves) but no edge exists. Applied only when recall has
also returned the pair together at least once (any nonzero co-fire): a name in the text
with no co-recall behind it is reported, never applied.
- **bridge** — a transitive A–B–C pair (A–B and B–C linked, A–C absent) that co-fires:
exactly the 2-hop miss the recall hook's 1-hop graph expansion turns into a hit once the
edge exists.
- **refines** — an undeclared typed relation (a child memory whose slug extends a parent's,
co-firing with it).
Every pass is **offline** (a deliberate turn, like consolidate — never the per-prompt hot
path) and gated on the soak bar (≥5 distinct sessions): a young corpus proposes nothing,
and says so. **The empty pass is the norm** — a non-empty report is signal worth reading.
**Auto-apply is the shipped default (owner-ratified 2026-07-12), and it is REVERSIBLE
AUTONOMY:** a bare pass applies only the Tier-A class above the calibrated bar (θ=0.90,
cap 5/pass, bridges must co-fire mutually, completions need any co-fire), every edge
stamped and one-command undoable,
never committed. `--dry-run` previews without writing. Floor memories are never an edge
endpoint; `confidence: draft` memories are quarantined from both ends; un-aged dream
edges are firewalled out of the pass's own source set (a dream never cites an unreviewed
dream).
## Deprecated tiers (removed in v2.0.0)
Measured on three real corpora, three tiers moved recall@10 by 0.000, so they are off by
default and deprecated. Each still runs when asked for by name and prints one line saying
it is going; the link pass above is unchanged. Do not reach for one unless the user names it.
- **reverse replay** — no longer runs inside every pass; `HIPPO_DREAM_REVERSE_REPLAY=1`
turns it back on.
- **the generative tier** — `--generate`, `--sweep-drafts`, `--archive-draft`,
`--prospective` (MCP actions of the same names); `HIPPO_DREAM_GENERATIVE=1` still lets
apply passes stage drafts.
- **de-parasite** — `--deparasite` (and `--retract`) and `--dedup-merge` (MCP:
`deparasite`, `dedup_merge`).
## Surface routing — decide first, then act silently
- **On Claude Desktop** (your context says you are in the Claude desktop app, `CLAUDE_CODE_ENTRYPOINT` is `claude-desktop`, or the preflight below stops on an unset `CLAUDE_PLUGIN_DATA`): the Desktop path for this verb IS the `dream` MCP tool — call it directly and present what it proposed or applied. Skip the bash preflight and the shell blocks below; those run only in a terminal. Call the tool with no preamble — don't explain that the shell flow doesn't run on this surface, or why you're reaching for a tool instead of bash. That surface-plumbing narration is exactly the repeated noise this routing removes.
- **In a terminal Claude Code session**: run the bash flow below, guard first.
## Preflight (shared across all hippo skills)
```bash
export CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA}" CLAUDE_PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT}" # Claude Code fills both in when it loads this skill
[ -n "${CLAUDE_PLUGIN_DATA:-}" ] && [ -n "${CLAUDE_PLUGIN_ROOT:-}" ] || { echo "✘ hippo's plugin paths are empty in this shell. Claude Code fills them into this skill's text when it loads the skill (the Bash tool does not inherit them), so run these blocks from the loaded /hippo:dream skill, not from a copy of its SKILL.md. If the loaded skill stops here too, take the MCP-tool route in 'Surface routing' above."; exit 1; }
. "${CLAUDE_PLUGIN_ROOT}/hooks/_resolve_py.sh" # canonical PY resolver
hippo_resolve_py
hippo_note_usage skill dream # count this skill's use (one spool line, no Python)
```
## Run a pass
```
hippo dream # the default: discover + auto-apply Tier-A, digest w/ undo handles
hippo dream --dry-run # report-only preview (zero memory writes)
```
Present the digest/report to the user roughly as printed — the status line (or the
explicit below-soak / empty-corpus reason), each applied or proposed edge with its
provenance (kind, co-fire strength, graph distance, firing query), and the undo handles.
Do not editorialize candidates into facts: an edge is a ranking hint, not a claim.
Machine-readable form (for scripting / inspection):
```
hippo dream --json
```
**The LLM contradiction check** (opt-in) needs the LLM API key, and the plugin's key option
reaches hippo's MCP server but never a shell command. Run it through the MCP `dream` tool
(`contradictions: true` on a pass), not `hippo dream --contradictions`, which only finds a
key exported in the shell itself. Without a key the check is skipped silently.
Useful knobs (env or flags): `--probe-k <n>` co-fire probe depth (default 10),
`--max-seeds <n>` cap the replay worklist (default all), `DREAM_COFIRE_THETA` /
`DREAM_MAX_APPLY_PER_PASS` — the auto-apply calibration knobs the report's θ sweep feeds
(they gate nothing in report-only mode).
## What auto-apply does (and never does)
The bare pass runs the loop — `apply-reversibly → notify → undo-window → age-in`
(`--apply` forces it even under `HIPPO_DREAM_APPLY=0`):
```
hippo dream --apply
```
It auto-applies ONLY the Tier-A class — additive, body-prose-preserving, ranking-only:
bridges/completions as stamped `[[wikilinks]]` inside a machine-managed
`<!-- dream:links -->` block, refines as additive frontmatter — capped single-digit per
pass (`DREAM_MAX_APPLY_PER_PASS`, default 5, hard max 9), θ/mutuality-gated, secret-linted
with a **hard block** (the one ratified deviation from hippo's warn-only lint), each edge
stamped `pass=`/`edge=` and recorded in the committed append-only
`.claude/memory/dream-ledger.jsonl`. Edges are live in recall immediately (index rebuilt)
but **never committed** — git history stays the owner's. Present the digest verbatim,
including the undo handles. Supersedes candidates are digest-gated (never auto);
contradicts route to `/hippo:tend`.
Undo is one command, byte-exact, drift-refusing; applied edges age into /dream's own
source set only after 5 un-undone sessions (`DREAM_AGE_SESSIONS`):
```
hippo dream --undo # revert the latest pass
hippo dream --undo <edge-id> # revert exactly one edge
hippo dream --undo-since <N|date>
hippo dream --log # every edge: active / aged-in / undone
hippo dream --retire-ghost <edge-id> [--reason "…"] # see below
```
**Completions applied before they needed a co-fire.** Earlier versions applied a
completion on the text mention alone, so a corpus can hold completion edges whose pair
recall has never returned together. Every apply pass names their count; nothing reverts
them for you. Show the user the list, and revert only on their yes:
```
hippo dream --below-floor # the list (read-only)
hippo dream --undo-below-floor # revert exactly those, in one step
```
A pair reverted this way may be linked again once it does co-fire; a pair reverted with
`--undo` never is.
**A ghost edge** (doctor: "active ledger edge(s) with no on-disk stamp") is an ACTIVE
ledger row whose stamp no longer exists anywhere — its source memory was deleted or folded
away outside `archive_memory`, or the stamped line was lost to a rewrite before it was ever
committed. `--undo` correctly refuses (it has no bytes to reverse) and git history has
nothing to restore, so `--retire-ghost <edge-id>` (MCP: `dream` with
`action='retire_ghost'`, `edge_id`, optional `reason`) appends the superseding
`state: "undone"` line — and ONLY after proving the stamp is absent from every memory in
the corpus root and `archive/`. It refuses while the stamp is on disk anywhere (that is
`--undo`'s job), is strictly per-edge, touches no memory file, and never commits. Never
hand-edit stamped lines or `dream-ledger.jsonl`.
A ghost whose **source memory is deleted** (in neither the corpus, `archive/` nor the
outbox, its stamp nowhere) no longer needs the verb: the promote move retires the edges of
the file it removes, and every link pass (`hippo dream`, a sleep run) retires the rest with
the same proof and cause `source-deleted`, saying how many in its digest. A ghost whose
source file is still here but lost its stamp is left for `--retire-ghost`.
Prefer per-item hand-application when the user wants to review each edge: a
**completion/bridge** is one `[[wikilink]]` added to the source body; a **refines** is
additive frontmatter. Never bulk-apply the whole ledger by hand — the cap is the point.
## De-parasiting counterweight (deprecated) — the forgetting function
An edge-only pass has no restoring force; this is sleep's downscaling half. Report/propose
posture — the pass itself writes **nothing**:
```
hippo dream --deparasite # report/propose only
hippo dream --deparasite --retract # + execute the Tier-A lane
```
It reports per-memory out-degree, flags hubs over `DREAM_MAX_OUT_DEGREE` (default 8), and
splits every remedy along the reversibility gradient:
- **retract (Tier A, the only auto-executable lane)** — /dream's OWN un-aged edges touching
a flagged hub, reverted through the byte-exact undo machinery (`--retract`). A retracted
pair never auto-re-applies on later passes.
- **demote (GATED, never auto)** — aged-in dream edges (per-item `dream --undo <edge-id>`,
an owner action) and hand-authored out-links with no co-recall evidence (named for
review only; hippo never edits body prose autonomously).
- **dedup-merge (GATED, per-item)** — near-duplicate pairs get a NON-LOSSY proposal:
survivor gains `supersedes: [loser]`, loser's validity window closes
(`set_invalid_after`) — additive frontmatter, no body byte touched, nothing deleted.
Execute ONE ratified proposal at a time:
```
hippo dream --dedup-merge <survivor> <loser>
```
**Protected hubs — floor-linked, co-recalled (≥3 shared sessions), or cited by other
memories — are never proposed for depression**; dream-created edges confer no protection
(the counterweight cannot be disarmed by the pass it counterweighs). A pair already
carrying `contradicts` is a disagreement, not a duplicate: it routes to `/hippo:tend`
and is never auto-resolved or merged. Present proposals as proposals — apply nothing
without the owner's per-item yes.
## Reward-gated reverse replay (deprecated) — outcome-anchored boosts
Off by default; with `HIPPO_DREAM_REVERSE_REPLAY=1` it runs inside every pass, silently
when there is no signal. Memories with a RECORDED
outcome (injected, then a cited file touched in-session — the join) anchor a
backward walk along their `supersedes`/`refines` decision chain; the upstream chain earns
**replay priority** (probed first) and its candidates earn **ordering priority** under the
apply cap. Strictly reward-gated and ranking-only: no outcome → no boost; θ eligibility
always reads the raw cofire; no memory byte ever changes. Boosted edges are logged to
`boosts-<pass>.jsonl` in the derived dream dir, each row carrying the justifying
decision chain; un-aged dream edges conduct no reward (the aging firewall extends here).
## Generative payload (deprecated) — schema/gist + hypotheses, quarantined
The boldest tier: net-new memories, not just edges. **OFF by default**
(`HIPPO_DREAM_GENERATIVE=1` opts apply passes in; DREAM- — never auto-applied as
verified) and quarantined end to end:
```
hippo dream --generate # report proposals only (zero memory writes)
hippo dream --generate --stage # stage them as confidence:draft memories
```
- **schema/gist** — a mutual co-firing cluster (≥3 memories above θ) earns ONE net-new
parent that abstracts it: `[[child]]` links in the body, `derives-from: [children]`
typed frontmatter (the relation), cited paths inherited from the children.
- **hypothesis** — a strong mutual pair with NO graph path (`A+B ⇒ likely related`),
same quarantine.
Staged drafts are **created only at `confidence: draft`** — down-weighted in recall
(×0.5), **never answering alone** (a draft-only result set collapses back to
abstention), never floor material, never /dream source (the firewall extends to
generative output: drafts and graduated-but-unaged generated memories are invisible to
the next pass, node-level). Capped per pass (`DREAM_MAX_GENERATE_PER_PASS`, default 2,
hard max 5), hard secret-BLOCKed, stamped + ledgered like edges, undoable
(`--undo <edge-id>` deletes the staged file byte-exactly; a hand-edited or graduated
draft refuses — archive or git-revert those).
**The lifecycle is self-decaying (the sweep rides every apply pass, flag or no flag):**
```
hippo dream --sweep-drafts # graduate / expire, on demand
hippo dream --archive-draft <name> # execute ONE proposed archive (per-item)
hippo dream --prospective # abstain→hit flips over the frozen backlog
```
- **Graduation is external-evidence-only**: a draft flips to `verified` exactly when the
recorded outcome ledger shows it was injected AND one of its cited files was touched
that session. No self-graduation path exists; a human glance does not graduate.
- **Expiry**: a draft unconfirmed past `DREAM_DRAFT_HORIZON` (default 10 distinct
sessions) auto-closes its validity window and PROPOSES its archive — executing the
archive stays per-item (`--archive-draft`).
- **The alarm**: the sweep reports staged/graduated/expired/archived counts and a
`graduation_rate`; a low rate among decided drafts prints a loud HALLUCINATION ALARM —
believe it. Keep the flag off (or raise θ / `DREAM_SCHEMA_MIN_CLUSTER`) when it fires.
- **Prospective recall** freezes the abstention backlog at first staging and counts which
recorded blind-spot queries now hit, attributing flips that ride a generated memory —
the metric this tier must move to earn its keep.
Present staged drafts to the user as **hypotheses about structure, not facts** — they are
marked `[draft]` at inject time for exactly that reason. Never hand-edit a draft's
confidence to `verified`; evidence or the horizon decides.