About

What Is Claude Code Auto Memory? Remembering Across Sessions

Claude Code

Saved under ~/.claude/projects/, or on demand with "remember this"

Auto Memory is a feature that lets Claude Code remember important patterns, user preferences, and project structure across sessions. It auto-saves to a MEMORY.md file and automatically loads at the start of the next session. Say "remember this" to manually save specific information.

How to Use

1

Claude Code auto-detects and saves important patterns during work

2

Saved to ~/.claude/projects/project/memory/MEMORY.md

3

Manual save with "remember this", "always use bun", etc.

4

Delete specific memories with "forget this", "stop remembering X"

Tags

#memory #context #session #persistent #auto

Source

Anthropic Docs

← Context · Memory · Handoff Complete Guide What Is /btw in Claude Code? Asking Side Questions Mid-Task →