Templates / For agents / CLAUDE.md
CLAUDE.md

CLAUDE.md template

What Claude Code reads at the start of every session. Imports your AGENTS.md, then adds what is specific to Claude.

Repo root. Claude Code loads it on its own, along with any CLAUDE.md in the folder you are working in.

Use in Almanac
CLAUDE.md
# CLAUDE.mdClaude Code reads this file at the start of every session.Shared rules live in AGENTS.md so every agent follows the same ones. This file adds only what is specific to Claude.@AGENTS.md## Commands- `npm run dev`: start the app- `npm test -- path/to/file.test.ts`: run one test file- `npm run db:reset`: reset the local database (never on a shared one)## Read before you start- `WORKSPACE.md` for where docs live and where a new one goes- `docs/adr/README.md` to find the decision that covers your change- `docs/VOICE.md` before you write any text a customer will see## How to work here- For a change that touches more than three files, write a plan first and show it before editing.- Use subagents for wide searches across the repo. Keep the main thread for the change itself.- When you finish, run `npm run lint && npm run typecheck && npm test` and report the real output.- When you are unsure how the product should behave, ask. Don't guess from the code.## How to report back- Short replies. Say what changed, what you checked, and what is left.- Link files by path, for example `api/billing/invoice.ts`.- If you skipped a check, say which one and why.## Not herePersonal preferences, like your editor or how chatty you want replies, go in `~/.claude/CLAUDE.md` on your own machine, not in this file.

Questions people ask.

About CLAUDE.md and how it works with AGENTS.md.

What is the difference between CLAUDE.md and AGENTS.md?

AGENTS.md holds the rules every coding agent follows. CLAUDE.md is the file Claude Code loads, so it imports AGENTS.md with one line and adds only what is specific to Claude.

Where does CLAUDE.md go?

At the root of your repo. Claude Code also loads a CLAUDE.md in the folder you are working in, and your own one in ~/.claude/CLAUDE.md.

What does @AGENTS.md do?

It tells Claude Code to read AGENTS.md as part of CLAUDE.md, so your shared rules stay in one file.

Keep CLAUDE.md where your team can edit it.

Almanac shows your repo's docs as a wiki that people and agents edit together.

Get started free