CoderRelay: Instructions file for Codex

AGENTS.md

CoderRelay AGENTS.md is an instructions file for Codex, OpenCode from Lortzing/CoderRelay. It costs 1,552 tokens per session, scanned A, original, MIT.

A project instruction file for CoderRelay, a Python command-line application that manages coding-agent accounts and profiles.

In plain words
What is it for?
Use it when modifying CoderRelay's command-line interface, authentication, account switching, failover, tests, or project documentation.
Why use it?
It prevents agents from using outdated project names, losing credentials, or running commands outside the project's expected environment and workflow.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions Codex.

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lortzing/coderrelay/agents-md/github.svg)](https://agentmods.dev/instructions/lortzing/coderrelay/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/lortzing/coderrelay/agents-md"><img src="https://agentmods.dev/badge/instructions/lortzing/coderrelay/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 CoderRelay AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lortzing/coderrelay/agents-md"><img src="https://agentmods.dev/badge/instructions/lortzing/coderrelay/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,552 This file is loaded in full into every session.
When invoked 1,552 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.01552 $0.01552
Opus 5.5 $0.00621 $0.00621
Sonnet 5.5 $0.00310 $0.00310
Haiku 4.5 $0.00155 $0.00155

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

Security

Grade A, and why

CoderRelay 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 1mo 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 · 100 lines

How it starts

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

Project Agent Rules

  • Work from the project root and read this file before changes.
  • Use the project-local uv environment for Python commands.
  • Keep credentials out of source control and logs.
  • After code changes, run the full test suite and update this file when architecture or commands change.

Identity

  • Product: CoderRelay.
  • Distribution and full command: coder-relay.
  • Recommended command: cdy.
  • Python module: coder_relay.
  • Application home: ~/.config/coder-relay or $CODER_RELAY_HOME.
  • Current backend: OpenAI Codex CLI. Claude Code support is planned but not yet implemented.
  • Do not reintroduce CodexRelay, codex-relay, codex_relay, or cxr compatibility aliases.

Architecture

  • src/coder_relay/cli.py: Typer/Rich command definitions.
  • src/coder_relay/entrypoint.py: public command surface, global --version, concise status rendering, and lifecycle commands.
  • src/coder_relay/auth_store.py: active Codex auth resolution across auth.json and the macOS Codex Auth Keychain entry.
  • src/coder_relay/manager.py: legacy/base profile operations and failover implementation.
  • src/coder_relay/manager_v2.py: account-identity deduplication, active-profile synchronization, and credential-store-aware switching.
  • src/coder_relay/runtime_manager.py: public runtime manager and non-nested first-run bootstrap.
  • src/coder_relay/completion.py: Bash/Zsh/Fish completion for cdy and coder-relay.
  • src/coder_relay/lifecycle.py: update/uninstall dispatch and package-manager lifecycle behavior.
  • src/coder_relay/updater.py: latest stable Release discovery, platform/architecture asset selection, downloads, SHA-256 verification, and native update application.
  • src/coder_relay/health.py: ChatGPT and OpenAI-compatible API probes.
  • src/coder_relay/usage.py: auth parsing and ChatGPT usage queries.
  • src/coder_relay/config.py: Codex TOML generation.
  • src/coder_relay/storage.py: paths, atomic writes, locks, and backups.
  • scripts/cdy_launcher.py: PyInstaller entry point.
  • scripts/package_release.py: portable archive builder.
  • scripts/build_windows_installer.ps1: Windows Setup EXE and ZIP.
  • installers/windows/CoderRelay.iss: Inno Setup definition.
  • scripts/build_macos_dmg.sh: macOS PKG/DMG packaging.
  • scripts/build_linux_packages.sh: Linux TAR/DEB/RPM packaging.

Read the full file on GitHub · 100 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. 1mo ago First seen · 100 lines · 1,552 tokens per session scan A b41770aaa83e

Subscribe to this mod's changes

CoderRelay AGENTS.md is an instructions file published in the GitHub repository Lortzing/CoderRelay (2 stars, last pushed 3mo ago), licensed MIT. It adds 1,552 tokens to every session, about $0.0062 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

Other instructions, from other repositories