micky@garden:~/claude-directory-explorer$cd ..

claude code · core concepts

Explore the .claude directory

A faithful clone of the interactive file explorer from the Claude Code docs. Click any file or folder on the left to see what it does, when it loads into context, and an example. Switch between project (your repo) and global (your home directory).

interactive explorer

Every file Claude Code reads.

Tree on the left. File detail on the right. Reproduces the docs widget at code.claude.com/docs/en/claude-directory.

The interactive explorer works best on a larger screen. View the original docs page at code.claude.com/docs/en/claude-directory.
CLAUDE.md selected
your-project / CLAUDE.md
CLAUDE.md
Project instructions Claude reads every session
committed
When it loads
Loaded into context at the start of every session
Project-specific instructions that shape how Claude works in this repository. Put your conventions, common commands, and architectural context here so Claude operates with the same assumptions your team does.
Tips
Target under 200 lines. Longer files still load in full but may reduce adherence
CLAUDE.md loads into every session. If something only matters for specific tasks, move it to a skill or a path-scoped rule so it loads only when needed
List the commands you run most, like build, test, and format, so Claude knows them without you spelling them out each time
Run /memory to open and edit CLAUDE.md from within a session
Also works at .claude/CLAUDE.md if you prefer to keep the project root clean
This example is for a TypeScript and React project. It lists the build and test commands, the framework conventions Claude should follow, and project-specific rules like export style and file layout.
CLAUDE.md
# Project conventions

## Commands
- Build: `npm run build`
- Test: `npm test`
- Lint: `npm run lint`

## Stack
- TypeScript with strict mode
- React 19, functional components only

## Rules
- Named exports, never default exports
- Tests live next to source: `foo.ts` -> `foo.test.ts`
- All API routes return `{ data, error }` shape
Full docs →