relay: Instructions file for Codex

AGENTS.md

relay AGENTS.md is an instructions file for Codex, OpenCode from AgentWorkforce/relay. It costs 2,397 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for AgentWorkforce/relay, including rules for branches, commits, releases, and project changes. They require work to happen on a feature branch and leave merging into the main branch to the user.

In plain words
What is it for?
Use them when changing Relay, especially when creating a branch, committing work, updating the changelog, or preparing changes for the user to merge.
Why use it?
They prevent accidental direct changes to the main branch and keep release notes consistent. They also define the expected handoff after an agent finishes its work.

Instructions file for CodexOpenCode

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

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

About the project

Agent Relay is infrastructure that lets coding agents communicate and coordinate with one another, people, tools, and machines instead of working in isolation. Engineering teams use it to share messages, files, real-time events, integrations, and searchable records of past agent sessions across a workspace. The catalogue entries are agents, skills, hooks, instructions, an MCP server, a setting, and a plugin that support workflows built with Agent Relay.

AgentWorkforce/relay · 1,094 stars · on GitHub · agentrelay.com

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/agentworkforce/relay/agents-md"><img src="https://agentmods.dev/badge/instructions/agentworkforce/relay/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,397 This file is loaded in full into every session.
When invoked 2,397 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.02397 $0.02397
Opus 5.5 $0.00959 $0.00959
Sonnet 5.5 $0.00479 $0.00479
Haiku 4.5 $0.00240 $0.00240

Measured 27d ago against content hash 21b6e63b2a2d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

relay 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 27d 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 · 316 lines

How it starts

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

Git Workflow Rules

NEVER Push Directly to Main

CRITICAL: Agents must NEVER push directly to the main branch.

  • Always work on a feature branch
  • Commit and push to the feature branch only
  • Let the user decide when to merge to main
  • Do not merge to main without explicit user approval
# CORRECT workflow
git checkout -b feature/my-feature
# ... do work ...
git add .
git commit -m "My changes"
git push origin feature/my-feature
# STOP HERE - let user merge

# WRONG - never do this
git checkout main
git merge feature/my-feature
git push origin main  # NO!

This ensures the user maintains control over what goes into the main branch.

Changelog

Curate [Unreleased] in CHANGELOG.md as you land PRs. The root changelog is the cross-package, user-facing release narrative for Relay. It follows Keep a Changelog and Semantic Versioning.

An empty post-release changelog starts with [Unreleased]. The first pending user-visible change must set the heading to [Unreleased - Patch], [Unreleased - Minor], or [Unreleased - Major] according to its SemVer impact. The pending release level is monotonic (Patch < Minor < Major): raise the heading when a higher-impact change arrives; never lower it for a later lower-impact change, and leave it unchanged for another change at the same level. When a release is cut, move the pending entries under the released version and restore an empty [Unreleased] heading with no release level.

Changelog entries should be concise and impact-first. Prefer one short bullet per user-visible change: name the command, API, schema, or package touched and the practical effect. Drop issue/PR links, internal review notes, implementation backstory, release-only entries, and "foundation for..." phrasing unless that text clearly explains the shipped impact.

Use Keep a Changelog sections (Added, Changed, Deprecated, Removed, Fixed, Security), plus Breaking Changes and Migration Guidance when a SemVer-major change needs explicit callouts. Do not use generated perspective sections such as "Product Perspective", "Technical Perspective", or "Releases". Do not add web-only changes to the changelog. Omit unpublished or withdrawn versions as release headings; move their shipped user-visible changes into the corrected published release.

Read the full file on GitHub · 316 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. 28d ago Changed · +43 lines · +608 tokens per session 79a65e5cd436
  2. 1mo ago Changed · +31 lines · +314 tokens per session 21b6e63b2a2d
  3. 2mo ago First seen · 285 lines · 2,083 tokens per session scan A 927aa8d03e83

Subscribe to this mod's changes

relay AGENTS.md is an instructions file published in the GitHub repository AgentWorkforce/relay (1,094 stars, last pushed today), licensed Apache-2.0. It adds 2,397 tokens to every session, about $0.0096 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-30.

Related

relay AGENTS.md compared with instructions from other repositories

relay AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
relay AGENTS.mdAgentWorkforce/relayInstructions file1.1ktodayApache-2.0A2,397Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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 file274k2d agoMITA4,313Codex, OpenCode