Claude Code gains auto-memory to persist context across sessions

Claude Code has just rolled out auto-memory, letting it retain project context, debugging patterns, and preferred approaches between sessions. The update also introduces Memory.MD alongside Claude.MD, with a /memory toggle to disable it.

claude cover

TL;DR

  • Auto-memory in Claude Code: Persists project context, debugging patterns, and preferred approaches across sessions
  • Continuity benefit: Reduces repeated re-explanations when returning to long-running codebases and workflows
  • Replaces manual workarounds: Less reliance on hand-rolled logs and files to preserve project state
  • File model: Claude.MD for instructions; Memory.MD as a Claude-updated scratchpad when asked to remember
  • Team implications: Memory.MD is user-scoped; Claude.MD better fits shared, versioned guidance
  • Availability and control: Available to everyone; disable via /memory command

Claude Code is getting a notable quality-of-life upgrade with a new auto-memory feature that persists information across sessions. In a post on X, Thariq announced that Claude can now remember project context, debugging patterns, and preferred approaches and recall them later—reducing the familiar “re-explain everything” loop that tends to happen when returning to a long-running codebase or workflow. The update was shared at x.com/trq212/status/2027109375765356723.

What auto-memory changes in day-to-day Claude Code use

The core idea is continuity: information Claude learns in one session can show up in a future session without requiring manual notes. Several replies immediately framed this as closing a practical gap in using Claude Code for “real work,” where context loss between sessions becomes the main source of friction.

One developer summed up the workaround many teams have already built: maintaining hand-rolled logs and files to carry project state forward, but paying constant overhead to keep it accurate. Auto-memory aims to absorb that work into the tool itself.

Claude.MD vs Memory.MD: a clearer separation (mostly)

Thariq described a simple mental model:

  • Claude.MD functions as instructions to Claude.
  • Memory.MD acts as a memory scratchpad that Claude updates.

If asked to remember something, Claude will write it into Memory.MD. That makes the feature feel less like an invisible toggle and more like a concrete artifact in the workflow—especially for developers already accustomed to checking repo-adjacent instruction files.

Still, at least one reply questioned the separation in practice, noting that Memory.MD is user-scoped (and therefore not inherently git-tracked for a team), while Claude.MD is the more natural place for shared, versioned guidance.

Controls and rollout status

Auto-memory appears to have been rolling out gradually, but Thariq said it is now available to everyone. The feature can also be disabled via the /memory command, which was reiterated in replies to multiple “can it be turned off?” questions.

The hard problems: decay, contradictions, and context hygiene

Even in the immediate reaction, developers pointed to the tricky edge cases that show up once memory exists: what happens when older assumptions become wrong, how contradictory info is handled across sessions, and whether the system prunes stale entries over time. One commenter noted that stale context applied confidently can be worse than no memory at all—because it fails quietly while sounding authoritative.

The docs link was also shared for deeper details on how Claude memory works: https://t.co/EE3QFhcaM6.

Original source: https://x.com/trq212/status/2027109375765356723

Continue the conversation on Slack

Did this article spark your interest? Join our community of experts and enthusiasts to dive deeper, ask questions, and share your ideas.

Join our community