AgentRelay AGENTS.md

AgentRelay AGENTS.md is an instructions file for Codex, OpenCode from swayamg20/AgentRelay. It costs 920 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

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/swayamg20/agentrelay/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 920 This file is loaded in full into every session.
When invoked 920 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.00920 $0.00920
Opus 5 $0.00460 $0.00460
Sonnet 5 $0.00184 $0.00184
Haiku 4.5 $0.00092 $0.00092

Measured 4d ago against content hash aa9682a92431, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 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 and target component 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/001-agentrelay-node-and-missions.md for the next architecture.
  • 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. Treat an accepted RFC as target behavior. If they 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 · 87 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 · 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 14d ago), licensed MIT. It adds 920 tokens to every session, about $0.0046 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.