Every session starts blank. One plain text file, read before you type a word, is why mine never feels that way. Where it lives, what goes in it, and a few lines from my own.
Close the window and the next session knows nothing about you. Not the folder you work in, not how you like things written, not that you asked it three times yesterday to stop using a certain word. Without help you would repeat yourself every morning, and most people do.
The fix is a file. Claude Code reads it at the start of every session, before your first message, so whatever is in it is already known when you type.
It is called CLAUDE.md. Plain text, markdown if you like headings, nothing special about it. There are two places that matter for one person, and they add up rather than replace each other.
| Which | Where | Use it for |
|---|---|---|
| Yours, for everything | ~/.claude/CLAUDE.md on a Mac, C:\Users\you\.claude\CLAUDE.md on Windows | How you like things done anywhere: tone, formatting, the words you never want, the checks you always want. |
| One project's | CLAUDE.md in that project's folder | What this folder is, how it is organised, what to run before saying done. Shared with anyone else who works in it. |
| Yours, in one project | CLAUDE.local.md in the same folder | Your private notes for that project only. Keep it out of version control if you share the folder. |
Start Claude Code inside a folder and it loads your personal file, then the project's, then your local notes, in that order. It also reads any file of that name in the folders above, so a file at the top of a big folder covers everything beneath it.
Two ways. Let it write the first draft, or write the file yourself.
Open Claude Code in the folder and type:
/init
It reads what is in the folder and writes a first CLAUDE.md with what it found. If one already exists it suggests improvements instead of overwriting it. Then open the file in any text editor and make it yours.
Or ask Claude Code to do it for you, in your own words:
create my personal CLAUDE.md in my home folder with these rules: ...
Finish the sentence with your rules. It creates the file in the right place on either machine and shows you what it wrote.
Claude treats the file as context, not as law. The more concrete a line, the more reliably it is followed. A rule it can check beats a rule it has to interpret.
A personal file for someone who uses Claude Code for admin, writing and the odd spreadsheet, and never writes code. Copy it, delete what is not you, add what is.
# How I like things done ## Writing - Short sentences. Plain words. No em dashes or en dashes; use a comma or a full stop. - Never open with a summary of what you are about to do. Just do it. - When you draft something for another person, say who it is for at the top. ## Files - Never delete anything. Move it to a folder called Trash next to it and tell me. - Before you change a file, show me the change and wait for a yes. - Name new files date first: 2026-10-12 topic.docx. ## Money and accounts - Anything that spends money, sends an email or posts online: ask me first, every time. - My business email is the one ending in the company domain. Personal is the other one. ## When you are not sure - Ask one question, not five. If you can finish the rest without the answer, finish it first.
My personal file is longer than it should be, because it has grown with the work. These are the lines that earn their place, in the spirit of the originals rather than word for word.
None of these are about code. They are about how I want to be worked with, and they hold across every folder on the machine because the file sits at the top.
Inside a session, type:
/context
Under the heading for memory files you should see every file it read for this session, by path. If yours is missing, it is in the wrong folder or has the wrong name. The name is exact: capital CLAUDE, lower case md.
The quicker test is to ask it: "what do you know about how I like things done?" It should answer from the file.
/doctor prompt-audit and it reports instructions that are outdated, point at files that no longer exist, or contradict each other. Nothing changes until you say so.@writing-rules.md loads that file alongside it.Alongside your file, Claude Code keeps notes of its own. When you correct it, confirm an approach, or tell it something it could not have found in the folder, it may save a short note and read it back next time. You will see "Saved a memory" or "Recalled a memory" in the session when that happens.
Those notes live per project under ~/.claude/projects, in a folder called memory, as plain files you can open and edit. Type /memory in a session to see what it has kept and to switch the feature off if you would rather it kept nothing.
You write the rules. It writes down what it learned about working with you. Both are read at the start of every session.
Next episode: teaching it a routine once, and calling it by name.