Memory & persistence

Does Claude Code have persistent memory? How does it compare to Claude Chat's memory?

By Mika Reyes and Nick Reyes ·

Short answer

Not by default. Claude Code does not silently memorize past sessions the way Claude Chat's Memory does. Instead, you persist what matters in files: CLAUDE.md is read at the start of every session, and it can point to supporting files like tone.md and projects.md that you can review, version, and share.

The longer answer

Claude Chat can store Memory automatically and surface it later. Projects in Chat also carry instructions and context across chats in that project.

Claude Code does not silently memorize. You persist what matters in files:

  • CLAUDE.md — read at session start; put role, goals, tone, current priorities here.
  • Supporting files (for example tone.md, projects.md) linked from CLAUDE.md.

Chat memory is convenient but opaque. File-based memory is manual and transparent: you can diff it, version it, and share it. For steady professional use, that tradeoff is usually worth it.

Learn Claude Code hands-on

These answers come from our Maven Lightning Lesson Q&A. To build your own agent setup with CLAUDE.md, skills, and MCPs step by step, join Master Claude Code as a Non-Technical Pro or browse all Claude Code for Non-Technical Pros guides.

Using an AI assistant? Give it the Markdown version of this answer.