Skip to main content
Code Guide
T08 Intermediate Technical

Auto-Memories — When and How

The automatic memory system vs manual CLAUDE.md

PDF
← All cards

What is it?

Introduced in v2.1.59 (February 2026), auto-memories allow Claude Code to save useful context between sessions without manually editing CLAUDE.md. Claude identifies key decisions during conversations and stores them automatically for future sessions in the same project.

Do not confuse with Claude.ai memory (web interface). These are two distinct systems. Claude Code auto-memories are local, per-project, with no connection to your claude.ai account.

Where memories are stored

~/.claude/projects/<encoded-path>/memory/MEMORY.md

For project-level memories (if you use .claude/memory/):

.claude/memory/MEMORY.md

Since v2.1.63, auto-memories are shared across git worktrees of the same repo.

What gets memorized

Architectural decisions:
"This project uses Prisma for database access"
Team preferences:
"Functional components are preferred over classes"
Specific patterns:
"API routes follow RESTful naming in /api/v1/"
Known issues:
"Do not use package X, version conflict with Y"

CLAUDE.md vs Auto-Memories

AspectCLAUDE.mdAuto-Memories
ManagementManual editingAutomatic capture
SourceExplicit documentationConversation analysis
VisibilityGit, shared with teamLocal user, gitignore
Ideal contentTeam conventionsPersonal discoveries
ControlFullLimited

Managing memories with /memory

Terminal window
# In Claude Code (interactive mode)
/memory # View, edit, or delete entries

When to use which

Write in CLAUDE.md manually: team conventions, critical rules everyone must follow, official architectural decisions.

Let auto-memories work: personal workflow preferences, patterns discovered mid-session, temporary context tied to a feature in progress.

Main limitation: no fine-grained control over what gets memorized automatically. If a captured decision becomes outdated, it must be deleted manually via /memory. Auto-memories are not committed to Git, so they remain invisible to other team members.

Enter your email to read the full card and get the complete PDF bundle.

All content is free and open-source. We just ask for your email.

PDF: