
Run /dream memory consolidation in Grok Build
/dream folds recent Build memory observations into topic files — one subject per file, such as topics/testing.md. Official Memory in Grok Build says Dream also runs on its own periodically in the background. The command only appears when cross-session memory is enabled (Modes and Commands).
Prerequisites
- Enable memory in user config (
~/.grok/config.tomlor$GROK_HOME/config.toml):
[memory]
enabled = true
Or for one process: export GROK_MEMORY=1. Single-run flags: --experimental-memory / --no-memory.
- Start a new session after enabling (
/newor freshgrok) so background capture has somewhere to write. - Confirm
/dreamshows in/helpwith/remember,/flush, and/memory.
Full enable steps: Enable cross-session memory in Grok Build.
When to run Dream yourself
Use /dream when:
/memoryshows a pile of raw notes you want compressed into topics- You finished a long session and want subjects organized before the next day
- You are about to switch projects and want this workspace’s topics tidy first
Background Dream still runs on its own over time. Manual /dream is the on-demand pass.
Run consolidation
/dream
- Optionally save an explicit fact with
/remember <note>if it is not on disk yet. - Optionally
/flushso the latest capture hits disk before consolidation — Flush conversation memory. - Run
/dreamand wait for the client to finish merging. - Open
/memoryand confirm topics look like subject files (for example testing, preferences) instead of a long raw list — Browse memories with /memory.
After Dream
Later sessions read topic files that cover the area they are about to touch. Conversation instructions still win over a note when they conflict. Clear a whole scope with grok memory clear --workspace / --global / --all when the topics themselves are wrong — Clear Grok Build memory from the CLI.
Pitfalls
- Without
[memory] enabled/GROK_MEMORY=1,/dreamdoes not appear. - Project
.grok/config.tomldoes not own[memory]; put it in user config under~/.grok/. /dreamconsolidates Build cross-session memory only. It is not consumer Grok memory on grok.com (Manage Grok memory).