bounded-relay: Instructions file for Codex

AGENTS.md

bounded-relay AGENTS.md is an instructions file for Codex, OpenCode from mohammad19974/bounded-relay. It costs 715 tokens per session, scanned A, original, MIT.

Repository instructions for contributors working on BoundedRelay, a local service that sends limited coding jobs from Claude Code to Codex.

In plain words
What is it for?
Use them when changing BoundedRelay code to understand its execution modes, routing rules, security requirements, and quality gates.
Why use it?
They define the product's boundaries and the checks contributors must follow, helping prevent unsafe changes such as direct source edits, automatic patch application, or credential storage.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mohammad19974/bounded-relay/agents-md"><img src="https://agentmods.dev/badge/instructions/mohammad19974/bounded-relay/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 715 This file is loaded in full into every session.
When invoked 715 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.00715 $0.00715
Opus 5.5 $0.00286 $0.00286
Sonnet 5.5 $0.00143 $0.00143
Haiku 4.5 $0.00072 $0.00072

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

Security

Grade A, and why

bounded-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 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 · 78 lines

How it starts

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

Repository Operating Rules

These rules apply to human and AI contributors working in this repository.

Product boundary

BoundedRelay is a local stdio MCP server that delegates bounded jobs from Claude Code to the supported codex exec --json interface. It also provides optional, additive SDD primitives for deterministic task routing and content-addressed dual review.

Version 0.1 keeps two established Codex execution modes:

  • analyze: read-only execution in the validated source Git repository;
  • proposal: opt-in execution in a disposable clean local clone, returning a validated binary patch that is never applied by this project.

The SDD router separately names two assignment lanes: codex and claude-host. The latter is the current Claude Code session using its host-selected model. The worker must never launch Claude or choose a Claude model.

Do not add direct source-worktree writes, automatic patch application, remote mutation, credential storage, model-quality claims, persistent jobs, or an audit ledger without an explicit design change and matching documentation.

Before changing code

  1. Read README.md, docs/architecture.md, and docs/security-model.md.
  2. Inspect the current source, tests, package scripts, and working tree.
  3. Keep public documentation aligned with the actual implementation.
  4. Preserve the one-way topology: Claude Code → MCP worker → Codex CLI.

Implementation invariants

  • Never interpolate task text into a shell command.
  • Spawn executables with argument arrays and shell: false.
  • Keep MCP stdout protocol-only; diagnostics belong on stderr.
  • Keep analysis read-only by default.
  • Proposal mode remains disabled unless CCW_ENABLE_PROPOSALS=true.
  • Proposal work occurs only in the isolated clone and requires a clean, revision-pinned source.
  • Validate paths, Git refs, patch size, changed-file count, and symlink boundaries before returning a proposal.
  • Never apply, commit, push, publish, deploy, or modify a remote system.
  • Never log or commit authentication material, prompts, job output, or local runtime state.
  • Unknown Codex JSONL events must not crash a valid run merely because Codex added a new event type.

Read the full file on GitHub · 78 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 First seen · 78 lines · 715 tokens per session scan A e30bef4875ee

Subscribe to this mod's changes

bounded-relay AGENTS.md is an instructions file published in the GitHub repository mohammad19974/bounded-relay (1 stars, last pushed 8d ago), licensed MIT. It adds 715 tokens to every session, about $0.0029 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

bounded-relay AGENTS.md compared with instructions from other repositories

bounded-relay AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bounded-relay AGENTS.mdmohammad19974/bounded-relayInstructions file18d agoMITA715Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot