Configure
Rules
Guide every agent with AGENTS.md.
#Location
- Project root —
AGENTS.mdloads automatically on session start. - Subfolders — nested
AGENTS.mdfiles scope rules to that tree. - Always in context — agents re-read rules before planning, not just once.
#Format
AGENTS.md
# Project rules
## Stack
React + TypeScript. Tailwind for styling.
## Conventions
- Max 300 lines per file.
- Use existing UI primitives.- Headers are sections —
##blocks become retrievable rule groups. - Short beats complete — five enforced rules beat fifty ignored ones.
- Bootstrap fast — run
/initto generate a starter file from your repo.