rote: Instructions file for Codex

AGENTS.md

rote AGENTS.md is an instructions file for Codex, OpenCode from trevhud/rote. It costs 6,175 tokens per session, scanned A, original, Apache-2.0.

Instructions for using rote, a tool that compiles an agent skill into a repeatable workflow and runnable code. They explain the correct command, setup, checks, and the expected cost and duration of compilation.

In plain words
What is it for?
Use them when a coding agent needs to run rote to compile a skill, check its setup, create a baseline, or use unreleased code from its source repository.
Why use it?
They prevent common setup mistakes and encourage checking the environment before running a slow, paid compilation. They also distinguish instructions for using rote from instructions for developing it.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; positional $N argument; mentions Claude Code.

This is trevhud/rote's own configuration. It tells Codex and OpenCode how to work on rote 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 rote configures →

Reuse

Borrowing it

Nothing to install: this file belongs to trevhud/rote. 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/trevhud/rote/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/trevhud/rote

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 rote AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/trevhud/rote/agents-md/github.svg)](https://agentmods.dev/instructions/trevhud/rote/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/trevhud/rote/agents-md"><img src="https://agentmods.dev/badge/instructions/trevhud/rote/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rote AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/trevhud/rote/agents-md"><img src="https://agentmods.dev/badge/instructions/trevhud/rote/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,175 This file is loaded in full into every session.
When invoked 6,175 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.06175 $0.06175
Opus 5.5 $0.02470 $0.02470
Sonnet 5.5 $0.01235 $0.01235
Haiku 4.5 $0.00617 $0.00617

Measured 10d ago against content hash 547a40f78397, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rote 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 10d 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 · 435 lines

How it starts

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

AGENTS.md — driving rote as an installed tool

This file is for a coding agent (Codex, Cursor, a plain API agent, or Claude Code without the plugin) that has been asked to use rote to compile a skill. It covers the operational facts rote --help can't tell you. If you are editing rote itself, read CLAUDE.md instead — that's the contributor manual and does not apply here.

rote compiles an Anthropic-style skill (SKILL.md + optional references/) into a deterministic, durable workflow: a pipeline.yaml IR plus runnable runtime code. The north-star command is rote compile.

Invocation contract

Run it with uvx — nothing to install but uv:

uvx --from rote-cli rote <args>
  • The PyPI package is rote-cli; the command (and import name) is rote. The published wheel ships no rote-cli executable, so uvx rote-cli ... fails. Always --from rote-cli rote.
  • Unreleased features: swap the origin, same command — uvx --from git+https://github.com/trevhud/rote rote <args>.
  • Do not clone or build a venv; uvx handles isolation.

Preflight first: rote doctor

Before spending money on a compilation, run the read-only preflight — it costs nothing and tells you whether a run can even succeed:

uvx --from rote-cli rote doctor --json

--json gives {version, python, drivers:[{name,available,reason}], dependencies:[{module,used_for,installed}], runtimes, mcp_servers:[{name,url,auth}], apps, ok}. Gate on ok (true iff at least one compiler driver is available and every base dependency imports — rote doctor also exits non-zero otherwise). Each unavailable driver's reason is an actionable fix, and a missing dependency's line names the reinstall command. dependencies are the base install (the MCP client and httpx). runtimes lists the optional extras (dbos, temporal, serve, api, openai-api), which never fail the check. rote run on an app whose runtime extra is missing answers action_required (exit 2) with a plan that installs it, and the same command plus --yes applies it; compile, emit and init only print the install hint and go on. It also surfaces MCP servers whose auth is expired/not authenticated (those would park a run) and registered apps whose directory has gone missing. It does NOT probe CLI subscription auth for claude/codex — that's only verified at run time.

Read the full file on GitHub · 435 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. 10d ago Changed · +11 lines · +187 tokens per session 547a40f78397
  2. 12d ago Changed · +35 lines · +556 tokens per session aa8ed85643c2
  3. 13d ago Changed · +30 lines · +425 tokens per session 29fd4ed0bf35
  4. 14d ago Changed · +29 lines · +505 tokens per session 2e558120f628
  5. 15d ago Changed · +7 lines · +129 tokens per session 2cb3b1231041
  6. 17d ago Changed · +4 lines · +71 tokens per session de61832c0f0d
  7. 18d ago Changed · +11 tokens per session 3401ab012bc1
  8. 19d ago Changed · +3 lines · +56 tokens per session f81e9d70ec5b
  9. 2mo ago First seen · 316 lines · 4,235 tokens per session scan A 16f3d60be335

Subscribe to this mod's changes

rote AGENTS.md is an instructions file published in the GitHub repository trevhud/rote (8 stars, last pushed yesterday), licensed Apache-2.0. It adds 6,175 tokens to every session, about $0.0247 per session on Opus 5.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-31.

Related

rote AGENTS.md compared with instructions from other repositories

rote AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rote AGENTS.mdtrevhud/roteInstructions file8yesterdayApache-2.0A6,175Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode