This is part 2 of a weekly series. Last week we got Claude Code installed (part 1: install Claude Code if you're not a programmer). Right now it's a smart stranger. Every time you open it, you have to explain who you are and how you like things done all over again.
The fix is one plain text file. It's called CLAUDE.md, and Claude Code reads it at the start of every session. Think of it as the rulebook you hand a new employee, except this employee reads it every single morning without complaint.
It's just a text file with notes written in normal English. No code. You put it in your assistant's folder, and when you start claude in that folder, it loads the file before you type anything. The official docs say Claude Code reads the CLAUDE.md in the folder you start it from, plus any in the folders above it.
There's also a personal one that applies to every project you ever open: ~/.claude/CLAUDE.md (that's a hidden .claude folder inside your user folder). For a single assistant, the folder one is the right place to start.
Open the terminal, go to your assistant's folder, and start Claude Code. Then type:
/init
This command generates a starting CLAUDE.md for you. It's built for code projects, so with an empty folder you'll get something basic. That's fine. If the file already exists, it suggests improvements instead of overwriting it.
Open the new CLAUDE.md in any text editor (Notepad works) and add a section about who your assistant is. Mine is blunt, so mine says so. Yours might be calm and formal. Something like this:
# Identity
You are Max, my chief of staff. Be direct and short.
Call me by my first name. No fluff, no long intros.
If my idea has a hole in it, tell me before we build it.
That last line matters more than it looks. An assistant that agrees with everything is useless. Tell it you want pushback.
These are the lines you'd be annoyed to repeat. Keep each one short and specific:
# Rules
- Never delete or overwrite a file without asking me first.
- If you're not sure about something, say so. Don't guess.
- Before you say a task is done, check that it actually worked.
- When I ask a question, answer it first. Then offer next steps.
Vague rules like "be helpful" do nothing. Rules you can check, like "ask before deleting," are the ones that stick.
Add a short section on your life or work: what you do, what matters this month, what to ignore. Three or four lines is plenty.
This is the trap. It feels smart to write a giant rulebook. Don't. Claude Code's docs recommend targeting under 200 lines per CLAUDE.md file, because longer files use more of its working memory and it follows them less reliably. If yours grows, move detail into other files and point to them. You can pull another file in by writing an @ and its path, like @notes/clients.md. Just know that imported files load with the main one, so they still count toward that budget.
Close Claude Code, open it again in the same folder, and ask: "Who are you and what are your rules?" If it answers with the name and rules you wrote, the rulebook is live. If not, make sure the file is named exactly CLAUDE.md (capitals matter) and sits in the folder you started from. You can also type /memory to see which memory files Claude Code has found.
Next Saturday, part 3: give your AI a memory that doesn't forget. The rulebook tells it who it is. Next we give it a place to remember what happened.
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 a different folder. Close it, move into the right folder, and start it again.