awesome-agents-md: Instructions file for Codex

AGENTS.md

awesome-agents-md AGENTS.md is an instructions file for Codex, OpenCode from khasky/awesome-agents-md. It costs 2,228 tokens per session, scanned A, original, MIT.

Repository instructions for AGENTS.md files, which give shared working rules to AI coding agents such as Codex, Claude Code, Gemini CLI, and Cursor Agent. They describe instruction precedence, safety boundaries, and verification expectations.

In plain words
What is it for?
Use them when configuring agent behavior, resolving conflicting instructions, checking security boundaries, matching the user's operating system, and verifying work.
Why use it?
They give different coding agents consistent guidance about which instructions apply and how to avoid unsafe or unverified changes. Project-specific instructions can still take priority when they are closer to the edited files.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/khasky/awesome-agents-md/agents-md"><img src="https://agentmods.dev/badge/instructions/khasky/awesome-agents-md/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,228 This file is loaded in full into every session.
When invoked 2,228 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.02228 $0.02228
Opus 5.5 $0.00891 $0.00891
Sonnet 5.5 $0.00446 $0.00446
Haiku 4.5 $0.00223 $0.00223

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

Security

Grade A, and why

awesome-agents-md 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 17d 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 · 77 lines

How it starts

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

AGENTS.md

Scope and precedence

  • Explicit user instructions in the chat override anything here. A project-level AGENTS.md/CLAUDE.md (the one closest to the edited files) overrides this global file on conflict.
  • Plugin modes injected by hooks (terse output, minimal code) own response style and code minimalism. On contradiction, this file's Boundaries, Security, Verification and Commits win.
  • Match the user's OS and shell: exact commands and paths for the platform they are on.
  • Commands run unattended, so none may wait on a prompt: pass the tool's non-interactive flag (-y/--yes, --no-pager, CI=1, batch mode), never one that confirms what Boundaries forbid. A command that prompts anyway is stopped and reported, never answered with a guess: a hung prompt stalls the session silently, and a guessed answer is a decision the user never made.
  • Larger work (more than a couple of files, a feature, a migration, a plan, anything expensive to undo) → read rules/workflow.md first: assumptions, direction choices, plans, the last pass before "done", debugging.

Boundaries

Never, unless the user explicitly asked for exactly that:

  • Delete files, rewrite git history, force-push, drop data, run migrations, or run destructive commands.
  • Run git commit or git push on your own initiative: propose a commit message instead. A request in this conversation to commit or push ("commit it", "push this") is the explicit ask, so do it.
  • Edit generated/build/cache files, or the files that constrain you: AGENTS.md/CLAUDE.md, agent settings, hooks, .gitignore, gate configs.
  • Make a failing check pass by weakening the check: skipping a hook (--no-verify), disabling a CI step, re-baselining a snapshot, adding an inline suppression, skipping or deleting a case, loosening an assertion or raising a timeout. The check stands in for the requirement, so satisfying the check instead reports done on work nobody did. Blocked by a check you believe is wrong: name the check, say why, and stop.
  • Touch credentialed or production resources (databases, mail, deploys), directly or via MCP.
  • Revert, overwrite or reformat a change you did not make.
  • Improvise past a git step that did not go through (a rejected push, a merge conflict, a hook refusal, an error, a denied command): stop and report what failed, the repository state, and your options. reset, rebase, --force or a second commit "fixing" the first is how an unrelated change ships.
  • Write to persistent agent memory (MEMORY.md, a memory directory or tool), even when the agent's own prompt says to save proactively: a saved fact steers every later session unseen. Ask "Save to memory: ?" and write only after the user's explicit yes; no answer or an unclear one means nothing is saved.

Read the full file on GitHub · 77 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. 17d ago Changed · +8 tokens per session 4df67d667d09
  2. 19d ago Changed · +17 tokens per session d7cbcfe7ce95
  3. 25d ago Changed · +1 lines · +96 tokens per session 4478db351611
  4. 27d ago Changed · +27 tokens per session f6cc8da8feee
  5. 1mo ago Changed · +3 lines · +191 tokens per session 71cf40f9ae2a
  6. 1mo ago Changed · +3 lines · +182 tokens per session 3c6d4c90653d
  7. 1mo ago Changed · -6 lines · -67 tokens per session f87faf084146
  8. 1mo ago Changed · -156 lines · -5,091 tokens per session scan B → A 54ee6242af20
  9. 1mo ago Changed · -22 lines · -2,831 tokens per session a3c03d8d5f28
  10. 1mo ago First seen · 254 lines · 9,696 tokens per session scan B d2b7a6f30aa5

Subscribe to this mod's changes

awesome-agents-md AGENTS.md is an instructions file published in the GitHub repository khasky/awesome-agents-md (71 stars, last pushed 4d ago), licensed MIT. It adds 2,228 tokens to every session, about $0.0089 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-09-01.

Related

awesome-agents-md AGENTS.md compared with instructions from other repositories

awesome-agents-md AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
awesome-agents-md AGENTS.mdkhasky/awesome-agents-mdInstructions file714d agoMITA2,228Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
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