The Practice Room / The Terminal with Claude Code / Episode 8
What is a CLAUDE.md file used for?
Yesterday you asked for a result. Today you tell it something once, and it remembers.
Say it once
Every other lesson in this track asked for a result. This one changes what happens before you ask for anything at all.
CLAUDE.md is a plain file in your folder. Claude Code reads it every time it opens there. Everything you are tired of repeating goes in it once.
Do it yourself
- Open Claude Code in your folder.
- Type /init and press enter.
- It reads the folder, writes one file, and tells you.
- Read it back: type type CLAUDE.md and press enter.
- The top is what it worked out about your folder on its own.
- The bottom is yours. That is the part worth your time.
One file, two halves
The top half, facts
- What this project is
- Where things live
- What it must never touch
The bottom half, preferences
- How you want it to work
- How you want to be spoken to
- What it should ask before doing
You say it once, in a file. Instead of at the start of every conversation.
What to put in the bottom half
Who you are. I run a bakery. Explain things in plain words and assume I do not know the jargon.
How you want things done. Never delete anything without asking me first. Show me the plan before you change a file.
Your rules. Keep answers short. Do not touch the pricing file.
Write it the way you would brief a new assistant on their first morning. Short sentences, one instruction each.
The honest part
Written down does not mean always obeyed. The file makes the right behaviour much more likely, and it does not make it certain. It drifts, and you check.
That is not a flaw you can configure away. Treat the file as standing instructions to someone capable and occasionally forgetful, and your expectations will be right.
Check yourself
Which command writes the file?
/init. It reads your folder first, then writes CLAUDE.md.
Which half of the file should you edit?
The bottom. The top is what Claude Code worked out about the folder by itself.
When does it read the file?
Every time it opens in that folder. You never have to point it at the file.
You wrote a rule and it broke the rule. What is the correct expectation?
The file makes the behaviour far more likely, not guaranteed. It drifts, and you check.
When it goes wrong
type CLAUDE.md says the file does not exist. You are standing in a different folder than the one /init wrote into. Type cd on its own to check.
Your rules are being ignored entirely. Check that you edited the file in this folder. CLAUDE.md is per folder, not one setting for the whole machine.
The file has grown enormous. Cut it back. A short file that gets followed beats a long one that gets skimmed.
Words used here
System prompt • Context window • What Claude Code is
Go deeper
Anthropic's memory documentation covers where else Claude Code looks for these files, including one that applies to every project at once.
What she says in the film
Yesterday you asked for a result. Today you tell it something once, and it remembers.
You are back in the same folder, with Claude Code open.
Type slash, and the list opens. /init is the one that writes the file.
It reads your folder, then writes one file and tells you.
Open the folder. CLAUDE.md is sitting there.
To read it, type the word type, then the filename. Type shows a file on the screen.
The top is what it worked out about your folder on its own.
The bottom is yours, and this is the part worth your time.
You tell it who you are. I run a bakery. Explain things in plain words.
You tell it how you want things done. Never delete anything without asking me first.
You give it your rules. Keep answers short. Do not touch the pricing file.
Everything you are tired of repeating goes in there once.
From then on it reads all of that every time it opens here.
The honest part. Written down does not mean always obeyed. It drifts, and you check.
That is your Claude tip for today.
No permission required.

Book a session and we do it together on a call.
Book an hourAsk what did not make sense
Comments go through our own form and are read before they appear. Links are not allowed; describe it in words.
More from The Terminal with Claude Code.

Install Claude Code in one line
Claude Code is an assistant that can read and edit the files on your computer.

How to use Claude Code in the terminal, for the first time
Two films ago we installed it. Last time we made it show its plan. Today it makes something.

Claude Code plan mode, and the shift+tab shortcut
Last time we installed Claude Code. Before you let it change anything, there is one thing worth knowing.
Get the next walkthrough.
One email when something goes up. The argument, the film and the term, nothing else. One click to leave.
Have a question now? Ask Mstimaj, she knows the archive.