The AGENTS.md file I drop into every client repo before my coding agent touches it A developer at a web agency has standardized an AGENTS.md file placed in every client repo before a coding agent (Claude Code, Cursor, or Codex) begins work, with symlinks so each tool reads the same brief. The file defines do-not-edit paths like client-edited JSON and _redirects, a single source of truth for contact details, pre-finish checks such as build, link validation and Lighthouse scores, deploy rules requiring preview-first and explicit approval, and a running gotchas list. The developer says the practice shifted review from line-by-line diffs to checking preview URLs. I build most client sites with a coding agent now. Claude Code mostly, Cursor when I want to watch the diff. The agent is fast, but the first few months it kept doing dumb stuff on client repos. Renaming image folders and breaking old URLs. Hardcoding the phone number in five places. Deleting a JSON file the client had just edited. Running a deploy from the wrong folder. None of that was the agent being bad. It just didn't know the rules of my agency. So now every client repo gets an AGENTS.md file in the root before the agent touches anything. Claude Code reads CLAUDE.md , Cursor reads its rules, Codex reads AGENTS.md . I keep one file and symlink the others to it so they all get the same brief. Here's roughly what goes in mine and why. Client: Harbour Physio harbourphysio.com.au Astro static site, 9 pages, migrated from WordPress in 2026. Audience: local patients booking appointments. Phone calls matter more than anything else. Sounds obvious but it changes the agent's choices. When it knows phone calls are the goal it stops burying the number in the footer. This is the most important section. On my sites the client edits their own content hours, team bios, prices and that lives in /data/ .json . If the agent "tidies up" those files it overwrites the clients changes. Do not edit - public/data/ .json client edits these through /edit, pull latest before any change - public/ redirects old WordPress URLs, only append, never remove lines - src/assets/legal/ client supplied, don't reword The redirects line saved me twice. Agents love deleting stuff that looks unused, and a 301 from /our-services-2/ looks very unused untill Google stops sending traffic. Business name, phone, address, ABN, booking link. One file, src/site.ts , and the agent is told to import from it and never hardcode. Single source of truth - Contact details, hours fallback, socials: src/site.ts - Never hardcode phone/email/address in components When the client changes their number I change one line and the agent greps to confirm nothing else has it. Not "write clean code". Specific stuff: src/assets and use