agents-md-templates: Instructions file for Codex

AGENTS.md

agents-md-templates AGENTS.md is an instructions file for Codex, OpenCode from abhishekray07/agents-md-templates. It costs 591 tokens per session, scanned A, original, MIT.

Contributor instructions for a repository of AGENTS.md templates and adapters. These templates let several coding tools use shared project guidance, while adapters connect each tool to the common instructions.

In plain words
What is it for?
Use it when editing templates, adapters, shared rules, workflows, or compatibility guidance for tools such as Codex, Claude Code, Cursor, and Copilot.
Why use it?
It helps keep templates short, portable, and easy to customize instead of creating separate, conflicting instructions for every coding tool.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 agents-md-templates AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/abhishekray07/agents-md-templates/agents-md"><img src="https://agentmods.dev/badge/instructions/abhishekray07/agents-md-templates/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 591 This file is loaded in full into every session.
When invoked 591 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.00591 $0.00591
Opus 5 $0.00296 $0.00296
Sonnet 5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

Measured 8d ago against content hash 40424f61e0c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

agents-md-templates 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 8d 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 · 52 lines

How it starts

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

AGENTS.md

This repo is a starter kit of AGENTS.md templates and per-tool adapters. It is content (markdown), not an application. This file is the canonical instructions for any agent working on this repo — and it doubles as a worked example of the format the templates teach.

Project

agents-md-templates — copy-paste AGENTS.md files and bridges that make one instruction file work across Claude Code, Codex, Cursor, Gemini CLI, Copilot, Windsurf, Aider, and the rest. Sibling to claude-md-templates.

Structure

  • templates/ — the AGENTS.md files users copy (global + per-stack)
  • adapters/ — bridges that point each tool at the canonical AGENTS.md
  • rules/ — scoped standards (the cross-tool analogue of Cursor/Windsurf rules)
  • workflows/ — tool-agnostic prompts and self-improvement loops
  • principles.md — the research; compatibility.md — the per-tool matrix

Conventions

  • Every template must stay lean. A project AGENTS.md over ~150 lines starts losing adherence — say so, don't pad.
  • Keep placeholders in [square brackets] so they're easy to find and replace.
  • Use <!-- HTML comments --> for notes to the human reader. Claude Code strips block-level HTML comments before loading; other tools may keep them, so stay brief.
  • Prefer "Don't X — do Y instead" over bare prohibitions.
  • Every factual claim about a tool's behavior must be traceable to a source in compatibility.md. If you can't cite it, mark it as community-reported.

Don't

  • Don't add formatting rules a linter enforces — that's a linter's job, not the agent's. Mention the linter instead.
  • Don't @-embed long docs into a template — pitch the agent on when to read them.
  • Don't duplicate the same rule across AGENTS.md and a tool-specific adapter. The adapter should reference AGENTS.md, not copy it.

Verification

This is a docs repo, so "tests" are link and shell checks:

  • Run bash scripts/check.sh — the full harness (shell syntax, setup.sh dry-run + real run + idempotency in a temp project, JSON validity, relative link resolution). It must exit 0 before publishing.
  • bash adapters/setup.sh --dry-run from a scratch dir should print the bridges it would create without writing anything.
  • Markdown links should resolve. Relative links point inside the repo; external links are listed in README.md and principles.md.

Read the full file on GitHub · 52 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. 8d ago First seen · 52 lines · 591 tokens per session scan A 40424f61e0c1

Subscribe to this mod's changes

agents-md-templates AGENTS.md is an instructions file published in the GitHub repository abhishekray07/agents-md-templates (2 stars, last pushed 3mo ago), licensed MIT. It adds 591 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.

Related

Other instructions, from other repositories

ruleProb copilot-instructions.md

Instructions for canblmz1/ruleProb, a project described as: Test whether your CLAUDE.md, AGENTS.md and .cursor/rules actually survive AI agent execution. Extract rules, generate sandbox scenarios, score compliance.

canblmz1/ruleProb · 19 tokens

agent-rulescope tests.instructions.md

Instructions for 13624725933/agent-rulescope, a project described as: See exactly which instructions your coding agent inherits. Scan AGENTS.md, CLAUDE.md, Cursor and Copilot rules.

13624725933/agent-rulescope · 38 tokens

agent-rulescope copilot-instructions.md

Copilot instructions for 13624725933/agent-rulescope, a project described as: See exactly which instructions your coding agent inherits. Scan AGENTS.md, CLAUDE.md, Cursor and Copilot rules.

13624725933/agent-rulescope · 25 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens