Save it as AGENTS.md in the repository root.
| Tool | What to do |
|---|---|
| Codex, Cursor, GitHub Copilot coding agent, Windsurf, Zed and other AGENTS.md tools | Nothing else. They read AGENTS.md from the root. |
| Claude Code | Read automatically when the project has no CLAUDE.md. If it has one, add @AGENTS.md as its first line. |
| Copilot chat in the IDE | Also copy it to .github/copilot-instructions.md. |
| Anything else | Point the tool's instruction-file setting at AGENTS.md, or paste it into the system prompt. |
Longer instruction files are followed less.
Anthropic's guidance for Claude Code is to keep an instruction file under 200 lines, because longer files consume more context and reduce adherence. Research on instruction density (IFScale, 2025) finds that the best models follow only about 68% of instructions once there are 500 of them, and that earlier instructions are favoured. So the core rules come first and the file stops at 188 lines.
Instruction files are context, not enforcement. For anything that must never happen, add a permission rule or a pre-action hook in your tool as well.
- Ten core rules that win any conflict
- Why the file exists: reliability decays with length
- Four tiers of action, from read-only to irreversible
- Verification for facts, code, data and numbers
- Stop conditions, and the fixes that are never allowed
- Checks in code: money, time series, model validation
- When to bring in a human: four triggers
- A decision log that answers four questions
- Long tasks and context drift
- Security and data protection
- Reporting results, with a stop-and-escalate template
- Start and end checklists
- How to adapt it for your firm
Loading AGENTS.md…
Scroll inside the box to read the whole file, or use the Download button.
Not legal, regulatory or investment advice. Replace the tier examples with your own systems before relying on it.