xAI Adds Cross-Session Memory to Grok Build

The coding tool now turns durable project context into background-written Markdown notes. The practical test is whether automated recall stays accurate as work changes.

By 3 min read
xAI Adds Cross-Session Memory to Grok Build
xAI Adds Cross-Session Memory to Grok Build

Listen to this story

The audio brief

About 1:25
0:001:25
Read transcript
xAI has given Grok Build a way to remember useful project context across coding sessions, instead of making developers re-explain the same conventions every time. After a turn is complete, Grok reviews the exchange in the background and writes durable knowledge into Markdown files. That might include a team’s coding or review conventions, a decision and the reasoning behind it, a stable fact about where a subsystem lives, or the command used to run tests. The feature is deliberately narrower than a transcript. Task state, tentative conclusions, secrets, and information already documented in the repository are supposed to stay out of memory. The notes are split between a project workspace and a global scope for preferences that can apply across projects. Developers can inspect them with the read-only /memory browser, while /dream consolidates recent observations into subject-based files, including topics such as testing. When related work begins, Grok reads the relevant notes, even if the new conversation does not mention them. Current-chat instructions take priority over anything stored. There is one important catch: memory is available now, but only in new sessions. Users need to run /new or start a fresh session, and notes begin after that session’s first completed turn. The open question is whether these background summaries stay accurate as codebases change—or become another layer developers have to correct.

Story brief

3 key points

xAI has introduced persistent memory in Grok Build, turning selected project knowledge into inspectable Markdown files that can inform future coding sessions. The system separates project and global scopes, excludes secrets and temporary task state, and lets current-chat instructions override stored notes. Memory is available now only in new sessions, with users able to review or edit generated files through...

  1. 01

    Memory is available now in Grok Build, but users must run /new or start a fresh session to activate it.

  2. 02

    Notes are created after completed turns and may capture conventions, decisions with rationale, stable facts, and test commands.

  3. 03

    Task state, tentative conclusions, secrets, and information already documented in the repository are excluded.

Grok Build no longer starts every fresh coding session with a blank slate. xAI has added persistent memory that carries project conventions, decisions and durable facts into later sessions, aiming to spare developers from repeatedly explaining how a codebase works.

A note is created after the work

The feature works after a turn is complete, rather than while the user is waiting for an answer. Grok reviews the finished exchange in the background and records information xAI considers durable, without interrupting the session. That can include a team’s coding and review conventions, a decision and its reasoning, or stable facts such as where a subsystem lives and which command runs the test suite.

xAI draws a boundary around what it says the system should retain. Task state, tentative conclusions, secrets, and material already covered by the repository or its documentation are left out. The distinction matters: the feature is positioned as a record of settled working knowledge, not a full transcript or a substitute for project source material.

Project knowledge gets its own files

The retained material is kept as Markdown rather than an invisible internal store. Each project has its own workspace scope, while a global scope holds preferences that can apply across projects. Over time, the /dream command folds recent observations into one topic file per subject; xAI says that process also runs periodically in the background.

Two commands expose the memory layer

  • /memory opens a read-only browser for memory files, grouped by scope, and lets users preview a selected file.
  • /dream organizes recent notes into topic files, such as a file covering testing practices.

The recall step is more consequential than the file format. When a developer returns to a project, Grok reads the topics covering the area it is about to work on, including subjects that may not be raised in the new conversation. xAI says instructions in the current chat override anything stored in a note, preserving the immediate request as the controlling instruction.

The feature begins with a new session

Memory is available in Grok Build now, but it applies to new sessions. Users must run /new or start a fresh Grok session; notes begin after that session’s first completed turn. The release does not establish how often retained notes will be wrong or stale. It does, however, make inspection part of the workflow: users can browse the generated files and locate a note to edit when it is incorrect.

That leaves Grok Build’s next test less about whether it can save a useful convention than whether its background summaries remain dependable as a project evolves. The system’s design gives users visible files and current-session override rules, but its value will depend on whether those safeguards make accumulated context easier to trust instead of another layer developers must continually correct.

Sources

  1. x.aiMemory in Grok Build

Loading discussion...

xAI Adds Cross-Session Memory to Grok Build | Superpower Daily