Save a fact to memory during a session
memory & settings
// what it does
Ask Claude to remember something in plain language ("remember that the API tests need a local Redis instance") and it saves the note to auto memory, a per-repository store at ~/.claude/projects/<project>/memory/ that persists across sessions and worktrees. The first 200 lines (or 25KB) of MEMORY.md load into every session; topic files load on demand. To add a durable rule instead, say "add this to CLAUDE.md."
// shell
$ /memory// gotcha
Auto memory is machine-local and not shared across machines or with your team. It is on by default; disable it per project with "autoMemoryEnabled": false or globally with CLAUDE_CODE_DISABLE_AUTO_MEMORY=1.