modrex: Instructions file for Codex

AGENTS.md

modrex AGENTS.md is an instructions file for Codex, OpenCode from modrexio/modrex. It costs 2,239 tokens per session, scanned A, original, MIT.

A central instruction guide for AI coding agents working in a software repository. It explains how repository rules are organized, which files to read, and which actions are forbidden.

In plain words
What is it for?
Use it to guide repository-wide code changes, load relevant skills, follow documentation rules, and preserve compatibility contracts.
Why use it?
It prevents agents from ignoring directory-specific guidance or making risky changes such as remote Git operations or unapproved commits.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/modrexio/modrex/agents-md"><img src="https://agentmods.dev/badge/instructions/modrexio/modrex/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,239 This file is loaded in full into every session.
When invoked 2,239 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.02239 $0.02239
Opus 5.5 $0.00896 $0.00896
Sonnet 5.5 $0.00448 $0.00448
Haiku 4.5 $0.00224 $0.00224

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

Security

Grade A, and why

modrex 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 7d 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 · 207 lines

How it starts

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

Agents

This file is the canonical instruction set for every AI coding agent working in this repository. Every CLAUDE.md in the repository is a one-line import of the AGENTS.md beside it and holds nothing of its own.

How these instructions are organized

  • This file holds what applies everywhere.
  • A directory that carries an AGENTS.md owns the rules for the files under it. Read the nearest AGENTS.md above each file you change before changing it, whether or not your tool loads nested files on its own.
  • .agents/rules/ai-danger-patterns.md holds worked examples of the five dangerous patterns below.
  • Reusable skills live in .agents/skills/<name>/SKILL.md. Load the relevant skill before executing it. Claude Code exposes them as slash commands through .claude/commands/.
  • docs/README.md routes the contributor documentation.

Repository rules

  • Never run any git command that touches the remote (push, push tag, delete tag, force push) or is destructive locally (tag -d, reset --hard). Write the command for the owner instead.
  • Never commit unless the owner explicitly approves the reviewed step.
  • Commit messages must follow conventional commits, type(scope): subject, enforced by commitlint.config.ts at commit time.
  • Package scripts run as bun <script>, except bun run build and bun run test: plain bun build and bun test silently start Bun's own bundler and test runner instead.
  • Deferred work is tracked in .TODO. Do NOT act on anything in it unless the user explicitly says "do the TODO: " — never infer intent from the file on your own.

Permanent compatibility contracts

  • Bare vX.Y.Z tags and GitHub Releases belong to the desktop application.
  • install.config.json stays at the repository root, and it is live install infrastructure, not local config: the modrex-site Pages Function behind modrex.net/install.sh fetches it from this repo's main branch on every request and prepends it (flattened to CFG_* shell exports) to the pinned mget install engine, so a push to main that touches it changes the live Linux installer immediately, with no release or site deploy involved. Field meanings are defined by mget's config schema (mget/README.md).
  • Desktop versions through 0.12.2 continue downloading the legacy monolithic index.db from modrexio/modrex-index's latest-index release. The new index pipeline stores its resumable catalog in Neon, publishes immutable per-game SQLite shards to R2 at index.modrex.net, and the site reads its aggregate stats from R2's catalog/latest.json.
  • modrexio/mget remains an independent repository and tag host.

Read the full file on GitHub · 207 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. 7d ago Changed · +2 lines · +36 tokens per session 2bff38b8ab1a
  2. 14d ago First seen · 205 lines · 2,203 tokens per session scan A e69fedf3d9b3

Subscribe to this mod's changes

modrex AGENTS.md is an instructions file published in the GitHub repository modrexio/modrex (21 stars, last pushed today), licensed MIT. It adds 2,239 tokens to every session, about $0.0090 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-11-15.

Related

modrex AGENTS.md compared with instructions from other repositories

modrex AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modrex AGENTS.mdmodrexio/modrexInstructions file21todayMITA2,239Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289kyesterdayMITA4,393Codex, OpenCode