Anthropic has now built persistent memory into Claude Code. It works in two ways. First, there’s Auto Memory, where Claude automatically saves useful project context, patterns, and preferences. Second, there’s the CLAUDE.md file, which stores project instructions and context that get loaded into future sessions.