Borrowing it
Nothing to install: this file belongs to yoreai/relay. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/yoreai/relay/main/AGENTS.mdgit clone --depth 1 https://github.com/yoreai/relayWrote 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.
[](https://agentmods.dev/instructions/yoreai/relay/agents-md)<a href="https://agentmods.dev/instructions/yoreai/relay/agents-md"><img src="https://agentmods.dev/badge/instructions/yoreai/relay/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.
<a href="https://agentmods.dev/instructions/yoreai/relay/agents-md"><img src="https://agentmods.dev/badge/instructions/yoreai/relay/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.03182 | $0.03182 |
| Opus 5.5 | $0.01273 | $0.01273 |
| Sonnet 5.5 | $0.00636 | $0.00636 |
| Haiku 4.5 | $0.00318 | $0.00318 |
Grade B, and why
relay AGENTS.md scanned grade B with 2 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 2mo 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.
Sends data to an external URLmediumData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
allowlisted env (a full env made `lint: curl -d "$(env)"` an exfiltration one-liner). Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
allowlisted env (a full env made `lint: curl -d "$(env)"` an exfiltration one-liner). How it starts
The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Instructions
Instructions for AI coding agents working on relay.
Source-of-truth files
README.md— what relay is, install/use, honest limits, roadmapCHANGELOG.md— released-version history and the reasoning behind each change (Keep a Changelog). Entries explain why, so this doubles as the design recorddefaults/router.yaml— starter directive: lanes → tiers → models (policy, shipped as data)defaults/catalog.yaml— the model facts table: price + quality class + serving backends. The only price source. A user'sprices.yamloverrides it per model andrelay updatecan't correct that, so relay never ships or writes one- This file — architecture, invariants, and the maintenance playbook
There is intentionally no TODO.md and no separate design doc. Released history and
rationale → CHANGELOG.md. Architecture and hard-won rules → here. Anything unbuilt is a
GitHub issue, not a file, so it can be discussed and closed.
After every code change
- Update
CHANGELOG.mdunder[Unreleased]— say why, not just what - Add/update tests for changed behavior
- Run
bun testandbun run typecheck - Keep employer/other-project entanglement out of this repo — no internal links, tickets, code, or anything implying a company sponsors this. The author's own bio naming their day job is fine; that's who they are, not a claim about who owns relay
Catalog maintenance (every few weeks — the "always looked at" table)
defaults/catalog.yaml is data on main: installed relays fetch it via
relay update directly from the repo — catalog changes need no release.
- Review model prices/classes against provider price pages and coding-agent leaderboards; add new models, drop dead ones (keep classes honest — a model's class is its quality bar, advise swaps only within a class). Prefer independently-verified benchmarks; vendor-only numbers are not a class promotion
- Check what the CLIs actually serve —
cursor-agent models,claude --help— and add a pinned id map entry for anything you route to - If the new model replaces an existing one at the same-or-lower price, give it
supersedes: [old-id]. That is the ONLY wayadvisecan tell existing users about a strictly-better model that saves them nothing (the cheaper-model rule stays silent) - Mirror every change in
EMBEDDED_CATALOG_YAML(src/embedded_defaults.ts) - Bump the
updated:date in BOTH copies bun run scripts/check-catalog.ts+bun test, then push to main
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.
- 2mo ago First seen · 184 lines · 3,182 tokens per session scan B f3e9851577d7
relay AGENTS.md is an instructions file published in the GitHub repository yoreai/relay (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 3,182 tokens to every session, about $0.0127 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
relay AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| relay AGENTS.mdyoreai/relay | Instructions file | 2 | 2mo ago | Apache-2.0 | B | 3,182 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |