claude-code - 💡(How to fix) Fix [FEATURE] Auto-memory should support user-scoped entries, not only project-scoped [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48416Fetched 2026-04-16 07:00:45
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×3commented ×2closed ×1

Root Cause

If the assistant said "I cannot remember preferences across projects," users would compensate by repeating themselves. Instead, the assistant confirms it saved the memory, the user believes they have taught Claude a global preference, and then a week later in a different repo Claude does the opposite. That is a worse UX than having no memory at all, because it quietly violates the user's mental model.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Auto-memory is always stored per-project under ~/.claude/projects/<slug>/memory/, where the slug is derived from the cwd Claude was launched in. This means a memory saved while running Claude from ~ will not be loaded when Claude is later launched from ~/some-project. This is fine for project-specific facts, but it is the wrong default for user-specific preferences. A memory like "user prefers shell, Node, or Ruby over Python for ad hoc scripts" is a fact about the human, not about any one codebase. Scoping it per-project means the preference silently fails to apply in other projects, and the user gets inconsistent behavior across cwds without any indication of why.

If the assistant said "I cannot remember preferences across projects," users would compensate by repeating themselves. Instead, the assistant confirms it saved the memory, the user believes they have taught Claude a global preference, and then a week later in a different repo Claude does the opposite. That is a worse UX than having no memory at all, because it quietly violates the user's mental model.

Proposed Solution

Let the assistant mark a memory as user-scoped or project-scoped at save time. Store user-scoped memories in a single cwd-independent location (for example ~/.claude/memory/) and load them in every session regardless of where Claude was launched. The existing per-project directory continues to hold project and reference memories. A reasonable heuristic for the assistant: memories of type: user and most of type: feedback should default to user-scoped, while type: project and type: reference should default to project-scoped. The assistant can ask when genuinely ambiguous.

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

Configuration and settings

Use Case Example

  1. Run Claude from ~. Tell it "I do not want to use Python for scripts, prefer shell or Node."
  2. Claude saves a feedback memory under ~/.claude/projects/-Users-me/memory/.
  3. Later, run Claude from ~/some-repo. Ask it to write a quick scraper.
  4. Claude reaches for Python, because the memory lives in a different project slug.

Additional Context

No response

extent analysis

TL;DR

To fix the inconsistent behavior of user-specific preferences across projects, store user-scoped memories in a single, cwd-independent location and load them in every session.

Guidance

  • Introduce a scoping mechanism for memories, allowing the assistant to mark them as user-scoped or project-scoped at save time.
  • Store user-scoped memories in a central location, such as ~/.claude/memory/, and load them in every session regardless of the launch directory.
  • Develop a heuristic for the assistant to default memories to user-scoped or project-scoped based on their type, such as type: user and most type: feedback being user-scoped.
  • Consider adding a prompt for the assistant to ask when the scope of a memory is ambiguous.

Example

No code snippet is provided as the issue focuses on the conceptual solution rather than specific implementation details.

Notes

The proposed solution aims to improve the user experience by ensuring consistent application of user-specific preferences across different projects. However, the exact implementation details, such as the heuristic for determining memory scope, may require further refinement.

Recommendation

Apply the proposed solution of storing user-scoped memories in a central location and loading them in every session, as it directly addresses the issue of inconsistent behavior across projects.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Auto-memory should support user-scoped entries, not only project-scoped [2 comments, 2 participants]