by russellbeattie · 4w ago · 0 comments
It explained that unlike Chat, each project in Claude Code creates memory files in ~/.claude/projects/[project path]/memory/ with notes about both the project and my impromptu directives or instructions, and a MEMORY.md index file that's loaded for every new session. It told me that my current project - which has been going on for a while - has 61 files in its memory, so it suggested that now in fact would be a good time to clean them up. Perfect.
It gave some examples of things things it has memorized: Apparently I once told it to always capitalize the first letter after a colon. I don't remember doing that, but hey, that's basic English grammar, dammit, so I can see myself getting pissy about it. It had saved that bit of petulance on my part in the memory.
That's great, but it was saved only in the memory folder of that project. This is good to know! I hadn't realized that stuff wasn't saved globally. Or rather, I vaguely remember turning that option off at some point and now I'm realizing that means I need to do some maintenance manually if I don't want to have to constantly remind Claude to capitalize properly, (and to always refer to me as Mr. Big.)
Definitely a good article for me to read right now.
- Check the ~/.claude/CLAUDE.md files. This is your "global" CLAUDE.md file on this machine which gets read at the start of every session. Any global rule belongs here, rather than having it in every project's CLAUDE.md file.
It's definitely worth doing a bit of cleaning now and then to catch duplicate or outdated rules.
It's definitely not correct UK English grammar. TIL that the US uses some very odd colon rules.
It's AP Style, which is used in basically every news article you've ever read.
The rule is simple: You capitalize the first word after a colon when it begins a full sentence.
Also, please try to be less dismissive!
And there is an entire world out there, outside of the US (perhaps your Google or AI did not know that either?) that does not do this.