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 skills/angel45604/the-foreman/codex-gatenpx skills add Angel45604/the-foreman --skill codex-gategit clone --depth 1 https://github.com/Angel45604/the-foremanWrote 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/skills/angel45604/the-foreman/codex-gate)<a href="https://agentmods.dev/skills/angel45604/the-foreman/codex-gate"><img src="https://agentmods.dev/badge/skills/angel45604/the-foreman/codex-gate.svg" alt="Measured on agentmods" 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 | $0.00193 | $0.11805 |
| Opus 5 | $0.00097 | $0.05902 |
| Sonnet 5 | $0.00039 | $0.02361 |
| Haiku 4.5 | $0.00019 | $0.01180 |
Grade A, and why
codex-gate scanned grade A 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 4d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
> HTTP/`curl`, running tests/evals, or triggering jobs can have real, irreversible side effects (spend How it starts
The opening of the file, as written. The whole thing — 525 lines — stays where its author put it; the contents beside it link to each section on GitHub.
codex-gate — drive Codex as an automated review gate
<skill-dir>in the commands below = the directory containing THIS SKILL.md. Installed as a plugin that is the plugin'sskills/codex-gate/dir; installed as a personal skill it is~/.claude/skills/codex-gate.
A user-global, local-only gate. The wrapper <skill-dir>/codex-gate.sh runs ONE
Codex review (config-isolated, --sandbox read-only) and prints a one-line JSON status:
{outcome, threadId, round, verdictPath, runDir, blockers, agentFixableBlockers, decisionBlockers, summary}
(plus an additive coverage object for prepr/prepr-delta) where
outcome ∈ APPROVE | BLOCK | INFRA_ERROR | OVERFLOW. YOU are the loop driver: read the status + the
per-round verdict file, fix agent_fixable blockers, re-review via resume, and converge.
The investigate mode is a sibling workflow that reuses this exact machinery for a different
job — root-causing a bug, not judging a change — and emits its own status. It does NOT review or
auto-fix; see Investigation mode below.
Contract + Phase-0 pins: <skill-dir>/README.md. The contract source of truth is README.md (sibling of this file).
When the user invokes /codex-gate <mode> [args]
Run the matching mode and drive the loop below. Modes:
plan <file>— review a plan doc beforeExitPlanMode. Code tier when run inside a git repo (so Codex can cross-check the plan against repo canon via read-only shell); doc tier when not in a repo.bundle <dir>— review a PDR/ADR/execution-plan bundle (code tier; Codex reads repo canon).phase-start <id>— snapshot the working tree BEFORE an implementation phase. Run this in the binding (before dispatching the implementer); it printsRUNDIR=/PHASE_HEAD=and writes nothing reviewable.phase-review <id>— review just that phase's changes after the full Claude review bundle.question <file>— ground a DECISION (architecture/feature) through Codex BEFORE you put it to the user via AskUserQuestion. Not a review gate — it emits an advisoryGROUNDEDstatus, not APPROVE/BLOCK. Code tier when run inside a git repo (Codex grounds in real code/canon); doc tier when not in a repo.investigate <brief>— root-cause a bug through Codex (a SIBLING of the review gate, NOT a review). Drives Codex as an independent read-only investigator bound by a safety contract in the brief; emits a root-cause status, never APPROVE/BLOCK, never auto-fixes. See Investigation mode below.prepr [base] [--multi]— whole-branch review before/commit-push-pr.--multiopts into multi-LENS review (see below) — the same diff judged through several specialized reviewer lenses.prepr-delta [base] [--multi]— since-reviewed delta ofprepr: review ONLY files that are unreviewed OR changed-since-reviewed (their currentgit hash-objectis not an approved-reviewed sha in the review ledger). Files whose hash still matches a prior approval are listed (path + sha + verdict ref) in an explicitALREADY REVIEWED & UNCHANGEDsection (proof, not silent omission). If every branch file is already reviewed+unchanged, it APPROVEs without calling Codex. Use it when apreprOVERFLOWed (huge diff) but most of the surface was already approved in earlier phases, or to re-PR after a small follow-up without re-reviewing the whole branch. Shares the budget guard + lean packet- OVERFLOW path with
prepr; same[base]default (merge-base chain).
- OVERFLOW path with
config— report the gate's effective dials + source/runtime parity. Not a gate and not a review: a read-only diagnostic that calls Codex zero times, creates no run dir, and exits 0. See below. There is no mode that writes anything outside~/.claude/codex-gate/— resolving a reported drift is a manual copy the owner runs, see "Syncing the drift away" below.
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- codex-gate.sh 165 KB runs code
- codex-gate.test.sh 267 KB runs code
- investigate-instructions.md 4.2 KB
- investigate.schema.json 1.4 KB
- question-instructions.md 1.5 KB
- question.schema.json 1021 B
- README.md 42 KB
- reviewer-instructions.arch.md 3.2 KB
- reviewer-instructions.frontend.md 3.5 KB
- reviewer-instructions.md 2.5 KB
- reviewer-instructions.security.md 3.3 KB
- reviewer-instructions.tests.md 3.3 KB
- verdict.schema.json 1.5 KB
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.
- 4d ago First seen · 525 lines · 193 tokens per session scan A c2ba4f5ad73e
codex-gate is a skill published in the GitHub repository Angel45604/the-foreman (2 stars, last pushed 6d ago), licensed MIT. It adds 193 tokens to every session and 11,805 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…