Project memory bleeds across accounts — personal project context loads in work account session
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Here's the updated summary:
---
Title: Project memory bleeds across accounts — personal project context loads in work account session
Description:
I have two Claude accounts on the same machine: a personal account and a work account. I develop a personal project on my personal account.
When I log in to Claude Code with my work account, the memory and project context from my personal project still loads into the session — even when I open Claude Code from a completely different working directory.
Expected behavior: Project memory and context should be isolated per account. Switching to a work account should not expose personal project data.
Actual behavior: The personal project's MEMORY.md (stored at ~/.claude/projects/<project-path>/memory/MEMORY.md) is injected into work account sessions. The project memory directory under ~/.claude/ appears to be shared across accounts on the same machine.
Workaround attempted: Opening Claude Code from a different working directory — did not resolve the issue.
Environment:
- Platform: macOS (Darwin 25.5.0)
- Shell: zsh
---
What Should Happen?
Claude should load project according to which account uses is signed in
Error Messages/Logs
Steps to Reproduce
Add this section before Environment:
---
Steps to Reproduce:
- Have two Claude accounts (personal and work) on the same machine
- Use Claude Code with your personal account in a personal project directory — build up project memory over time
- Log out of the personal account and log in with your work account
- Open Claude Code from a different working directory (a work project)
- Observe that the personal project's memory context is still injected into the new session
---
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.159
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗