relay AGENTS.md

Repository instructions for coding agents working on the Relay project. They define testing, formatting, attribution, collaboration, and task-completion rules.

In plain words
What is it for?
Use them when changing Relay code to choose the right Vitest tests, run formatting, lint, type checks, and broader verification, and follow the project’s commit and collaboration requirements.
Why use it?
They give agents the project’s expected checks and boundaries, reducing incorrect test commands, unwanted attribution, and incomplete handoffs.

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/adarshp14/relay/agents-md
Clone the repo
git clone --depth 1 https://github.com/adarshp14/relay

Made for: Codex, OpenCode.

Per session 600 This file is loaded in full into every session.
When invoked 600 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.00600 $0.00600
Opus 5 $0.00300 $0.00300
Sonnet 5 $0.00120 $0.00120
Haiku 4.5 $0.00060 $0.00060

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

How it starts

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

AGENTS.md

Task Completion Requirements

  • Use Effect Vitest for tests.
  • Run targeted tests with vitest run ... when working on a scoped area.
  • The root/package bun run test scripts are allowed because they delegate to Vitest.
  • NEVER run bun test.
  • For code changes, run the narrowest useful verification before handing back.
  • For broad or merge-ready changes, the full gates are bun run format:check, bun run lint, bun run typecheck, and bun run test.

Attribution

Do not add any AI assistant, Claude, Anthropic, or Co-Authored-By attribution/trailers to commits, commit messages, PRs, or generated files.

Pull request titles and descriptions are going to a public GitHub repo, so avoid using specific names or internal info unless explicitly stated to.

Collaboration Notes

The user uses speech to text occasionally, so if sentences are weird or words are not right, infer the likely intent and ask only when needed.

Code is very cheap to write. Do not give time estimates; with agents, code is practically instant to generate. Unless stated otherwise, time to implement is not a blocker.

Reference Repos

Repos in .reference, such as Effect and effect-atom, are available for patterns. If given a Git URL for reference, clone it into .reference and inspect it there. Make sure to pull the latest changes from the reference repo before using it.

Engineering Priorities

  • Prefer correctness and predictable behavior over short-term convenience.
  • Preserve runtime behavior when changing lint, typing, or test structure.
  • Keep package boundaries clear; use public package exports instead of relative imports across package roots.
  • Extract shared logic only when the shared behavior is real and local patterns support it. Avoid broad generic abstractions for one-off duplication.

Package Roles

  • packages/core/sdk: relay core contracts, plugin wiring, scopes, sources, secrets, policies, and test fixtures.
  • packages/core/storage-*: storage adapters and storage test support.
  • packages/plugins/*: protocol and provider plugins. Plugin-specific runtime, React, API, and testing helpers should live with the owning plugin.
  • packages/react: shared React UI and atom/client integration.
  • packages/hosts/mcp: MCP host surface for exposing Relay through MCP.
  • packages/kernel/*: execution runtimes and code execution substrate.
  • apps/local, apps/cloud, apps/cli, and apps/desktop: product entry points that compose the packages.

Read the full file on GitHub · 63 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 · 63 lines · 600 tokens per session scan A cf1d5ffbc4d3

Subscribe to this mod's changes

relay AGENTS.md is an instructions file published in the GitHub repository adarshp14/relay (0 stars, last pushed 2mo ago), licensed MIT. It adds 600 tokens to every session, about $0.0030 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.