Skip to the workspace
Pebellslearn by building
CLAUDE.md  ›  Capstone Project

Where CLAUDE.md Files Live

Locations 15 minInstruction files exist at personal, project, folder and organisation level, and each instruction belongs at the narrowest level where it is always true.

claude code / Where CLAUDE.md Files Live

Explore each scene at your own pace.

01 · The rule

The rule

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.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.