agents: Instructions file for Codex

AGENTS.md

agents AGENTS.md is an instructions file for Codex, OpenCode from wshobson/agents. It costs 1,811 tokens per session, scanned B, original, MIT.

Repository instructions for wshobson/agents, a marketplace of reusable coding-agent plugins containing agents, skills, and commands. They explain the repository layout, authoring rules, supported agent tools, and quality checks.

In plain words
What is it for?
Use them when working on plugins, agents, skills, commands, documentation, harness-specific files, or validation and regeneration tasks in that repository.
Why use it?
The repository uses one source format to generate files for several coding-agent tools. These instructions help contributors edit the right source files and regenerate the derived versions correctly.

Instructions file for CodexOpenCode

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

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

About the project

Agentic Plugin Marketplace is a collection of reusable plugins, agents, skills, commands, and rules for coding-agent tools including Claude Code, Codex CLI, Cursor, OpenCode, Antigravity CLI, and GitHub Copilot. It is for developers assembling agentic workflows across multiple harnesses from shared Markdown sources, and the catalogue entries are examples or subsets of those workflow components.

wshobson/agents · 43,088 stars · on GitHub · sethhobson.com

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/wshobson/agents/agents-md"><img src="https://agentmods.dev/badge/instructions/wshobson/agents/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,811 This file is loaded in full into every session.
When invoked 1,811 The same file — it is already loaded in full.
Security scan B 1 finding. 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.01811 $0.01811
Opus 5.5 $0.00724 $0.00724
Sonnet 5.5 $0.00362 $0.00362
Haiku 4.5 $0.00181 $0.00181

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

Security

Grade B, and why

agents AGENTS.md scanned grade B with 1 finding 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 12d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Antigravity CLI**: `.antigravity/plugins/<p>/agents/<agent>.md` (Markdown + YAML frontmatter, `model:` is a tier alias — `inherit`/`flash`/`pro`); TOML commands at `commands/<p>/<cmd>.toml` (agy reports these as "con
AGENTS.md · 85 lines

How it starts

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

Agents, skills, and commands for seven coding tools

The repository provides 93 plugins (91 local + 2 external), 199 agents, 185 skills, and 103 commands for seven coding tools: Claude Code, OpenAI Codex CLI, Cursor, OpenCode, Google Antigravity CLI (agy), GitHub Copilot, and Pi. Shared source files use the Claude Code format, and adapters provide the formats used by other tools. External entries have their own tool support.

AGENTS.md is the canonical context file. Codex, Cursor, OpenCode, Antigravity CLI, GitHub Copilot, and Pi read it directly. Claude Code reads it via CLAUDE.md, a symlink to this file.

Read this file like a table of contents. Detail lives in docs/. Authoring conventions live in docs/authoring.md. Per-harness setup and capability deltas live in docs/harnesses.md. This file should never grow beyond ~150 lines (per OpenAI's harness-engineering practice).

Map

Read the full file on GitHub · 85 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. 12d ago Changed 84f84b269ed8
  2. 1mo ago Changed 6244bdf41c86
  3. 1mo ago Changed · +5 lines · +111 tokens per session 95af409722f8
  4. 2mo ago Changed · -4 tokens per session scan A → B fdb2558e108a
  5. 2mo ago Changed · +3 lines · +144 tokens per session 9be183a76335
  6. 2mo ago Changed · +2 lines · +98 tokens per session 90128781060c
  7. 3mo ago First seen · 75 lines · 1,462 tokens per session scan A e2e070268546

Subscribe to this mod's changes

agents AGENTS.md is an instructions file published in the GitHub repository wshobson/agents (43,088 stars, last pushed yesterday), licensed MIT. It adds 1,811 tokens to every session, about $0.0072 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

agents AGENTS.md compared with instructions from other repositories

agents AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agents AGENTS.mdwshobson/agentsInstructions file43kyesterdayMITB1,811Codex, 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 file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot