Paths/Claude Engineer/CLAUDE.md & Memory / Project Memory
Write the Root Memory File
The memory file is loaded into every session in the repository. Write one with the commands, the layout and the conventions.
Validator
IDLE — checks run live as you type commands; submit when done
01Requirements
live checks- Directory ~/project exists○
- File ~/project/CLAUDE.md exists○
- The file states the build and the test commands○
- The file states the conventions and the layout○
02Walkthrough
4 steps- 01
Create the project directory
The memory file lives at the root of the repository, next to the code.
mkdir -p ~/project - 02
Write the commands
The two commands Claude will run most often. If they are wrong, everything the agent does afterwards is wrong too.
echo '# CLAUDE.md\n\n## Commands\n\n- build: pnpm build\n- test: pnpm test -- --run\n- lint: pnpm lint' > ~/project/CLAUDE.md - 03
Add the layout and the conventions
Say where things live and how the code should look. Keep it under a page - it is loaded every turn.
echo '\n## Layout\n\n- src/components - the UI, one component per file\n- src/server - the API and the database access\n\n## Conventions\n\n- TypeScript strict mode\n- no default exports\n- every change comes with a test' >> ~/project/CLAUDE.md - 04
Verify and submit
cat the file, then submit for validation.
cat ~/project/CLAUDE.md
03Stuck?
0 of 3 revealedTake a hint without losing the lab — each one points at the thing to look at, not at the answer.
04AI Tutor
guides, never solvesTell me what you're stuck on — I'll nudge, not solve. Which requirement are you looking at?
04Notebook
saved locally in this browserlearner@lab — ubuntu:24.04
Session is disposable
↑/↓ recalls commands · Ctrl+Enter submits · type help for the command list