/memory

Last updated

What is /memory?

The /memory command is a knowledge management tool used to create and manage persistent information that survives across different Claude Code sessions. Unlike the /compact command, which only optimizes the current conversation's temporary window, /memory interacts with permanent storage—primarily your project's CLAUDE.md file and a hidden auto-memory directory. When you run this command, it typically opens your system's default text editor, allowing you to manually refine the coding standards, architectural decisions, and project-specific patterns that Claude should "remember" every time you launch the tool in that directory.

Free resources to learn /memory

More in stage 9: Hooks

/memory: common questions

Can I learn /memory in Hindi?

This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain /memory in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.

Is this /memory tutorial for beginners?

It is lesson 73 of 109 in the free Claude Code roadmap, in stage 9, Hooks. If you are new to Claude Code, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.

Still confused? Ask me