rvachev.orgEN / RU / 🤖
← Back to essays
· Essay · 1 min

Auto-Memory in Claude Code

Now Claude Code remembers project context between sessions and pulls this in automatically.

Now Claude Code remembers project context between sessions - debugging patterns, coding preferences, architectural decisions - and pulls this in the next session automatically.

How it works:

- Claude writes notes to the directory ~/.claude/projects/<project>/memory/
- The main file MEMORY.md (the first 200 lines) is loaded in each session
- Detailed notes are stored in separate files (debugging.md, api-conventions.md) and read on demand
- You can say "remember that we use pnpm" - and it will save it

What it remembers:

- Build, test, linter commands
- Code style and naming conventions
- Solutions to complex bugs
- Key files and relationships between modules

In addition to auto-memory, there is a hierarchy of CLAUDE.md files - from organizational level to personal settings on the project. You can even create modular rules in .claude/rules/ tied to specific paths via glob patterns.

Documentation: code.claude.com/docs/en/memory

Newsletter

Get new posts by email

A weekly digest of what I write about AI, software and products. Unsubscribe anytime.