Every time you open Claude Code in a folder, it starts a fresh conversation. It does not remember what you talked about yesterday. It does not know your preferences or your project’s conventions.
Unless you tell it.
The CLAUDE.md file
Create a file called CLAUDE.md in the root of your project folder (the same folder where your other files live, not inside a subfolder). Claude Code reads this file automatically every time it starts. Think of it as a briefing document. Whatever you write here, Claude Code follows.
Open Claude Code in your my-site project:
cd my-site
claude
Now try:
Create a CLAUDE.md file with these instructions:
- This is a personal website built with plain HTML and CSS
- Use dark backgrounds with blue accent colors
- Keep the design minimal and modern
- All pages should have the same navigation bar
- Use the font Inter for all text
Now close Claude Code (/exit) and reopen it:
claude
Ask it to make a change:
Add a blog page
Watch what happens. Claude Code reads CLAUDE.md first, then builds the blog page using your dark theme, your font, your navigation pattern. You did not have to repeat yourself.
What to put in CLAUDE.md
Anything that should be true every time you work on this project:
- Design rules: colors, fonts, layout conventions
- Technical choices: “use plain HTML, no frameworks”
- Code style: “keep files small and simple”
- Project context: “this is a portfolio site for a photographer”
Keep it short. A few bullet points is enough. Claude Code reads the whole file every session, so concise instructions are more effective than long essays.