Skip to main content
Use the Dream skill when a space has accumulated enough memory that topics may overlap, drift, or become stale. Dream does not edit memory. It only proposes cleanup candidates. Your agent should read the source topics, decide what is worth changing, then use the right follow-up skill command.

When to use Dream

Use Dream after a burst of recording, before a planning round, or when query results feel noisy. Do not run Dream on every task. The proposals are more useful when there is enough saved memory to compare.
Dream works on the space resolved from the current project folder. If the project should use a named space, bind it first with Bind.

Ask the agent to review memory

Ask your agent:
Review ByteRover memory for cleanup and consolidation opportunities.
The agent runs Dream from inside the project folder. Manual reference:
node scripts/dream.mjs --mode merge --min-score 0.3

Choose a mode

Dream supports four modes.
ModeWhat it proposes
mergeTopics that cover the same ground and may be combined.
linkTopics that should reference each other but do not yet link.
pruneTopics that look stale or low-value.
synthesizeSmall related topics that may read better as one larger topic.
The default mode is merge. Manual examples:
node scripts/dream.mjs --mode link
node scripts/dream.mjs --mode prune --limit 10
node scripts/dream.mjs --mode synthesize

Review the candidates

Dream returns JSON with candidate paths, scores, and the reason the topics were grouped. Ask the agent to read source topics before acting:
Read the suggested Dream candidates and explain which ones are worth changing before editing memory.
Manual reference:
node scripts/brv.mjs read "architecture/auth.html"

Act on a proposal

Only act on candidates that still make sense after reading the source topics.
Dream proposalFollow-up action
mergeUse merge.mjs to fold one topic into another and remove the loser.
linkUse Record to update related= references.
pruneUse prune.mjs to remove stale topics after confirming they are safe to delete.
synthesizeUse synthesize.mjs to write a consolidated topic and absorb the smaller topics.
Manual references:
node scripts/merge.mjs auth/login.html auth/oauth.html
node scripts/prune.mjs old/topic.html
node scripts/synthesize.mjs auth/session-model --html '<bv-topic ...>...</bv-topic>' --absorb auth/login.html,auth/oauth.html

Verify after cleanup

After acting on Dream proposals, ask the agent to query the same topic again:
Query ByteRover for the memory we just consolidated and confirm the result is clearer.
If the result got worse, ask the agent to explain what changed before recording more memory.