codex

codex is a skill for Claude Code from bengous/claude-code-plugins. It costs 49 tokens per session (1,708 once invoked), scanned A, original, MIT.

A bridge that runs the OpenAI Codex command-line tool so another AI model can give a second opinion or help with coding work.

In plain words
What is it for?
Use it to invoke Codex from a project, pass Codex command-line options, select an available model, and collaborate on code or technical decisions.
Why use it?
It provides cross-model collaboration when one model's answer, design, or implementation would benefit from an independent review.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the agents-bridge plugin — 6 skills shipped together

Good fit Use it to invoke Codex from a project, pass Codex command-line options, select an available model, and collaborate on code or technical decisions.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add bengous/claude-code-plugins
Claude Code
/plugin install agents-bridge

Made for: Claude Code.

Or install agents-bridge, the plugin that ships this one along with the rest of its 6 skills.

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 codex

README.md
[![agentmods](https://agentmods.dev/badge/skills/bengous/claude-code-plugins/codex/github.svg)](https://agentmods.dev/skills/bengous/claude-code-plugins/codex)
Your own site
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/codex"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/codex/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.

agentmods 80×15 button for codex

Your own site · 80×15
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/codex"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,708 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00049 $0.01708
Opus 5.5 $0.00020 $0.00683
Sonnet 5.5 $0.00010 $0.00342
Haiku 4.5 $0.00005 $0.00171

Measured 14d ago against content hash 7cf07c241351, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex 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 14d 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.

agents-bridge/skills/codex/SKILL.md · 155 lines

How it starts

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

Codex Bridge

Every Codex call goes through codex-run.ts, which owns the invocation: a private run directory, the resolved settings in run.json, one directory per turn, a detached supervisor that outlives the Bash call, and resume on the same thread with the same settings. Pass the user's request through; do not call the codex CLI directly.

Models

<codex_models> !"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" models </codex_models>

Without --role or -m, the run uses the codex configuration default. Pick a role when the work calls for a tier; pass -m <slug> only when the user names a model, with a slug from the list above.

Work Role
Implementation, debugging, judgment on code coding
Review, audit, security, hard reasoning audit
Tests, gates, research, bounded mechanical work bounded

--effort <level> overrides the role's effort; it must appear in that model's efforts: list. codex-run.ts checks both against the catalog and refuses an unknown pair with exit 2.

Run a turn

  1. Create the run directory. Use the printed path literally in every later step: shell variables do not survive between Bash calls.

    "${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" new codex
    
  2. Write the task for Codex to <dir>/prompt.md with the Write tool, as an instruction addressed to Codex: the user's request verbatim, minus the parts addressed to you (which model, role or effort to use, how to report back to the user). Codex reads "ask Codex to…" as an order to run the codex CLI. The prompt never goes on the command line.

  3. Start the turn from the repository Codex works in (-C <dir> otherwise):

    "${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" start <dir> --prompt-file <dir>/prompt.md
    

    Add --role <role>, -m <slug> or --effort <level> as above. Add --skip-git-repo-check only when -C points outside a git repository. Run each codex-run.ts command alone, as written: a ;, && or echo $? added to it asks for permission. The envelope's status already gives the exit code.

Read the full file on GitHub · 155 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. 14d ago Changed · -40 lines · +36 tokens per session scan B → A 7cf07c241351
  2. 1mo ago Changed · +8 lines e5ad14a5f10d
  3. 1mo ago First seen · 187 lines · 13 tokens per session scan B 1f93b8f11d49

Subscribe to this mod's changes

codex is a skill published in the GitHub repository bengous/claude-code-plugins (5 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 1,708 once invoked, about $0.0002 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.