ariadne: Instructions file for Codex

AGENTS.md

ariadne AGENTS.md is an instructions file for Codex, OpenCode from CRJFisher/ariadne. It costs 1,990 tokens per session, scanned A, original, MIT.

Pokyny pre projekt Ariadne, ktoré určujú jeho štruktúru, spôsob refaktorovania a štýl dokumentácie. Refaktorovanie znamená úpravu kódu bez pridávania nesúvisiacej funkcionality.

In plain words
What is it for?
Vedú pri hľadaní vstupného bodu programu, zdôvodňovaní zmien, pomenúvaní súborov a písaní samostatnej dokumentácie.
Why use it?
Pomáhajú udržať zmeny úzko späté s hlavným účelom projektu a zabraňujú pridávaniu zbytočného kódu.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is CRJFisher/ariadne's own configuration. It tells Codex and OpenCode how to work on ariadne itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ariadne configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CRJFisher/ariadne. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CRJFisher/ariadne/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/CRJFisher/ariadne

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ariadne AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/crjfisher/ariadne/agents-md.svg)](https://agentmods.dev/instructions/crjfisher/ariadne/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/crjfisher/ariadne/agents-md"><img src="https://agentmods.dev/badge/instructions/crjfisher/ariadne/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,990 This file is loaded in full into every session.
When invoked 1,990 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01990 $0.01990
Opus 5 $0.00995 $0.00995
Sonnet 5 $0.00398 $0.00398
Haiku 4.5 $0.00199 $0.00199

Measured 6d ago against content hash e35fe3d339ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ariadne AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 234 lines

How it starts

The opening of the file, as written. The whole thing — 234 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Guidelines

Project Layout / Intention Tree

  • the top of the intention tree (the actual purpose of this codebase) is to detect call graphs and thereby find the entry point to the codebase.
  • every change to the code needs to be justified in terms of its contribution to the top-level intention tree.
  • the module layout is the instantiation of the intention tree.
  • we never add 'extra' functionality outside of this intention tree, even if it is 'well-meaning' and 'might' be used one day. 'extra', surplus code reduces our longterm velocity. it is much better to spend effort reviewing narrow, focussed code and its integration, rather than trying to cover a wide surface area.
  • all namings and documentation should only reflect the trunk and branches of the intention tree, not the 'differential' changes we make to the codebase. E.g. if we're changing 'method_resolution.ts', we don't just create a file like 'enhanced_method_resolution.ts', we just improve 'method_resolution.ts', leaving the core intention tree intact.

Refactoring Ethos

  • DO NOT SUPPORT BACKWARD COMPATIBILITY - JUST CHANGE THE CODE.

Documentation Style: Canonical and Self-Contained

When writing or updating documentation, always write in a canonical, self-contained style. Documentation should describe the system as it currently IS, not as it was or how it changed.

DO:

  • ✅ Describe the system as it currently IS
  • ✅ Write in present tense ("The system works like this...")
  • ✅ Be authoritative and direct
  • ✅ Assume reader has no prior knowledge or context
  • ✅ Focus on WHAT to do, not what NOT to do
  • ✅ State the approach confidently without justification

DON'T:

  • ❌ Reference "old approaches," "previous versions," or "deprecated methods"
  • ❌ Use "revised," "updated," or "new" framing
  • ❌ Explain what you're NOT doing or alternative approaches you rejected
  • ❌ Include defensive justifications for design choices
  • ❌ Write comparisons to alternatives (unless teaching concepts)
  • ❌ Use apologetic or hedging language
  • ❌ Assume reader knows the history or evolution

Read the full file on GitHub · 234 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 234 lines · 1,990 tokens per session scan A e35fe3d339ec

Subscribe to this mod's changes

ariadne AGENTS.md is an instructions file published in the GitHub repository CRJFisher/ariadne (22 stars, last pushed 3d ago), licensed MIT. It adds 1,990 tokens to every session, about $0.0100 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.