Save a memory note with /remember in Grok Build
Save a memory note with /remember in Grok Build
/remember <note> is a shell-provided command that saves a memory note for later sessions. It only appears when cross-session memory is enabled. Official: Modes and Commands.
Prerequisites
[memory]
enabled = true
in ~/.grok/config.toml / $GROK_HOME/config.toml, or export GROK_MEMORY=1 for one process. Enable walkthrough: Enable cross-session memory in Grok Build.
Save a note
/remember Prefer cargo clippy --all-targets before opening a PR in this repo
- Open a Grok Build TUI session with memory on.
- Type
/rememberplus the fact you want kept across sessions. - Optionally run
/flushso the note hits disk before you exit — Flush conversation memory.
Keep secrets, tokens, and private keys out of memory notes. Prefer project rules in AGENTS.md for durable repo instructions that every session should load — see Make Grok Build follow AGENTS.md.
After you save
| Next step | Command / how-to |
|---|---|
| Force a disk write | /flush |
| Browse or edit stored notes | /memory — Browse memories |
| Consolidate a pile of notes | /dream — Run /dream |
Pitfalls
/rememberwithout memory enabled never shows up — turn[memory]on first.- Project
.grok/config.tomlcannot enable memory; use user config under~/.grok/. - AGENTS.md rules load every session in the tree; memory is opt-in and off by default. Pick the surface that matches how sticky the fact should be.