modelrelay AGENTS.md

modelrelay AGENTS.md is an instructions file for Codex, OpenCode from ellipticmarketing/modelrelay. It costs 1,514 tokens per session, scanned A, original, MIT.

A set of development and release instructions for ModelRelay, a software project that requires its full test suite after changes. It also defines how version numbers are increased and how release commits are written.

In plain words
What is it for?
Use it after implementing a feature or fix, when preparing a release, when checking the current version history, and when committing all release changes.
Why use it?
It makes testing and release steps predictable instead of leaving them to individual judgment. This helps catch regressions and avoids inconsistent version bumps or commit messages.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/ellipticmarketing/modelrelay/agents-md
Clone the repo
git clone --depth 1 https://github.com/ellipticmarketing/modelrelay

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ellipticmarketing/modelrelay/agents-md.svg)](https://agentmods.dev/instructions/ellipticmarketing/modelrelay/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ellipticmarketing/modelrelay/agents-md"><img src="https://agentmods.dev/badge/instructions/ellipticmarketing/modelrelay/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,514 This file is loaded in full into every session.
When invoked 1,514 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 $0.01514 $0.01514
Opus 5 $0.00757 $0.00757
Sonnet 5 $0.00303 $0.00303
Haiku 4.5 $0.00151 $0.00151

Measured 4d ago against content hash 09b42f1ac8b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

modelrelay 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 4d 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 · 106 lines

How it starts

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

Agent Instructions

Post-Feature Testing

After completing any feature or fix, the agent MUST:

  1. Run pnpm test to verify the complete unit-test suite passes
  2. If any test fails, fix the issue immediately
  3. Re-run pnpm test until all tests pass

This ensures the codebase remains in a working state at all times.

Git Commits

When making a commit on behalf of the user, NEVER prefix your commit message with fix:, feature:, feat:, chore:, or any other prefix. Just write a descriptive sentence of what was changed.

Release Process (MANDATORY)

When releasing a new version, follow this exact process:

  1. Version Check: Check if version already exists with git log --oneline | grep "^[a-f0-9]\+ [0-9]"
  2. Version Bump: Update version in package.json. If the releas only includes bug fixes, bump a patch version (e.g., 0.1.160.1.17). If it includes new features, bump a minor version (e.g., 0.1.160.2.0) Do not bump the major version.
  3. Commit ALL Changed Files: git add . && git commit -m "Fixed issue with autostart"
    • Always commit using a description of what was changed as the commit message.
    • Include ALL modified files in the commit (bin/, lib/, test/, README.md, etc.)
  4. Push: git push origin master — this repo's release branch is master, and GitHub Actions will auto-publish to npm
  5. Create GitHub Release:
    gh release create VERSION --title "VERSION" --notes "Release notes"
    
    (e.g., gh release create 1.5.0 --title "1.5.0" --notes "Fixed an issue with ABC") When writing the release notes, summarize the changes from all commits since the last release.
  6. **Wait for npm Publish":
    for i in $(seq 1 30); do sleep 10; v=$(npm view modelrelay version 2>/dev/null); echo "Attempt $i: npm version = $v"; if [ "$v" = "0.1.17" ]; then echo "✅ published!"; break; fi; done
    
  7. Install and Verify: npm install -g [email protected]
  8. Test Binary: modelrelay --help (or any other command to verify it works)
  9. Only when the global npm-installed version works → the release is confirmed

Read the full file on GitHub · 106 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. 4d ago First seen · 106 lines · 1,514 tokens per session scan A 09b42f1ac8b2

Subscribe to this mod's changes

modelrelay AGENTS.md is an instructions file published in the GitHub repository ellipticmarketing/modelrelay (345 stars, last pushed 23d ago), licensed MIT. It adds 1,514 tokens to every session, about $0.0076 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.