This example shows how to embed RUNE specs directly inside an AGENTS.md file.
Instead of maintaining separate .rune files, you can add a ## Function Specifications section to your AGENTS.md. Each function spec uses the same RUNE pattern (SIGNATURE, BEHAVIOR, TESTS, EDGE_CASES) but in Markdown format.
The AGENTS.md in this directory defines:
Any AI agent that reads the AGENTS.md gets both the project context AND the function contracts.
"Implement the calculate_order_total spec from AGENTS.md"
The AI reads the AGENTS.md, finds the spec, and generates an implementation that follows the BEHAVIOR rules and passes the TESTS.
For larger projects with many specs, consider using standalone .rune files alongside your AGENTS.md. See examples/full-project/ for that approach.