Give your AI a project memory
1 / 10
The post
Your AI starts each new session from zero. So you explain your project again and again.
The fix is simple: add a CLAUDE.md file to your project. Claude Code reads it at the start of every session.
Write 4 things in it:
- Your stack: NestJS, PostgreSQL, TypeScript
- Your rules: thin controllers, logic in services
- Your commands: build, test, lint
- What not to touch: migrations, generated files
Where to put it:
./CLAUDE.mdfor your team (add it to git)~/.claude/CLAUDE.mdfor your own style.claude/rules/for rules that only some files need
Save time and tokens:
- Choose your model at the start. If you change it later, Claude reads everything again.
- Use
/compactbetween tasks. Use/clearfor a new topic.
Keep the file short. Anthropic suggests under 200 lines.
What is the first rule you would add?









