Borrowing it
Nothing to install: this file belongs to chenrui333/codex-docs. 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/chenrui333/codex-docs/main/AGENTS.mdgit clone --depth 1 https://github.com/chenrui333/codex-docsWrote 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/chenrui333/codex-docs/agents-md)<a href="https://agentmods.dev/instructions/chenrui333/codex-docs/agents-md"><img src="https://agentmods.dev/badge/instructions/chenrui333/codex-docs/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/chenrui333/codex-docs/agents-md"><img src="https://agentmods.dev/badge/instructions/chenrui333/codex-docs/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.01283 | $0.01283 |
| Opus 5.5 | $0.00513 | $0.00513 |
| Sonnet 5.5 | $0.00257 | $0.00257 |
| Haiku 4.5 | $0.00128 | $0.00128 |
Grade A, and why
codex-docs 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 19d 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.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS Notes
Scope
- This repository is a periodic mirror for Codex-related docs and references.
- Keep changes focused on sync automation, output quality, and release hygiene.
Generated content boundaries
- Treat
docs/codex_capabilities.json,docs/codex_cli_surface.json,docs/cli-surface/**,docs/codex_models.json,docs/docs_manifest.json,docs/sync_summary.json,docs/source_coverage.json,docs/freshness.json,docs/developers.openai.com/**,docs/learn.chatgpt.com/**,docs/feature-flags/**,docs/github.openai.com/**,docs/platform.openai.com/**,dot_codex/skills/dot_system/**,system_prompts/codex-cli/**,weekly/events/**, andweekly/YYYY-MM-DD.mdas generated output. - Do not hand-edit mirrored docs, skills, or prompts unless doing a temporary emergency fix.
- Fix the responsible generator and regenerate affected output.
scripts/fetch_codex_docs.pycoordinates sync;scripts/model_catalog.py,scripts/cli_observations.py, andscripts/semantic_history.pyown the pure model, platform, and event transformations.scripts/collect_cli_surface.pycollects help observations;scripts/snapshot_feature_flags.pybuilds feature snapshots.
Local workflow
- Preferred command runner: use
just. - Setup environment:
just setup
- Run offline quality checks:
just lintjust test
- Run sync:
just syncfor full source discovery, orjust sync-releasefor strict release-only generation using a verified existing web mirror.
- Validate local idempotence + scope:
just check-strictfor two full strict syncs, freshness, idempotence, and changed-file scope.just checkis the non-strict local variant.
- For feature-flag snapshot changes:
just feature-flagsjust check-feature-flags
Validation expectations
- After changing sync logic, run sync twice and confirm second run is idempotent (no new diffs).
- Verify
docs/docs_manifest.jsonanddocs/sync_summary.jsonare updated consistently, including Codex CLI version metadata for CLI-backed changes. - The manifest fails closed when invalid (or missing while coverage exists) and is the transaction's commit point: write it last and atomically, and advance summary and coverage only after it. A rerun must reconcile every managed file to the plan.
- Verify
docs/source_coverage.jsonupdates consistently and includes expected counts, including complete ChatGPT Learn discovery and mirror coverage. - Preserve existing events in
weekly/events/YYYY-MM-DD.json; daily Markdown is their deterministic rollup. Repeated identical syncs must add neither events nor timestamp-only changes. Do not rewrite older daily reports during migration. - Keep web content provenance independent of CLI releases. Existing web-page CLI-version lists are frozen historical observations; new web pages must not acquire them.
- Model catalogs and feature snapshots must match the CLI release tag and immutable source commit. Model provenance mismatches fail freshness even inside the release-lag grace period.
- CLI removals require a newer descendant release on every previously observed platform. Unknown/divergent ancestry or an unavailable collector must retain last-known-good evidence; semantic history must not report false removals.
- Run CLI introspection in temporary isolated homes with sanitized subprocess environments; never capture real credentials, sessions, history, or inherited GitHub tokens.
- Keep the repository otherwise unchanged while
just check-strictruns: its scope check snapshots the whole working tree. - For feature-flag automation or source-input changes, verify
docs/feature-flags/**withjust check-feature-flags; snapshots must use the source commit resolved from the CLI release tag.
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.
- 19d ago Changed · +1 lines · +50 tokens per session a41305365f92
- 2mo ago Changed · +9 lines · +484 tokens per session 4bf15008a7da
- 2mo ago First seen · 56 lines · 749 tokens per session scan A a69162d0c8b0
codex-docs AGENTS.md is an instructions file published in the GitHub repository chenrui333/codex-docs (5 stars, last pushed today), licensed MIT. It adds 1,283 tokens to every session, about $0.0051 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-08-31.
codex-docs AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codex-docs AGENTS.mdchenrui333/codex-docs | Instructions file | 5 | today | MIT | A | 1,283 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 275k | 3d ago | MIT | A | 4,313 | Codex, OpenCode |