xAI Adds Cross-Session Memory to Grok Build
xAI introduced cross-session memory for developers using Grok Build on September 16. According to the company, the tool can now carry conventions, decisions and durable project facts from one session to another. The feature is available now, with notes beginning after the first completed interaction in a new session.
After each completed turn, Grok reviews the interaction in the background and selects information that may remain useful. Examples include coding and review practices, decisions and their reasoning, subsystem locations and commands used to run tests. xAI says temporary task state, tentative conclusions, secrets and information already covered by repository files or documentation are excluded.
The retained information is stored as Markdown, with separate topic files for different subjects. Every project has its own workspace scope, while a global scope holds user preferences that apply across projects. The /dream command merges recent observations into the relevant topic files and also runs periodically in the background.
When a developer returns to a project, Grok reads the topics relevant to the work it is about to perform before modifying related code. Instructions in the current conversation take precedence over stored notes, xAI says. This allows a developer to replace an outdated retained rule by giving corrected instructions in a later session.
The /memory command opens a read-only browser listing memory files by global and workspace scope. Users can preview entries, search the list and copy the path of a file that needs correction. In xAI’s example, a stored testing note tells the agent to run just test rather than cargo test because the former starts the test database first.
Practical context: In practice, this structure may reduce the need to repeatedly explain stable repository conventions to the agent. It also creates another layer of project context that may warrant periodic review. Markdown files and separate scopes make the records visible, but xAI provides no measurements of selection accuracy or the frequency of incorrect retained information.
Memory applies only to new sessions. To activate it, xAI instructs users to run /new or start a fresh grok process. The company says capture occurs in the background after a turn has finished and does not interrupt or block the active session.
Sources
Event date: 2026-09-16. Primary source date: 2026-09-16.