agent-codex-gate

agent-codex-gate is a skill for Claude Code, Codex from verivus-oss/llm-cli-gateway. It costs 50 tokens per session (1,994 once invoked), scanned A, original, MIT.

A pattern for using subagents whose work must pass an evidence-backed review by Codex, an AI coding agent.

In plain words
What is it for?
Spawning subagents, sending their results through the required local review gateway, and accepting only approved results or handling required changes and external blocks.
Why use it?
It adds an independent quality check before accepting parallel implementation work.

Skill for Claude CodeCodex

Part of the llm-gateway plugin — 24 skills, 4 commands, 2 MCP servers shipped together

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 skills/verivus-oss/llm-cli-gateway/agent-codex-gate
Any agent
npx skills add verivus-oss/llm-cli-gateway --skill agent-codex-gate
Clone the repo
git clone --depth 1 https://github.com/verivus-oss/llm-cli-gateway

Made for: Claude Code, Codex.

Or install llm-gateway, the plugin that ships this one along with the rest of its 24 skills, 4 commands, 2 MCP servers.

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 agent-codex-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/verivus-oss/llm-cli-gateway/agent-codex-gate.svg)](https://agentmods.dev/skills/verivus-oss/llm-cli-gateway/agent-codex-gate)
Your own site
<a href="https://agentmods.dev/skills/verivus-oss/llm-cli-gateway/agent-codex-gate"><img src="https://agentmods.dev/badge/skills/verivus-oss/llm-cli-gateway/agent-codex-gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00050 $0.01994
Opus 5 $0.00025 $0.00997
Sonnet 5 $0.00010 $0.00399
Haiku 4.5 $0.00005 $0.00199

Measured 5d ago against content hash 97d40a4f2902, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-codex-gate 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 5d 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.

skills/agent-codex-gate/SKILL.md · 191 lines

How it starts

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

Agent + Codex Gate Pattern

Spawn subagents for independent implementation work, then make each one obtain an unconditional Codex verdict before accepting its result. A Codex-only gate is not a substitute for a required cross-LLM review.

Required Transport and Review Contract

Use the local stdio gateway only. In Codex, the tools normally appear as mcp__gtwy__codex_request, mcp__gtwy__codex_request_async, and mcp__gtwy__llm_job_*. Other MCP clients may display the short names. Do not run the codex CLI directly for a review request.

For every mandatory review:

  1. Omit model unless the caller explicitly selected a model.
  2. Pass approvalStrategy: "legacy". Gateway-managed approval is Claude-only; Codex rejects mcp_managed and ignores approvalPolicy.
  3. Use sandboxMode: "read-only" for normal inspection. Use sandboxMode: "workspace-write" only when the reviewer must produce write-producing build or test artifacts. Do not use fullAuto; it is a deprecated shorthand for workspace-write.
  4. Require the terminal JSON verdict: APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED, or BLOCKED_EXTERNAL.
  5. Do not set a review round, turn, token, price, cost, or wallclock limit. The configured idle-timeout safeguard is for a process that produces no output, not a completion deadline.
  6. Continue until Codex returns explicit, evidence-backed APPROVED_UNCONDITIONALLY. A conditional verdict, residual finding, malformed response, inability to verify, timeout, cancellation, or provider failure is not approval.

Repair access, targeting, evidence, or findings and resubmit as often as needed. Stop only on explicit user cancellation or a terminal external provider failure. Report a terminal failure as BLOCKED_EXTERNAL with its exact error; never skip the gate or label the work approved.

Explicit user-authorized full-access Codex gate

The preceding read-only and workspace-write defaults are the normal Codex gate, not a limit on an explicitly authorized full-access review. For that exception, build the exact target checkout and start node dist/index.js --transport=stdio from it. Do not use a globally installed or stale gtwy process.

Read the full file on GitHub · 191 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. 5d ago First seen · 191 lines · 50 tokens per session scan A 97d40a4f2902

Subscribe to this mod's changes

agent-codex-gate is a skill published in the GitHub repository verivus-oss/llm-cli-gateway (15 stars, last pushed 2d ago), licensed MIT. It adds 50 tokens to every session and 1,994 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

architecture

Project architecture and file structure conventions for all process types. Use when: (1) Creating new files or modules, (2) Deciding where code should go, (3) Converting single-file components to directories, (4) Reviewing code for structure compliance, (5) Adding new bridges, services, agents, or workers.

iOfficeAI/AionUi · 69 tokens

testing

Testing workflow and quality standards for writing and running tests. Use when: (1) Writing new tests, (2) Adding a new feature that needs tests, (3) Modifying logic that has existing tests, (4) Before claiming a task is complete.

iOfficeAI/AionUi · 55 tokens

deep-execution

Executes agent-enhanced council queries as one Workflow of parallel Claude analyst agents that each query a provider, evaluate response quality, ask follow-up questions, and return a schema-enforced analysis with confidence ratings and blind spot analysis. Invoked when the --agents flag is used or when complex…

hex/claude-council · 66 tokens

bug-audit

Weekly multi-agent audit for serious bugs (data integrity, silent caps, staleness, timestamp math, trust boundaries). Fans out Sonnet scanners + Opus deep auditors, adversarially verifies every finding, files GitHub issues for confirmed critical/high bugs. Trigger: /bug-audit.

VasiHemanth/tokentelemetry · 0 tokens

provider-integration

Adds new AI providers to claude-council, configures provider API settings, troubleshoots provider connections, and documents the provider script interface. Covers creating provider shell scripts, setting API keys, and validating connectivity. Triggers on "add provider", "new AI agent", "provider not working", "API…

hex/claude-council · 74 tokens

architect

System design, tradeoffs, and complex technical decisions.

antonbabenko/deliberation · 13 tokens