Where CLAUDE.md Files Live
Some instructions are about you ("keep explanations short"), some are about the whole project ("run pytest -q"), and some are about one corner of it ("every string in the templates must be bilingual"). Claude Code reads instruction files from several places, so each kind can live where it belongs.
The rule
Put each instruction at the narrowest level where it is always true.
| Location | Applies to | Shared? |
|---|---|---|
~/.claude/CLAUDE.md |
You, in every project | No, it stays on your machine |
CLAUDE.md at the project root |
Everyone working on this project | Yes, commit it |
CLAUDE.md in a subfolder, such as templates/CLAUDE.md |
Work in that folder; read when Claude works with files there | Yes, commit it |
| A personal, uncommitted file for this project | You, in this project only | No |
| An organisation-wide policy file | Everyone in a company, set by administrators | Managed centrally |
Claude Code also reads CLAUDE.md files in the folders above the one you start in, which helps when several projects sit inside one parent folder. The name and location of the personal per-project file have varied between versions, so check the current docs for yours.
To see which instruction files a session has picked up, and to open one for editing, use /memory.
If two files disagree, you are leaving Claude to settle the conflict. Better not to create one: say each thing once, at the right level.