Cmd. /memory
Manages CLAUDE.md and auto memory. Saved project instructions can affect later sessions.
Written and reviewed by Eric Han · Co-founder & CTO, reopt
Key takeaways
- Manage
CLAUDE.mdfiles and auto memory. - Check the input surface and availability before using the examples below.
Purpose
Manage CLAUDE.md files and auto memory.
/memoryAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-10-23 · Claude Code 2.1.308 |
The installed command menu and account or organization settings determine availability.
Examples
/memoryEffects and persistence
Manages CLAUDE.md and auto memory. Saved project instructions can affect later sessions.
Cautions
Disable auto memory with autoMemoryEnabled: false or CLAUDE_CODE_DISABLE_AUTO_MEMORY=1. Keep authored CLAUDE.md instructions distinct from automatically written memory.
Check whether you are editing project instructions, user instructions, or auto memory before saving. From v2.1.285, Auto-memory cannot be turned on from a background session or from a session started by one of Claude Code's own tools; turning it off there still works.