AGENTS.md is the emerging convention for telling a coding agent how to work in a
repository. PolicyCodex compiles your enforced corpus into that format, so you write
standards once and every agent that reads the file picks them up.
Getting the file
- From the app
- From the API
RFCs → Export AGENTS.md downloads the compiled file for your organisation.
What it contains
Only enforced statements — the rules that currently block. Sectioned by domain, MUST before SHOULD, with each statement’s slug carried as an anchor comment so a finding can be traced back to the governed statement it came from. Advisory (approved) standards are deliberately excluded. A file an agent treats as
absolute should only contain rules you are prepared to block on.
Keeping it fresh
Prefer MCP
Where the agent supports it, the MCP server is always
current. No refresh step, no drift.
Regenerate in CI
Where a file is the only option, fetch it from
/v1/compile/agents-md on a schedule and open a pull request when it changes.Scope per repository
Compile the domains that repository actually needs:Other agent formats
.cursor/rules and copilot-instructions compile targets exist as stubs and are not
production-ready. Use AGENTS.md or MCP today.
Agent neutrality is the point: PolicyCodex rides the
AGENTS.md convention rather than
competing with it, so the corpus is not locked to one vendor’s agent.
