CoderRelay AGENTS.md

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

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/lortzing/coderrelay/agents-md
Clone the repo
git clone --depth 1 https://github.com/Lortzing/CoderRelay

Made for: Codex, OpenCode.

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. 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.01552 $0.01552
Opus 5 $0.00776 $0.00776
Sonnet 5 $0.00310 $0.00310
Haiku 4.5 $0.00155 $0.00155

Measured yesterday against content hash b41770aaa83e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 1mo ago), licensed MIT. It adds 1,552 tokens to every session, about $0.0078 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-31.