Cmd. /memory
Manages CLAUDE.md and auto memory. Saved project instructions can affect later sessions.
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-09-22 · Claude Code 2.1.278 |
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.