Skip to content

Write the project memory

Run /init. Claude inspects the project and drafts a CLAUDE.md with your build, test and lint commands.
terminal
/init
Keep CLAUDE.md under about 200 lines. It loads into every session, so every line costs context. Delete anything Claude can discover on its own. Long guidance about one area belongs in .claude/rules/ with a paths: glob, so it loads only when a matching file enters context. CLAUDE.md and .claude/rules/ belong in version control. Your whole team gets the same behaviour from the same files. Claude keeps its own notes per project under ~/.claude/projects/. Check it with /memory and prune anything stale or wrong.
terminal
/memory