A new session doesn’t remember your last one. CLAUDE.md is a note with your rules that Claude Code reads every time it starts, so you don’t have to repeat yourself.
Think of it as a staff handbook for your AI helper.
Examples
Style
You write:“Reply in simple English. Keep it short.”
So Claude:Tries to use plain, short answers.
Brand
You write:“Our main colour is green. Use Poppins for headings.”
So Claude:Follows your look on new pages.
Safety
You write:“Ask me before you publish or delete anything.”
So Claude:Knows to check with you first.
Your project
You write:“This is a bakery website. Our customers order by WhatsApp.”
So Claude:Builds with your business in mind.
Try this one
Sample CLAUDE.md
# My rules
- Reply in simple English.
- This is a website for my bakery.
- Use our green and our logo.
- Ask me before you publish or delete anything.
Make one in 3 steps
Open your project folder in Claude Code.
Type /init and Claude drafts the file for you.
Read it, change what’s wrong and add your own rules.
Using Codex? Its version is called AGENTS.md.
Good to know
Keep it short and clear. “Ask me before publishing” beats “be careful”.
Delete old rules, or Claude may follow them.
It’s guidance, not a lock. Claude can still miss a rule, so check important work.