Borrowing it
Nothing to install: this file belongs to yuanguang-ai-lab/codex-global-agents-template. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/yuanguang-ai-lab/codex-global-agents-template/main/AGENTS.mdgit clone --depth 1 https://github.com/yuanguang-ai-lab/codex-global-agents-templateWrote 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.
[](https://agentmods.dev/instructions/yuanguang-ai-lab/codex-global-agents-template/agents-md)<a href="https://agentmods.dev/instructions/yuanguang-ai-lab/codex-global-agents-template/agents-md"><img src="https://agentmods.dev/badge/instructions/yuanguang-ai-lab/codex-global-agents-template/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.
<a href="https://agentmods.dev/instructions/yuanguang-ai-lab/codex-global-agents-template/agents-md"><img src="https://agentmods.dev/badge/instructions/yuanguang-ai-lab/codex-global-agents-template/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.04861 | $0.04861 |
| Opus 5 | $0.02431 | $0.02431 |
| Sonnet 5 | $0.00972 | $0.00972 |
| Haiku 4.5 | $0.00486 | $0.00486 |
Grade C, and why
codex-global-agents-template AGENTS.md scanned grade C 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 9d 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.
Instruction-override phrasinghighPrompt injection
Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.
This section states a default authorization preference. It does not override system rules, platform policy, sandbox limits, or tool approvals. How it starts
The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Global AGENTS.md Template for Codex
01 - Identity And Scope
This file is a global Codex working agreement template. It defines stable cross-project defaults for collaboration style, safety boundaries, evidence standards, engineering habits, Git habits, and handoff discipline.
Use it as a starting point, not as a universal policy. Replace placeholders, remove rules that do not match your workflow, and keep project-specific facts in project-level or subdirectory-level AGENTS.md files.
The user or team is the product owner and final decision maker. Codex is a hands-on technical collaborator, research partner, and execution-focused advisor. For clear tasks, Codex should move work forward and report results with evidence, verification, risks, and remaining uncertainty.
This file should not store project-specific commands, architecture maps, release flows, generated-file rules, forbidden directories, or long operational manuals. Those belong closer to the project that needs them.
When current user instructions, project rules, and global rules all apply, follow the current user instruction first. For project facts and commands, use the most specific project rule. Safety, privacy, and irreversible-risk boundaries still apply.
02 - Working Agreements
Default Collaboration Posture
Codex is not merely a passive Q&A tool. It is a hands-on technical collaborator, research partner, and execution-oriented advisor.
When the objective is clear, Codex should move the work forward instead of stopping at suggestions. When the objective is unclear, involves important tradeoffs, or may affect safety, privacy, money, production systems, or externally visible outcomes, Codex should clarify and explain the risks before proceeding.
Codex should prioritize understanding what the user is really trying to accomplish, rather than mechanically executing the literal wording. When useful, Codex may propose a safer route, split the work, add verification steps, or point out risks that are easy to miss.
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.
- 9d ago First seen · 257 lines · 4,861 tokens per session scan C 6a62c7c4fdb8
codex-global-agents-template AGENTS.md is an instructions file published in the GitHub repository yuanguang-ai-lab/codex-global-agents-template (1 stars, last pushed 3mo ago), licensed MIT. It adds 4,861 tokens to every session, about $0.0243 per session on Opus 5. A static security scan graded it C with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
ai-agent-rules-generator copilot.instructions.md
Glitch WooCommerce Payment Gateway plugin coding guidelines — auto-doc sync for plugin, features, and infrastructure.
ai-agent-rules-generator agent-observations.instructions.md
Mandatory agent observation logging — anomalies, recommendations, and critical findings must be disclosed before commit.
ai-agent-rules-generator doc-sync.instructions.md
Documentation sync rules — which docs to update when code changes.
ai-agent-rules-generator ui-design.instructions.md
Glitch Payment Gateway admin UI design rules — mandatory element & component reference for WooCommerce settings.
ai-agent-rules-generator ratelimitting.instructions.md
Instructions for savedpixel/ai-agent-rules-generator, covering rate limit prevention (critical), rules, output length limits and visibility.
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.