/agent-dreaming:dreamfrom agent-dreaming
Go through last night's memory questions of agent-dreaming — duplicates to merge, facts that may be outdated or wrong, facts an agent stored that nobody confirmed, Claude Code memory notes nobody mentioned lately or that repeat what is kept. Close yourself what a read-only check settles (versions, paths, configs, the state of code or a server, a duplicate that adds nothing), saying what you checked; put the rest to the person and apply each answer through the memory system's own tools (holographic-memory, MCP memory) or an edit of the Claude Code note; end with a short summary. Use when the person says "dream", "dreaming", "memory questions", "разбери сон", "вопросы по памяти", or when a session starts with a "Dreaming <date>" line that says how many memory questions wait and the person wants to go through them. Also to run the pass by hand ("сделай проход сейчас", "run dreaming now").
Ships in agent-dreaming. 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.
A nightly pass (dreamem run, deterministic, no model, no network) read what people said to Claude Code and Codex,
compared it with the facts holographic-memory stored and with the CLIs' own memory notes, and wrote a few questions.
It changed nothing. Your job here: close yourself the questions a check settles, put the others to the person and
carry out exactly their answers, then tell them in a few lines what was done.
git, a read-only command over ssh, memory_search, a session
file); a line counts from a session only when the person said it, not an agent. Your own answer always goes with
--verified "<what you checked, a few plain words>" — name the source, never quote a fact's text there, and
never record your answer as theirs. dreamem refuses what only the person may answer (forget, reject, no, wrong,
a promotion, a confirmation, a rewrite or delete a store cannot give back, a merge that would drop what only
the second fact says, anything about a fact stored as their preference): ask them. A technical fact is yours to correct whoever stored it — the person's own
words too — when the check gave a clear answer; a personal one never is. Never infer "yes" from silence, never
carry one answer over to another question. "Not now" is a fine answer (later).dreamem decide prints, after its checks. Never memory_forget unless the person said to
forget it. A Claude Code memory note is edited only as printed (edit) and only after dreamem verify says ok.
Never edit CLAUDE.md, AGENTS.md or Codex memory files in this review.dreamem show (it marks the questions as shown). If it says there are none, say so in one line and stop.
If the command is not found, see "When dreamem is missing" below.
No night yet, or the person asks for a fresh one: dreamem run (seconds), then dreamem show. No night for
days: see "When no pass runs on its own" below.dreamem decide Q <answer> --verified "<what you checked>", then steps 4–5 for any call it prints. Your "it holds"
(keep, yes) writes nothing to memory: dreamem keeps it, and that fact's text rests for a month. A duplicate
is yours when you compared both texts and found no contradiction (the same people in the same roles, numbers,
dates, places; nothing negated); say in --verified why they are one. When the second says more, merge with
--text holding both. Any doubt: the person's. Then, for each question left, ask the person plainly. Sections and the answers each takes:
unbacked — an answer recorded as the person's, with nothing of theirs read in the 20 minutes before it or
the minute after (a message, or their pick in a question an agent asked with the question tool): only they
answer it (asked first). mine / not-mine. On not-mine show them what that answer did
(memory_history of the fact) and make the printed call if there is one (memory_revert: it undoes the
fact's last change, so check in the history that the last one is that answer's — otherwise dreamem failed and tell them); with no call, say plainly that it cannot be undone by a call.duplicate [D-n] — two facts look like one: yes (merge; with --text, the text that keeps both is then
set on the fact that stays — two calls) / not-duplicates.external_duplicate — two MCP observations look alike: drop-copy deletes the second observation only,
after checking both exact texts; keep-both leaves both in place. There is no merge or history.conflict — a fact contradicts what memory says: changed (the new state, give --text) / outdated /
wrong (give the right text in --text) / keep. When the other side is a Claude Code note (named in the
question), the note may be the stale one: note-changed (--text: the note's new text) / note-outdated
(deletes the note).fact_decay — not mentioned for long: keep / outdated / changed / wrong / forget.outcome — an agent reported in holographic-memory's journal that an answer using this fact went wrong
(corrected, or a dead end). It is the agent's report, not the person's word: say so, show the correction
line if there is one, and ask whether the fact still holds: keep / outdated / changed /
wrong / forget.review — corroborated by conversations, but nobody said it is so: yes / no / outdated /
changed (it was so, it moved on: --text) / wrong / forget / reject (never ask again).new_fact — an agent stored it lately, nobody confirmed: same answers as review.promotion — people keep saying it: yes (mark confirmed) / no / outdated / forget.confirm — said again on different days: yes / no.trust_feedback — rejected earlier, still recalled: yes (lower its trust) / no.note_duplicate — a Claude Code memory note says what another note or a fact already says: drop-note
(deletes the first note named) / keep-both (not asked again while both say what they say).note_decay — a Claude Code memory note nobody mentioned lately: keep / outdated (deletes the note: a
note has no history, say so) / changed (--text: the note's new text).new_candidate — a possible new fact: a clause the person said (shown with its message, read again from the
session file). Judge each one yourself before showing anything; show the person only what passes, and ask
about one at most per review. A fact only if all hold: lasting (true in a month: a trait, relationship, place,
possession, habit, health condition, preference, a standing rule for you — not today's event, a mood or this
week's plan); about the person or their people, places, pets, things, asserted by them (not a quote, a
hypothetical, an opinion about the world); not in memory — memory_search first; worth interrupting them for.
When unsure, it is not. Answers: save (word the fact as one short sentence, --text "..."; after the
memory_add call, dreamem applied Q --fact-id <id it returned>) / no (asked again in a month at the
earliest) / never / not-a-fact (you turned it down — not shown to the person) / already-stored
(memory_search found it). Leave the rest open: they come back another night.dreamem show printed it (Q3-7f2a: the tag is the night's,
so an answer never lands on a question of a newer night): dreamem decide Q3-7f2a <answer> [--text "..."]. A
--text holding a secret or an instruction is refused — ask the person to say it without it. It prints one of:
call (tool + args), or calls (several: make them in that order), and check → go on to 4;edit (a Claude Code note) → go on to 4a.memory_stats — its database must be the same file as check.database.
Otherwise stop: this session's store is another one (a per-project store); tell the person to answer it in a
session of that project. A call that changes a fact carries expect (the version the person was shown): the store
refuses it when the fact changed since the night.
4a. An edit: run dreamem verify Q3-7f2a first. changed → stop, the question comes back with the note as it is
now. ok → at once, with your file tools, always as an exact replacement of the text you just read (it fails if
the file changed — then stop and dreamem failed): replace-body — the note's body (everything after its
frontmatter) becomes edit.text, and its frontmatter description becomes edit.description; delete — first
replace the whole body with nothing the same way, then delete the file edit.path and the line of edit.index
(MEMORY.md) that links edit.index_entry. Touch nothing else. Then step 5 as for a call.
4b. A call of the MCP memory server (delete_observations, add_observations): the memory server of this session
must be configured with MEMORY_FILE_PATH = check.memory_file (see its MCP config); check.observation, when
given, must be in open_nodes of check.entity word for word. For check.observations, each item's text must
appear word for word under its entity in open_nodes; if either check fails, stop. A saved fact there has no id:
dreamem applied Q without --fact-id. A delete_observations reply "Deleted 0 of …" is
a failure (the text was not there).origin (holographic-memory before 0.10.0), and the answer
has fallback → make fallback instead, once (the same call without origin), then go on as below;dreamem applied Q3-7f2a --result '<short summary of the answer>';changed_since, not found, any error) → dreamem failed Q3-7f2a --reason '<what it said>', and tell the person
the question will come back with the current texts.dreamem undo Q3-7f2a. It cancels the record (and a reject or
not-duplicates with it); a memory call already made is
undone with memory_revert (change/correct) or not at all (merge, forget) — say so honestly.dreamem list shows what you closed and on what check): what you
closed yourself and on what, what was merged, what they answered, what is left for them or for later. No ids,
JSON or paths. A mistake in what you closed is undone as in step 6.dreamem is missingdreamem show fails with "command not found", or commands cannot be run in this session at all: the skill is here,
but the program that makes the nightly pass is not installed (a plugin does not bring it). Do not make the pass
yourself and do not install anything unasked. Tell the person in two or three lines: the review needs the dreamem
program on their computer, installed once with Python 3.11+ and uv:
uv tool install git+https://github.com/itpartypattaya/agent-dreaming
then, in Claude Code, dreamem install claude-code once: it sets up the daily task that runs the nightly pass (in
Codex: dreamem install codex, in Antigravity: dreamem install antigravity). Say also that it works only where the agent runs commands on
their computer — Claude Code, Codex CLI, Antigravity — not in the claude.ai chat or Cowork. Run dreamem install only
if they ask you to; the same for the install command.
The plugin has no session hooks (the Anthropic directory takes none), so in Claude Code the nightly pass runs from a
daily task of the computer, or from Codex's or Antigravity's hooks. If dreamem show finds no night, or the last night
is days old, read the line nightly run: (dreamem show prints it when nothing starts the pass; dreamem status
always). When it says nothing starts it, tell
the person in one or two lines: no pass runs by itself on this computer, and dreamem install schedule sets up the
daily task (Windows: Task Scheduler; on macOS and Linux it prints the files to put in place). Run it only if they say
yes. A pass now is dreamem run (seconds), then dreamem show.
Without the question's memory system in this session (no memory_* tools for holographic-memory, no
delete_observations for the MCP memory server): you can still record answers with dreamem decide, but no call
can be made — tell the person the store is not connected here and leave the questions open (later).
dreamem show · dreamem decide <Q> <answer> [--text T] [--verified V] · dreamem verify <Q> · dreamem applied <Q> · dreamem failed <Q> --reason R ·
dreamem undo <Q> · dreamem list · dreamem run · dreamem status · dreamem forget-sweep (after a memory_forget:
removes the fact from the dream's own copies) · dreamem config time HH:MM|any (when the pass runs; the person's
choice, never yours). With several profiles (per-project stores) add --profile <name> when
a command asks for it.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub itpartypattaya/agent-dreaming --plugin agent-dreaming