[DOCS] Memory docs are missing `CLAUDE_CODE_AUTO_MEMORY_PATH` override behavior

Resolved 💬 2 comments Opened Mar 4, 2026 by coygeek Closed Mar 18, 2026

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:

  1. CLAUDE_CODE_AUTO_MEMORY_PATH semantics.
  2. Precedence relative to default project-derived path.
  3. Example values and cross-platform path examples.
  4. 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_PATH env var to override the auto-memory directory with a direct path.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗