This is part 3 of a weekly series. Last week we wrote the rulebook (part 2: write your AI assistant's rulebook). Your assistant now knows its name and your rules. What it still needs is a good record of what happened yesterday.
Claude Code starts every session with a clean slate. Whatever you talked through last time isn't automatically sitting in its head. I'm not a programmer, and the fix I use is plain: a folder of notes, one short index, and a few lines telling the assistant to use them.
According to the official docs, two things carry knowledge from one session to the next. One is your CLAUDE.md rulebook, which you write. The other is called auto memory: notes Claude writes for itself based on your corrections and preferences. It's on by default when you run Claude Code on your own computer.
Type /memory inside Claude Code to find those files or switch auto memory on or off. They're plain text, so open them and read them. If something is wrong, fix it.
Two limits to know. Auto memory stays on that one computer. And only the start of its index file, MEMORY.md (the first 200 lines or 25KB, whichever comes first), is loaded when a session begins.
Auto memory is handy, but Claude decides what goes in it. For the things you care about, I want a memory I can see, organize and move. That's the part we build now.
Start Claude Code in your assistant's folder and type this in plain English:
Create a folder called memory. Inside it, make a file called index.md, a folder called daily, and a folder called topics.
If it asks for your OK before making files, read what it plans to do and approve it. Here's what each piece is for:
index.md is the table of contents: one line per note, saying what's in it.daily holds one short note per day: what you did, what you decided, what's next.topics holds one note per subject you come back to, like a project, a client or your house.The index is the whole trick. Your assistant doesn't need to read everything you've ever saved. It needs to know what exists and where it is. An index can look like this:
# Memory index
- topics/side-business.md : what I'm selling, prices, open to-dos
- topics/home.md : repairs, dates, who I called
- daily/ : one note per day, named by date
One line each. If a line turns into a paragraph, that detail belongs in the topic note.
Open your CLAUDE.md and add this section:
# Memory
- At the start of every session, read memory/index.md and the newest daily note.
- Open other notes only when the task needs them.
- When we decide something or finish something, write it in today's daily note.
- If it will matter next month, also put it in a topic note and update the index.
- Update an existing note before making a new one.
- Never save passwords or keys in memory.
- After saving, read the note back and tell me what you wrote.
Notice that those file names are written as plain text, with no @ in front. In part 2 I showed that @ pulls a file into your rulebook. Imported files load along with it every time, which is exactly what you don't want for a pile of notes that keeps growing.
Rules in CLAUDE.md are instructions Claude reads, not a lock it can't get past. The docs say so directly: it's treated as context, and it isn't enforced. So build a habit. Before you close the window, say:
Save today to memory: what we did, what we decided, and the next step. Show me what you wrote.
It takes a few seconds, and you see with your own eyes that it landed.
One thing to watch: if you just say "remember this," Claude saves it to auto memory. If you want it in your own notes, say "write this in today's daily note." If it's a rule for every session, say "add this to CLAUDE.md."
Tell your assistant one specific thing, like "the water filter gets changed in March." Ask it to save that to memory. Close Claude Code completely, open it again in the same folder, and ask: "When does the water filter get changed, and which note did you find that in?"
If it gives you the month and names the note, your memory works. If it names auto memory instead of your folder, ask it to write the fact into a topic note and add the line to the index.
Once a week, ask: "Look through the memory folder. What's outdated, duplicated or missing from the index? List it, and don't change anything until I say so." Old, wrong notes are worse than no notes, because your assistant may believe them.
And back the folder up like anything else you'd hate to lose. It's just files, so copying it somewhere safe is enough.
Next Saturday, part 4: text your AI from your phone, so you can reach your assistant when you're away from the keyboard.
Don't want to wait? The free Chief of Staff starter kit sets up the name, the memory and the daily plan in one evening.
claude in the folder that holds your CLAUDE.md, then check the memory lines are saved in that file.