The Split Brain
Problem.
Claude Desktop and Claude Code silently build separate memory systems. You are probably training two assistants right now and don’t know it.
Three apps.
Three brains.
Claude Desktop, Claude Code in the terminal, and the VS Code extension all store memory in different directories. They look the same. They feel the same. They are not the same. Every correction you give one interface is invisible to the others.
How Claude actually
stores memory.
Claude’s memory is a folder of markdown files on your computer. Each memory is a small .md file with a name, type, and description. An index file called MEMORY.md lists them all.
Open Claude Desktop from your home folder? Memory goes to:
~/.claude/projects/-Users-YourName/memory/Open Claude Code inside a project folder? Memory goes to:
~/.claude/projects/-Users-YourName-Desktop-my-project/memory/Different paths. Different folders. No sync between them.
What we found in a
production workspace.
After weeks of working across Claude Desktop and Claude Code, a routine audit revealed three separate memory directories with different content.
| Interface | Memory Path | Files | What It Knew |
|---|---|---|---|
| Claude Desktop | ~/.claude/projects/-Users-Name/ | 20 | Kajabi workflows, early project notes, tech contacts |
| Claude Code (VS Code) | ~/.claude/projects/-Users-Name-Desktop-CLAUDE/ | 25 | Deploy processes, writing rules, session protocols |
| Git repo copy | Desktop/CLAUDE/.claude/projects/.../ | 27 | Partial superset, stale in places |
Check if you have
this problem.
Open your terminal and run these commands. Takes 30 seconds.
One directory.
Symlinked everywhere.
A symbolic link tells your operating system: “when you look for files here, go look over there instead.” Claude follows the link without knowing it exists.
VS Code writes to Dir B
Git tracks Dir C
Nothing connects them.
Dir A → symlink to real dir
Dir B → symlink to real dir
Same brain. Every interface.
How to
fix it.
Copy, paste,
done.
Adjust the paths to match your setup. The pattern is the same for everyone.
Prevent this from
day one.
If you are just getting started with Claude, do this before anything else.
2. Run your first session from there. Tell Claude to remember something. This creates the memory directory.
3. Open your other Claude interface. (Desktop app or VS Code, whichever you didn’t use first.) Check if it created a second memory path.
4. If two paths exist, symlink immediately. Before they have a chance to diverge. The five-minute fix now prevents the hours-long merge later.
Clearing sessions
without losing context.
Claude Desktop lets you clear old sessions to free disk space. This is safe as long as your work is committed. Build a pre-clear checklist into your workflow.
git status. If anything is modified or untracked, commit first.✓ Unpushed commits? Run
git log origin/main..HEAD. If anything shows up, push first.✓ Memory files tracked? Make sure your .claude/memory directory is committed to git.
✓ Active plans? Check
~/.claude/plans/ for any in-progress plans. Copy them somewhere persistent before clearing.All green? Safe to clear. Your memories, rules, and work product live in the git repo. The chat transcripts are just conversation logs.
Quick reference.
| What | Details |
|---|---|
| The problem | Each Claude interface stores memory in a separate directory. Multiple interfaces means multiple brains. |
| Who is affected | Anyone using Claude Desktop AND Claude Code. That is most serious Claude users. |
| The symptom | Corrections don’t carry over. Claude “forgets” things you already taught it in a different interface. |
| The fix | Merge memory directories. Symlink all paths to one canonical location. Git-track it. |
| Prevention | Set up symlinks on day one, before the directories have a chance to diverge. |
| Time to fix | 5 minutes for a fresh setup. 15 to 30 minutes for an established workspace with diverged files. |
The path formula.
Every Claude memory directory follows the same pattern. Understanding this lets you predict where memory will land for any project.
One brain.
Every interface.
The people who get the most from Claude don’t just write better prompts. They build infrastructure that lets Claude stay coherent across every session, every tool, every context switch.
Memory is the foundation. If it’s fractured, nothing built on top of it holds together. Fix the split. Build on solid ground.