𝗖𝗹𝗮𝘂𝗱𝗲 𝗖𝗼𝗱𝗲 𝗔𝘂𝘁𝗼 𝗠𝗲𝗺𝗼𝗿𝘆: 𝗦𝘁𝗼𝗽 𝗥𝗲-𝗘𝘅𝗽𝗹𝗮𝗶𝗻𝗶𝗻𝗴 𝗬𝗼𝘂𝗿 𝗣𝗿𝗲𝗳𝗲𝗿𝗲𝗻𝗰𝗲𝘀

You open a new Claude Code session. It forgets everything you taught it yesterday. You tell it to stop using emojis. The next morning, it uses emojis again.

Claude Code Auto Memory fixes this. It records your corrections and patterns as you work. It saves these lessons for your next session.

You need Claude Code v2.1.59 or newer to use this. Run claude --version to check.

Understand the difference between CLAUDE.md and Auto Memory:

CLAUDE.md

Auto Memory

Where does the memory live?

Many people look in the wrong place. Your project has a .claude/ folder. This folder only holds settings.

Auto Memory files live in your home directory: /Users/yourname/.claude/projects/your-project/memory/

The memory path follows your git repo. Subdirectories of the same repo share one memory. This memory stays on your machine. It does not sync to the cloud.

How the system works:

Claude uses a file called MEMORY.md as an index. This index helps Claude track other topic files like debugging.md or api-conventions.md. Claude reads these extra files only when needed. This prevents your context from getting too heavy.

How to manage it:

Once you stop repeating yourself every session, you will not want to go back.

Source: https://dev.to/isray_notarray/claude-code-auto-memory-stop-re-explaining-your-preferences-every-session-35ne

Optional learning community: https://t.me/GyaanSetuAi