Does Claude Code have memory?

Yes. Claude Code has memory: Anthropic’s Claude Code memory documentation says two mechanisms carry knowledge across sessions, CLAUDE.md files that you write and auto memory, which is notes Claude writes itself based on your corrections and preferences.

As of November 11, 2026, auto memory is on by default in local sessions. Each project gets its own memory directory at ~/.claude/projects/<project>/memory/, shared by all worktrees of the same git repository. The first 200 lines or first 25KB of its MEMORY.md index, whichever comes first, load at the start of every conversation. Auto memory is machine-local and is not shared across machines or cloud environments.

To turn auto memory off, open /memory in a session and use the auto memory toggle, set "autoMemoryEnabled": false in a project’s settings, or set CLAUDE_CODE_DISABLE_AUTO_MEMORY=1. Run /init to generate a starting CLAUDE.md for a project.

Related: Does Claude have memory?, What is the Claude Code context window? and What are the Claude Code system requirements?

Source: Claude Code Docs (Anthropic), How Claude remembers your project

Image: Claude logo by Anthropic, public domain (trademarked), via Wikimedia Commons. Placed on a white background and resized. Claude is a trademark of Anthropic. FreeAnswers is not affiliated with or endorsed by Anthropic.



Related answers

Leave a Comment