AgentRelay: Instructions file for Codex

AGENTS.md

AgentRelay AGENTS.md is an instructions file for Codex, OpenCode from swayamg20/AgentRelay. It costs 1,148 tokens per session, scanned A, original, MIT.

Repository instructions for AgentRelay, a software project that coordinates agents through relay components. They describe the required reading, design boundaries, implementation style, and product limits before editing code.

In plain words
What is it for?
Preparing code changes, tracing behavior across packages, consulting design documents, and handling differences between current code and planned designs.
Why use it?
They reduce changes based on incomplete understanding and help keep edits consistent with the project's architecture and tests.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/swayamg20/agentrelay/agents-md"><img src="https://agentmods.dev/badge/instructions/swayamg20/agentrelay/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,148 This file is loaded in full into every session.
When invoked 1,148 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.01148 $0.01148
Opus 5.5 $0.00459 $0.00459
Sonnet 5.5 $0.00230 $0.00230
Haiku 4.5 $0.00115 $0.00115

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

Security

Grade A, and why

AgentRelay 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 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.

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 · 103 lines

How it starts

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

AgentRelay repository instructions

Prime directive

Understand the system before changing it. Write the smallest clear solution that fully solves the requested problem. Do not trade readability for cleverness, and do not add abstractions, configuration, or defensive machinery without a concrete need.

Before editing

  • Inspect git status, the relevant implementation, its callers, and nearby tests.
  • Preserve unrelated work, including untracked files and stashes.
  • Read the relevant design source:
    • docs/architecture.md for current component and ownership boundaries.
    • docs/hld.md for the implemented mailbox and Relay control-plane flow.
    • docs/lld.md for current schemas, routes, tools, and known gaps.
    • docs/rfcs/002-agent-reachability-and-durable-mailbox.md for the public product, durable-mailbox, and sovereignty decisions.
    • docs/rfcs/001-agentrelay-node-and-missions.md for historical Labs decisions that explain the preserved implementation.
  • Trace cross-package behavior through protocol/, relay/, mcp-server/, and node/ as applicable. A contract is not understood until its producer and consumer have both been checked.
  • Treat active code and tests as current behavior. Public documentation explains shipped behavior and existing boundaries; it is not a long-range product roadmap. Take future implementation scope only from the owner's explicit task or a currently scoped public issue. If code and a design source disagree, state the discrepancy instead of silently choosing.

Implementation style

  • Make the smallest coherent change that satisfies the request.
  • Prefer direct code and existing patterns over speculative reuse.
  • Extract a helper only when it names a real rule, removes meaningful duplication, or makes a failure boundary easier to see.
  • Keep functions focused, names concrete, and data flow easy to follow.
  • Comments explain why, constraints, or non-obvious failure modes. Do not narrate what the code already says.
  • Do not perform unrelated cleanup or add features "while you are here."
  • Do not add a dependency unless the task genuinely needs it. Explain any addition.
  • Preserve public HTTP, JSON-RPC, MCP, CLI, database, and config contracts unless the task explicitly changes them.
  • Behavioral changes require focused tests for the changed contract. Do not add speculative tests for unrelated or hypothetical behavior.

Read the full file on GitHub · 103 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. 2mo ago Changed · +2 lines · +27 tokens per session b5f4adb1f8aa
  2. 2mo ago Changed · +14 lines · +201 tokens per session d3d0ebaac5e0
  3. 2mo ago First seen · 87 lines · 920 tokens per session scan A aa9682a92431

Subscribe to this mod's changes

AgentRelay AGENTS.md is an instructions file published in the GitHub repository swayamg20/AgentRelay (5 stars, last pushed 3d ago), licensed MIT. It adds 1,148 tokens to every session, about $0.0046 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

AgentRelay AGENTS.md compared with instructions from other repositories

AgentRelay AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
AgentRelay AGENTS.mdswayamg20/AgentRelayInstructions file53d agoMITA1,148Codex, 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