Summary
Currently, Claude Code's memory is project-scoped only. Memory files are stored at:
~/.claude/projects/<encoded-git-root>/memory/
This means memory created in one project is not accessible in other projects. Users who want to share common patterns, preferences, or debugging insights across projects must manually duplicate content into each project's CLAUDE.md.
Use Cases
- Cross-project developer preferences: Coding style preferences, commonly used commands, debug patterns that apply across all projects
- Team-shared knowledge: Architecture decisions, coding standards, onboarding notes that should be available to all projects
- Personal efficiency: Remembering "always use bun instead of npm" without needing to configure it per project
Proposed Solution
A global memory layer that persists across all projects:
- Global memory file:
~/.claude/memory/ or similar location
- Project memory: Current
~/.claude/projects/<project>/memory/
- Search order: Project memory → Global memory (project overrides global)
Alternatively, a memoryDirectory setting in settings.json that supports:
.claude/memory (relative → repo-local)
~/.claude/shared_memory (absolute → global shared)
Workaround
Currently users must maintain separate .md files or manually copy content between projects. This is error-prone and doesn't scale.
References
Originally submitted via Claude Code feedback tool
Summary
Currently, Claude Code's memory is project-scoped only. Memory files are stored at:
~/.claude/projects/<encoded-git-root>/memory/This means memory created in one project is not accessible in other projects. Users who want to share common patterns, preferences, or debugging insights across projects must manually duplicate content into each project's CLAUDE.md.
Use Cases
Proposed Solution
A global memory layer that persists across all projects:
~/.claude/memory/or similar location~/.claude/projects/<project>/memory/Alternatively, a
memoryDirectorysetting insettings.jsonthat supports:.claude/memory(relative → repo-local)~/.claude/shared_memory(absolute → global shared)Workaround
Currently users must maintain separate
.mdfiles or manually copy content between projects. This is error-prone and doesn't scale.References
Originally submitted via Claude Code feedback tool