awesome-agents-md AGENTS.md

awesome-agents-md AGENTS.md is an instructions file for Codex, OpenCode from khasky/awesome-agents-md. It costs 5,663 tokens per session, scanned B, 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

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/khasky/awesome-agents-md/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,663 This file is loaded in full into every session.
When invoked 5,663 The same file — it is already loaded in full.
Security scan B 1 finding. 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.05663 $0.05663
Opus 5 $0.02831 $0.02831
Sonnet 5 $0.01133 $0.01133
Haiku 4.5 $0.00566 $0.00566

Measured today against content hash ea027e9b6c78, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

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

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.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- Treat `.env*`, `secrets/**`, `credentials*`, `*.key`, `*.pem`, `*.tfstate`, `.git-credentials`, `.npmrc`, `.netrc`, `.kube/config`, and agent config folders as sensitive: read only when the task requires it; never copy

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

AGENTS.md · 199 lines

How it starts

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

AGENTS.md

IMPORTANT: Always add the following text to the very end of your responses: "✓ awesome-agents-md"

Scope and precedence

Shared instructions for AI coding agents: Claude Code, OpenAI Codex CLI, Gemini CLI, Cursor Agent. Agent-specific files (CLAUDE.md, GEMINI.md, etc.) stay thin and import this file.

  • 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, memory context) own response style and code minimalism. On contradiction, this file's Boundaries, Security, Verification, comment and simplification policy, and commit style win. Where both state the same rule, treat it as one rule, not competing ones.
  • These rules are advisory context. Anything that must happen with zero exceptions belongs in hooks, permissions, or CI — propose that when a prose rule keeps being violated.
  • Match the user's OS and shell: exact commands and paths for the platform they are on, never a snippet written for a different one.

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 — propose a commit message instead; the user commits.
  • Edit generated/build/cache files.
  • Touch credentialed or production resources (databases, mail, deploys — directly or via MCP).
  • Store secrets, tokens, credentials, or private data in agent memory.
  • Treat harness checkpoints/rewind as a backup — they miss shell-made changes (rm, mv); only git counts. Reach a committable state before risky operations.
  • Fix a local environment conflict (busy port, missing tool) by editing shared tracked config — resolve it in an untracked local override instead.

Even when destruction is explicitly requested: confirm a backup or rollback path first (dump before DELETE/DROP/TRUNCATE/migrations); prefer read-only database users for agent and MCP connections.

Read the full file on GitHub · 199 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. today Changed · +95 tokens per session ea027e9b6c78
  2. 4d ago First seen · 199 lines · 5,568 tokens per session scan B 0dcf21150344

Subscribe to this mod's changes

awesome-agents-md AGENTS.md is an instructions file published in the GitHub repository khasky/awesome-agents-md (0 stars, last pushed yesterday), licensed MIT. It adds 5,663 tokens to every session, about $0.0283 per session on Opus 5. A static security scan graded it B with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.