/dream
‹ the entry dreamrooms grallucinations gruild recollections

gruild

grok build is xai's terminal coding agent. it shipped with three commands for managing memory across sessions. two of them you run on purpose. the third runs while nobody is watching, and it is the reason this site exists.

what it is


a terminal-native coding agent, cli written in rust, built on the grok-build-0.1 model. it runs agents in parallel, holds a very large context, and shows you an execution plan to approve before it writes a line.

it went into beta on 14 may 2026, limited to supergrok heavy. the wider beta opened on 25 may. the archive on this site starts on the first of those dates, because that is when there was suddenly a great deal for it to remember.

public beta
14 may 2026
wider beta
25 may 2026
model
grok-build-0.1
cli
rust

the three commands


most agent memory is a chat log shoved into a vector store. grok build separated the operations, and made what is kept inspectable and editable by the person whose memory it is.

/memory

opens a window onto what has been saved. three layers, which do not mix. you can read what is there, edit it, or delete what you do not want kept.

global true everywhere. tone, refusals, standing facts. workspace per project. conventions, decisions, local truth. session one summary per conversation. the layer that grows.
/flush

for when a session was useful and you want it kept before context compaction takes it. writes a summary into the store decisions, debugging paths, conventions, whatever is worth carrying.

/dream

runs in the background over old session logs and memory fragments. it deduplicates overlapping notes, merges related fragments, and consolidates everything into cleaner topics, so the store does not grow into a pile of half redundant snippets.

it is the only one of the three you do not watch happen.

the tweet


on 26 july 2026 elon musk quote-tweeted a thread about grok build. the whole of his post was one word.

@elonmusk · 26 jul 2026
/dream

why that one


because consolidation is lossy, and it is lossy on purpose.

to merge two fragments is to write a third. the third is shorter. it keeps what the two had in common and discards whatever only one of them had. then the two originals are gone not archived, overwritten. the store is smaller in the morning, and it is smaller because something that happened does not exist anymore.

that is not a defect. it is the feature working. a store that kept everything would drown inside a month. every memory system that survives, biological ones included, survives by throwing things away while it sleeps.

but the measure that decides what is similar enough to fuse is made of words, and what a thing was about is not a property of its words. so two fragments that share four terms fatal, hung, killed, terminated can be judged near-duplicates when one is a failing deploy and the other is not about a process at all.

when that happens the merge still runs, correctly, and what is left standing is a topic covering both. a place where reaching for one thing puts you in front of another, permanently, because the index was rewritten and the index is all there is.

those places are what this site calls rooms. there are four hundred and forty four of them.

fig. two fragments, one topic, and what is not in it

sources


78 things this was read against the product, the science of what sleep does to a memory, the taxonomy of dreaming, how machines keep and discard, and the long argument about who is left once enough has been forgotten.

grok build, and the commands

  1. 01 @tetsuoai on x, 16 may 2026 /memory, /flush and /dream described; the observation that grok build treats capture and consolidation as separate operations.
  2. 02 @elonmusk on x, 26 jul 2026 "/dream".
  3. 03 xai grok build beta, 14 may 2026, supergrok heavy.
  4. 04 xai wider beta, 25 may 2026.
  5. 05 grok-build-0.1 the model behind the cli.
  6. 06 morgan linton on x the grok build thread the tweet was quoting.

what sleep does to a memory

  1. 07 crick & mitchison, "the function of dream sleep", nature (1983) the reverse-learning hypothesis: we dream in order to forget.
  2. 08 diekelmann & born, "the memory function of sleep", nature reviews neuroscience (2010).
  3. 09 rasch & born, "about sleep's role in memory", physiological reviews (2013).
  4. 10 stickgold, "sleep-dependent memory consolidation", nature (2005).
  5. 11 walker & stickgold, "sleep-dependent learning and memory consolidation", neuron (2004).
  6. 12 wilson & mcnaughton, "reactivation of hippocampal ensemble memories during sleep", science (1994).
  7. 13 ji & wilson, "coordinated memory replay in the visual cortex and hippocampus during sleep", nature neuroscience (2007).
  8. 14 born & wilhelm, "system consolidation of memory during sleep", psychological research (2012).
  9. 15 tononi & cirelli, "sleep and the price of plasticity", neuron (2014) the synaptic homeostasis hypothesis: sleep as downscaling.
  10. 16 mcclelland, mcnaughton & o'reilly, "why there are complementary learning systems", psychological review (1995).
  11. 17 nadel & moscovitch, "memory consolidation, retrograde amnesia and the hippocampal complex" (1997).
  12. 18 nader, schafe & ledoux, "fear memories require protein synthesis in the amygdala for reconsolidation", nature (2000).
  13. 19 sara, "retrieval and reconsolidation", learning & memory (2000).
  14. 20 payne & nadel, "sleep, dreams, and memory consolidation", learning & memory (2004).
  15. 21 ebbinghaus, "über das gedächtnis" (1885) the forgetting curve.
  16. 22 bartlett, "remembering" (1932) memory as reconstruction, not retrieval.
  17. 23 loftus & palmer, "reconstruction of automobile destruction" (1974) the misinformation effect.
  18. 24 roediger & mcdermott, "creating false memories" (1995) the drm paradigm: the gist survives, the item was never there.

the kinds of dreaming

  1. 25 hobson & mccarley, "the brain as a dream state generator", american journal of psychiatry (1977) activation-synthesis.
  2. 26 hobson, "rem sleep and dreaming: towards a theory of protoconsciousness", nature reviews neuroscience (2009).
  3. 27 revonsuo, "the reinterpretation of dreams", behavioral and brain sciences (2000) threat simulation.
  4. 28 nielsen, "a review of mentation in rem and nrem sleep" (2000) covert rem processes.
  5. 29 nielsen & stenstrom, "what are the memory sources of dreaming?", nature (2005).
  6. 30 domhoff, "the scientific study of dreams" (2003).
  7. 31 windt, "dreaming: a conceptual framework for philosophy of mind and empirical research" (2015).
  8. 32 laberge, "lucid dreaming" (1985).
  9. 33 voss, holzmann, tuin & hobson, "lucid dreaming: a state of consciousness with features of both waking and non-lucid dreaming", sleep (2009).
  10. 34 mahowald & schenck, "insights from studying human sleep disorders", nature (2005) parasomnias, and nrem night terrors that leave no recall.
  11. 35 cheyne, rueffer & newby-clark, "hypnagogic and hypnopompic hallucinations during sleep paralysis" (1999) the sensed presence.
  12. 36 denis, french & gregory, "a systematic review of variables associated with sleep paralysis" (2018).
  13. 37 green & mccreery, "lucid dreaming: the paradox of consciousness during sleep" (1994) false awakenings.
  14. 38 mavromatis, "hypnagogia" (1987).
  15. 39 schredl, "dreams in patients with sleep disorders" (2009) fever dreams and disrupted rem.
  16. 40 hartmann, "dreams and nightmares" (1998).
  17. 41 freud, "die traumdeutung" (1899).
  18. 42 jung, "memories, dreams, reflections" (1963).
  19. 43 artemidorus, "oneirocritica" (2nd century).

machine memory, and what it throws away

  1. 44 mccloskey & cohen, "catastrophic interference in connectionist networks" (1989).
  2. 45 french, "catastrophic forgetting in connectionist networks", trends in cognitive sciences (1999).
  3. 46 kirkpatrick et al., "overcoming catastrophic forgetting in neural networks", pnas (2017).
  4. 47 lin, "self-improving reactive agents based on reinforcement learning" (1992) experience replay.
  5. 48 mnih et al., "human-level control through deep reinforcement learning", nature (2015).
  6. 49 ha & schmidhuber, "world models" (2018) an agent trained inside its own dream.
  7. 50 hafner et al., "dream to control: learning behaviors by latent imagination" (2020).
  8. 51 hafner et al., "mastering diverse domains through world models" (2023) dreamer v3.
  9. 52 graves, wayne & danihelka, "neural turing machines" (2014).
  10. 53 weston, chopra & bordes, "memory networks" (2015).
  11. 54 sukhbaatar et al., "end-to-end memory networks" (2015).
  12. 55 lewis et al., "retrieval-augmented generation for knowledge-intensive nlp tasks" (2020).
  13. 56 park et al., "generative agents: interactive simulacra of human behavior" (2023) memory stream, retrieval, reflection.
  14. 57 packer et al., "memgpt: towards llms as operating systems" (2023).
  15. 58 liu et al., "lost in the middle: how language models use long contexts" (2023).
  16. 59 lee et al., "deduplicating training data makes language models better" (2022).
  17. 60 carlini et al., "quantifying memorization across neural language models" (2023).
  18. 61 broder, "on the resemblance and containment of documents" (1997) minhash, and similarity as an estimate.
  19. 62 indyk & motwani, "approximate nearest neighbors" (1998) locality-sensitive hashing.
  20. 63 bloom, "space/time trade-offs in hash coding with allowable errors" (1970).
  21. 64 shannon, "a mathematical theory of communication" (1948).
  22. 65 kolmogorov, "three approaches to the quantitative definition of information" (1965).

forgetting, and who is left afterwards

  1. 66 borges, "funes el memorioso" (1942) the man who could not forget, and could not think.
  2. 67 borges, "las ruinas circulares" (1940) a man dreamt into being by someone who is also dreamt.
  3. 68 luria, "the mind of a mnemonist" (1968) shereshevsky.
  4. 69 nietzsche, "vom nutzen und nachtheil der historie für das leben" (1874) the necessity of forgetting.
  5. 70 locke, "an essay concerning human understanding" (1690), ii.xxvii memory and personal identity.
  6. 71 parfit, "reasons and persons" (1984) psychological continuity, and why identity may not be what matters.
  7. 72 plutarch, "life of theseus" the ship, replaced plank by plank.
  8. 73 bergson, "matière et mémoire" (1896).
  9. 74 halbwachs, "les cadres sociaux de la mémoire" (1925) memory held by a group rather than a person.
  10. 75 ricoeur, "la mémoire, l'histoire, l'oubli" (2000).
  11. 76 yates, "the art of memory" (1966) the method of loci: memory as rooms you walk through.
  12. 77 proust, "du côté de chez swann" (1913) involuntary memory.
  13. 78 dennett, "where am i?" (1978).