Claude Code reads the CLAUDE.md in the folder where you open it, without being asked. It's committed with the repo, so every agent on the team starts with the same rules. Preferences that are only yours go in ~/.claude/CLAUDE.md, which applies to all your projects.
Write here what the agent needs to know in every session, like the test command and the branch rule. What it can find by reading the code doesn't need repeating. If you want something banned, put it in the permission settings too, because nothing enforces a ban in CLAUDE.md.
In an existing repo, the /init command reads the code and produces a first draft, and you correct it with your own rules. The template of the free 2-hour program comes with a CLAUDE.md ready to use.