IOCRF 2026 · Session 5 · Take-home

AGENTS.md for risk and finance.

One file that tells a coding agent how to work in risk and finance without making things up: verify before asserting, gate actions by consequence, stop when a control fails, and keep a record that answers four questions. Drop it into the root of any repository.

188 lines, under the 200-line ceiling Claude Code · Codex · Cursor · Copilot Free to use and adapt
Install

Save it as AGENTS.md in the repository root.

ToolWhat to do
Codex, Cursor, GitHub Copilot coding agent, Windsurf, Zed and other AGENTS.md toolsNothing else. They read AGENTS.md from the root.
Claude CodeRead automatically when the project has no CLAUDE.md. If it has one, add @AGENTS.md as its first line.
Copilot chat in the IDEAlso copy it to .github/copilot-instructions.md.
Anything elsePoint the tool's instruction-file setting at AGENTS.md, or paste it into the system prompt.
Why under 200 lines

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.

What is inside
  1. Ten core rules that win any conflict
  2. Why the file exists: reliability decays with length
  3. Four tiers of action, from read-only to irreversible
  4. Verification for facts, code, data and numbers
  5. Stop conditions, and the fixes that are never allowed
  6. Checks in code: money, time series, model validation
  7. When to bring in a human: four triggers
  1. A decision log that answers four questions
  2. Long tasks and context drift
  3. Security and data protection
  4. Reporting results, with a stop-and-escalate template
  5. Start and end checklists
  6. How to adapt it for your firm
The full file Download AGENTS.md
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.