[BUG] CLAUDE.md/memory file edits show "Writing memory" without diff - cannot see what changed
Environment
- Claude CLI version: 2.1.31
- Platform: macOS
- Terminal: Ghostty
Bug Description
When Claude edits CLAUDE.md files (memory files), the UI shows "Writing memory" or "Wrote memory" instead of displaying the actual diff like it does for other files. Even using Ctrl+O to expand verbose output does not reveal what changes were made.
This is a significant transparency issue - users cannot see what Claude is writing to their memory/instruction files without separately opening the file and checking git diff.
Steps to Reproduce
- Ask Claude to add something to CLAUDE.md (e.g., "add a note about X to my CLAUDE.md")
- Observe that the edit shows "Writing memory" instead of the old/new diff
- Press Ctrl+O to expand - still no diff visible
Expected Behavior
CLAUDE.md edits should show the same diff preview as any other file edit, showing:
- The old content being replaced
- The new content being written
- Line numbers and context
Actual Behavior
Shows only "Writing memory" / "Wrote memory" with no visibility into actual changes.
Why This Matters
Memory files contain instructions that affect all future Claude interactions. Users need to:
- Verify Claude understood their intent correctly
- Catch any unwanted additions or modifications
- Maintain control over what instructions they're giving Claude
The diff visibility for regular code files exists for good reason - the same reasoning applies even more strongly to memory/instruction files.
12 Comments
Additional Corroboration from Twitter/X
Did some searching and found others noticing similar changes today (Feb 4, 2026):
"Writing memory" feature noticed:
Diff rendering issues:
General behavior changes:
This suggests the "Writing memory" display change is part of a broader server-side feature flag rollout affecting diff/memory handling. @ClaudeCodeLog tracks feature flags if that's helpful for investigation.
I also find this to be a huge regression. There is no way to tell what is being written to or read from CLAUDE.md, even hitting Ctrl+O and Ctrl+E doesn't show any more information. You have to manually go look at the file to see what changed.
Even more frustrating is the model seems to assume that the user can see it, so even when explicitly told to say what it just wrote to CLAUDE.md, it does things like this:
So it tells you to hit ctrl+o but then ctrl+o just shows:
Which is equally useless and frustrating.
There is also no distinction in the UI about whether the model is writing to CLAUDE.md vs MEMORY.md
This is a similar pattern to https://github.com/anthropics/claude-code/issues/21151 and feels actively hostile to any sort of oversight, introspection, or human governance.
@TweedBeetle Are you sure it was writing to CLAUDE.md?
I noticed Claude just started doing this, looked into and it seems it is writing to
~/.claude/projects/{project}/memory/. This seems to be a new memory feature (or the one which claude.ai has had for a while has now been enabled in Claude Code).For now there appears to be no way to disable this feature, though you can block edits with permission rules.
More info here: https://gist.github.com/milobird/a1f256829ac75553c1a3bd64a5839eb4
@milobird from what I can tell writing to ~/.claude/projects/{project}/memory/MEMORY.md and any CLAUDE.md both just show the same opaque "writing 1 new memory" line. It also seems the project's MEMORY.md is inject into every conversation in that project, which seems like a questionable design choice.
@casepot Exactly.
I'm pretty sure it's a bug that this has been enabled in production, it's probably a feature that's still under development.
See also: https://github.com/anthropics/claude-code/issues/23341
Hi everyone, thanks for the feedback! I'm working on updates to the UI based on this thread as well as getting our docs for auto-memory published. If you want to opt-out, you can disable auto-memory by setting the env var
CLAUDE_CODE_DISABLE_AUTO_MEMORY=1@rboyce-ant The issue is the hidden diffs for
CLAUDE.mdupdates, not auto-memory. I'd like to keep auto-memory enabled.When I ask Claude to add a specific line to
CLAUDE.md, I only see this now (no diffs). Which means I have to open the file and review every change manually. I'm using verbose mode too.<img width="1315" height="587" alt="Image" src="https://github.com/user-attachments/assets/65b640e5-f8f4-48a5-9de2-3ccf67c71620" />
This has nothing to do with auto memory
The problem is WE CANNOT SEE what it has changed
Why do you treat your developers like retarded dumbasses? This is so annoying
After I tell claude to edit it's memory, now I need to tell it "what have you changed" just to see what it has changed, WASTING more tokens in the process
AT LEAST give us an option to disable this dumbass stuff you're adding for no reason that improves NO ones productictivity
Additional corroboration from X/Twitter
@novel_engineer (Feb 5):
This directly echoes the core issue: the auto-memory UI treatment has been applied to CLAUDE.md edits too, hiding diffs that were previously visible.
Note: the broader auto-memory complaints (hidden MEMORY.md, not git-tracked, etc.) are a separate concern tracked in #23341. This issue is specifically about CLAUDE.md edit diffs being suppressed.
Adding a related data point: I have
CLAUDE_CODE_DISABLE_AUTO_MEMORY=1set (the documented env var to disable auto-memory/MEMORY.md). The env var works correctly — nothing is written to MEMORY.md.However, the UI still shows "Recalled 1 memory, wrote 1 memory" during normal sessions when Claude reads or edits CLAUDE.md files. This is confusing because:
The root issue is that two distinct features — auto-memory (MEMORY.md) and CLAUDE.md read/write — share the same UI treatment ("Recalled/Wrote memory"). The env var only disables one; the other continues using "memory" terminology with no way to opt out of the collapsed UI.
Agreed with the original report that CLAUDE.md edits should show normal inline diffs like any other file. The "memory" UI abstraction is especially problematic for users who version-control their CLAUDE.md files and need to review changes before committing.
This is fixed as of v2.1.30 – CLAUDE.md changes will still show diffs like other files.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.