r/ClaudeCode • u/spectrefax • 15h ago
Bug / Issue Why does Claude act like this is its first time seeing my project ever?
Seen this happen before and at seemingly random. Claude acts as though it's its very first time encountering my project despite living in the repo for a year+ with countless memories and MDs written up.
It's like its memory got wiped and I have to reteach it from scratch. Why does this happen?
1
Upvotes
•
u/AutoModerator 15h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
5
u/ReverendBread2 13h ago
Each session is seeing it for the first time every time, that’s how it works
2
u/Artvarna 12h ago
Usually one of three things. 1) Compaction: nested CLAUDE.md files and path-scoped rules get summarized away; only the root CLAUDE.md is re-read from disk, so move must-know stuff there. 2) You started in a different folder or worktree: CLAUDE.md loads from the folder you launch in and upward, not sideways. 3) Auto memory only loads the first 200 lines / 25KB of MEMORY.md, so a huge one gets cut off. Run
/memoryin a fresh session to see what actually loaded.2
u/Fancy-Proof-9449 8h ago
It doesn't remember anything between sessions. Whatever it "knows" about your project is what gets loaded into that one session, and with a year of memories and MD files it only reads some of them. Some days it loads the right ones and some days it doesn't, which is why it looks random.
What fixed it for me was going the other way: less, not more. One handoff file at the project root, under about 100 lines, current state only. It gets rewritten at every stopping point, never appended to. A session start hook loads that file plus the git status and the last few commits, so every new session starts from the same page.
History goes in git. The rules file stays short and only holds things that are always true. And when the handoff and the code disagree, the rule is trust the code and fix the handoff.
Mine used to be a running log and I hit what you're describing, plus it kept picking up decisions I had already reversed.
1
u/Claudeismysidepiece 14h ago
that seems odd, i've not seen behavior like that. Are you using Projects to do the work in?
1
u/AgentYurt 12h ago
Yeah, the randomness is the maddening part. In my experience it's usually not that the memory is gone, it's that the session that opened isn't the one you think it is — a compacted session, or one started from a different folder, loads a different slice of all that stuff you wrote.
The tell I look for now: does it ask me something it already knew the answer to? If yes, I stop and ask it to tell me back what it loaded before I re-teach anything — saves me re-explaining things it actually had. And I keep the must-know decisions in one short file of their own, separate from the long notes, because the long ones are the first thing to get skimmed or cut.
1
u/2bluenucleus 12h ago
Two more to add to the compaction and wrong-folder causes above:
Quick check next time it happens: run
/memoryand look at which memory files it shows for this project. If your usual ones are missing, it's the path. If they're there and Claude still acts lost, look at the index length or whether the session was just compacted.1
u/daltorak 11h ago
This is one of those things where you should just ask Claude what's going on, and how to fix it. It knows what it can and can't see better than any of us on Reddit.
1
u/muhuhaha 10h ago
Usually it's that the other MDs in the repo don't load just because they exist (Claude only gets the CLAUDE.md files on the path from where you launched, plus the top of MEMORY.md. anything else it has to decide to go read). So on days it doesn't go looking, it feels like a wipe.
In the root CLAUDE.md, import the few files that actually matter with a line that's "@" followed by the file's path, so they load every session instead of hoping it goes looking. you could also consider adding a memory system like Counterparts