Write AGENTS.md
An agent starts every session knowing nothing about your project. This file is read first, every time, so you stop explaining the same things.
- 1
Create it at the root
One AGENTS.md in the repo. Codex, Cursor and Copilot read it as is. If your tool wants another name (CLAUDE.md, GEMINI.md), point that file at this one.
- 2
Write what it can't guess
What the project is, how to run and test it, the rules, and what done means.
- 3
Keep it short
It loads every session and takes up context every time. Cut anything the code already says.
- 4
Grow it from mistakes
When the agent gets the same thing wrong twice, add one line so there's no third time.
# AGENTS.md
## What this is
Static page served by a Cloudflare Worker.
No build step. Files live in public/de-faults/.
## Run
npx wrangler dev
## Rules
- Colours and fonts come from /tokens.css.
- No inline scripts or styles (strict CSP).
- Done = page loads with no console errors.
- Ask before pushing: main deploys to prod.