xAI added a memory feature to Grok Build, its coding agent, according to a company blog post. After each turn finishes, Grok reviews the exchange in the background and saves any durable conventions, decisions, or project facts as markdown notes, without interrupting the session. The company says it deliberately excludes task state, unfinished conclusions, secrets, and anything already documented in the repository.
Notes are scoped per project, plus a separate global set for preferences a developer wants applied everywhere. A command called /dream periodically consolidates the accumulated notes into organized topic files, such as topics/testing.md, and can also run on its own in the background. Developers can also pull up a new /memory command, which sorts every saved note by scope and previews each file, the fastest way to catch a stale note before it misleads the next session.
xAI says memory is live now for new Grok Build sessions, meaning any session started fresh with /new or a new grok invocation. Coding tools that already track project context across sessions will now be measured against how well xAI’s notes actually persist and stay accurate over time.
xAI detailed the memory feature in a September 2026 post on its own blog.