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.
npx agentmods add instructions/chenrui333/codex-docs/agents-mdgit clone --depth 1 https://github.com/chenrui333/codex-docsWhat 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 | $0.00749 | $0.00749 |
| Opus 5 | $0.00375 | $0.00375 |
| Sonnet 5 | $0.00150 | $0.00150 |
| Haiku 4.5 | $0.00075 | $0.00075 |
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 2d 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 — 56 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/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/**, andsystem_prompts/codex-cli/**as generated output. - Do not hand-edit mirrored docs, skills, or prompts unless doing a temporary emergency fix.
- If an output problem exists, fix
scripts/fetch_codex_docs.pyinstead.
Local workflow
- Preferred command runner: use
just. - Setup environment:
just setup
- Run offline quality checks:
just lintjust test
- Run sync:
just sync
- Validate local idempotence + scope:
just check
- 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. - Verify
docs/source_coverage.jsonupdates consistently and includes expected counts, including complete ChatGPT Learn discovery and mirror coverage. - Keep
weekly/YYYY-MM-DD.mdgeneration deterministic for unchanged inputs. - 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.
CI behavior
.github/workflows/update-docs.ymlis a fail-closed direct-push sync tomain; it must not commit partial-source output.- Keep direct-push model unless explicitly requested to move to PR-based flow.
.github/workflows/release.ymlcreates versioned releases from the rootVERSIONfile..github/workflows/propose-version-bump.ymlis an optional monthly/manual helper that opens aVERSIONbump PR..github/workflows/update-feature-flags.ymlkeepsdocs/feature-flags/**snapshots fresh and enforces freshness on related pull requests.
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.
- 2d 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 2d ago), licensed MIT. It adds 749 tokens to every session, about $0.0037 per session on Opus 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.
Other instructions, from other repositories
codexia AGENTS.md
Instructions for milisp/codexia, covering agents.md, project info, project tech, common commands and project structure.
CodexPotter AGENTS.md
Instructions for breezewish/CodexPotter, covering repository guidelines, workflow principles, engineering rules, core principles: simplicity & readability and better maintainability.
codex-howto AGENTS.md
Instructions for Phelan164/codex-howto, covering repository guidance, purpose, editing rules, validation and definition of done.
vibe-codex AGENTS.md
Instructions for kks0488/vibe-codex, covering vibe-codex (codex cli), repo conventions, openai docs and handy commands.
codex-status-bar AGENTS.md
Instructions for yuriipalam/codex-status-bar, covering repository instructions, engineering expectations, verification and release procedure.
ctxwise AGENTS.md
Instructions for FramY2/ctxwise, a project described as: CtxWise — see and control what Codex loads. Local-first context audit, profiles, drift detection, and honest token receipts.