Skip to content
BENIBIX Learn

Auto Memory

AI⌨️ Claude CodeClaude Code Concepts

Also known as Claude Code auto memory, MEMORY.md, /memory

Notes Claude writes for itself, loaded again at the next session.

Think of it like

It is like a diary a helper keeps. It reminds them what you like.

Example

Jack tells Claude twice not to change the lock file. Claude saves a note, and the next day it leaves the lock file alone without being told.

Why it matters

Claude gets better at working with you, and you do not have to write each lesson down.

Definition

Auto memory is the notes Claude writes for itself as it works with you. It saves things like your preferences, corrections you gave and facts about the project that the code does not show. The notes live in a folder for each repository under ~/.claude/projects/. An index file named MEMORY.md is loaded at the start of each session, up to its first 200 lines or 25 KB. You write CLAUDE.md. Claude writes auto memory.

Example code

console
/memory
Open your memory files, or turn this on or off.
You write one file. Claude writes the other.

Common mistake

Never reading what it saved. Open /memory now and then, and delete notes that are wrong or out of date.

Key takeaways

  1. 1
    Written by Claude. Not by you.
  2. 2
    Per repository. Under ~/.claude/projects/.
  3. 3
    Index loads. First 200 lines.

Compare

Learn it properly