[DOCS] Memory docs are missing `CLAUDE_CODE_AUTO_MEMORY_PATH` override behavior
Documentation Type
Missing documentation (feature not documented)
Documentation Location
https://code.claude.com/docs/en/memory
Section/Topic
Auto-memory storage location and environment variable overrides.
Current Documentation
The storage location section currently states:
Each project gets its own memory directory at ~/.claude/projects/<project>/memory/.
No documentation currently exists for overriding this location via CLAUDE_CODE_AUTO_MEMORY_PATH.
What's Wrong or Missing?
Changelog v2.1.64 adds CLAUDE_CODE_AUTO_MEMORY_PATH to override the auto-memory directory with a direct path. Current memory docs only describe the default derived path and do not explain:
- Env var override behavior
- Scope and precedence
- Path requirements and caveats
Suggested Improvement
Add an "Override auto-memory location" subsection that covers:
CLAUDE_CODE_AUTO_MEMORY_PATHsemantics.- Precedence relative to default project-derived path.
- Example values and cross-platform path examples.
- Safety notes (permissions, shared paths, cleanup expectations).
Impact
Medium - Makes feature difficult to understand
Additional Context
Affected Pages:
| Page | Line(s) | Context |
|------|---------|---------|
| https://code.claude.com/docs/en/memory | 269-276 | Storage location section documents only default derived path |
| https://code.claude.com/docs/en/interactive-mode | 126 | /memory command docs link to memory behavior but no override reference |
Total scope: 2 pages affected
Source: Changelog v2.1.64
- Added
CLAUDE_CODE_AUTO_MEMORY_PATHenv var to override the auto-memory directory with a direct path.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗