Claude Code Basics Lesson 25 of 46
CLAUDE.md: The Notes It Reads the Moment It Walks In
- CLAUDE.md is a text file Claude reads at the start of every session.
- It's there so you stop repeating the same things: it's the notes pinned up in the studio.
- It can live in the project (and applies there) or among your own stuff (and applies everywhere). They're not mutually exclusive: they stack.
- With /init it proposes one by looking at your folder.
The problem it solves
You already know the model has no memory and every session starts from a blank page. In practice, that turns into one specific annoyance: every single time you have to re-explain the same four things. How your files are organized, what you want them named, what shouldn't be touched, what the client is called.
The solution is obvious, and that's exactly why it's brilliant: leave them written down. A text file, in the working folder, that it reads the moment it walks in — before you even open your mouth.
It's called CLAUDE.md. It's the equivalent of the notes you'd leave pinned up in the studio for a collaborator who shows up every morning remembering nothing from the day before.
Where to put it, and what changes
In the project — a
CLAUDE.mdfile in the working folder. It applies to that job, and if you share the folder with someone, it applies to them too.Among your own stuff — a
CLAUDE.mdin your personal Claude folder. It applies in every project you open, because it's attached to you.
The question that'll come to mind is: what if I have both? They're not mutually exclusive: they stack. It reads yours and then the project's, one after the other.
Hence the common-sense rule: in yours you put how you work (what language to reply in, what tone to use, your habits); in the project's you put the specifics of that job.
Getting it written for you: /init
You don't need to start from a blank page. The /init command has it explore the folder you're in and propose a starting CLAUDE.md, with what it figured out on its own: how things are organized, what's in there, what conventions it spots.
If the file already exists it won't erase it: it proposes improvements.
Keep one thing in mind though, because it's the whole point of the next lesson: what /init writes is what shows from the folder. The real value is what you add, and it's made of the things the folder can't reveal — because they're in your head.
Checking that it's actually reading it
If you suspect it's not seeing it, don't guess: open /context, the one we used to check usage. In there is the list of loaded memory files. If yours doesn't show up, it's not reading it, and the problem is where you put it.
Careful: these are instructions, not rules
A point that ties back to the last chapter, because it's the most costly confusion: CLAUDE.md is context, not a prohibition. It steers behavior, but it doesn't prevent anything by design.
If something must never happen, go back to permissions. The instructions file is there to make it work better, not to stop it from getting things wrong.
What's next
Now you know what it is and where to put it. But there's a trap here that catches almost everyone: the temptation to write everything into it. In the next lesson we look at why a long file makes results worse instead of better.
Did you get it?
Two minutes, no grade. Trying to answer — even getting it wrong — cements the concepts far more than rereading. Not in the mood? Skip it: the lesson still counts as complete.
When is CLAUDE.md read?
It's the first thing put in front of it at every startup: it's the way around the fact that it always starts from zero. You don't have to remember to call it up.
You have a CLAUDE.md in your personal folder and one in the project. Which one wins?
They don't overwrite each other, they concatenate: your general preferences plus that project's rules. That's why it pays to keep only how you work in the personal one, and that job's specifics in the project's.
What's the fastest way to get started with a CLAUDE.md?
`/init` explores the folder and proposes a starting file with what it figured out. It's a draft, not a finished result: the part that really matters is what you add, because those are the things the folder can't reveal on its own.
-
Chapter 1 Introduction
-
Chapter 2 What's Underneath
-
Chapter 3 You Choose the Engine
-
Chapter 4 First Time at the Controls
-
Chapter 5 What You Let It Touch
-
Chapter 6 What It Knows About You
-
Chapter 7 Skills
-
Chapter 8 How Many You Put to Work
-
Chapter 9 What It's Connected To
-
Chapter 10 Automating the Setup
-
Chapter 11 Wrap-Up