codex

codex is a skill for Claude Code from luckeyfaraday/codex-router. It costs 113 tokens per session (1,997 once invoked), scanned A, original, MIT.

A skill for sending large, well-defined implementation tasks to OpenAI Codex as a background worker while another agent coordinates and reviews the result.

In plain words
What is it for?
Delegating large refactors, bulk migrations, boilerplate-heavy features, or many similar fixes to a GPT-based coding worker.
Why use it?
It moves heavy coding work out of the main interaction while keeping task direction and quality review in one place.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the codex-router plugin — 1 skill shipped together

Good fit Delegating large refactors, bulk migrations, boilerplate-heavy features, or many similar fixes to a GPT-based coding worker.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luckeyfaraday/codex-router/codex
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.

Any agent
npx skills add luckeyfaraday/codex-router --skill codex
Clone the repo
git clone --depth 1 https://github.com/luckeyfaraday/codex-router

Made for: Claude Code.

Or install codex-router, the plugin that ships this one along with the rest of its 1 skill.

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/luckeyfaraday/codex-router/codex/github.svg)](https://agentmods.dev/skills/luckeyfaraday/codex-router/codex)
Your own site
<a href="https://agentmods.dev/skills/luckeyfaraday/codex-router/codex"><img src="https://agentmods.dev/badge/skills/luckeyfaraday/codex-router/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/luckeyfaraday/codex-router/codex"><img src="https://agentmods.dev/badge/skills/luckeyfaraday/codex-router/codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,997 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.00113 $0.01997
Opus 5.5 $0.00045 $0.00799
Sonnet 5.5 $0.00023 $0.00399
Haiku 4.5 $0.00011 $0.00200

Measured 3mo ago against content hash 24fc57cb6cd0, 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run-codex.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/codex/SKILL.md · 159 lines

How it starts

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

Codex Offload — route heavy work to GPT-5.6

You are the orchestrator and reviewer. Codex is the background worker. Select its model for the task, write a precise brief, launch Codex non-interactively, keep working or wait, then review and verify what it produced. You own final quality — never present Codex's output to the user unreviewed.

When to offload (and when not to)

Offload when the task is heavy but well-specified: large refactors or renames across many files, bulk migrations (API, framework, syntax), generating boilerplate-heavy features from a clear spec, fixing a long list of similar test failures or lint errors, or any task the user explicitly asks to send to Codex or a GPT worker.

Keep it yourself when the task is small (faster to just do it), requires conversation context or user judgment mid-flight, is design/architecture work, or touches secrets and credentials.

1. Preflight (once per session)

codex login status
codex --version
  • codex not found → tell the user: npm install -g @openai/codex
  • Not logged in → tell the user to run ! codex login (interactive; you cannot do it for them)
  • GPT-5.6 requires Codex CLI 0.144.0 or newer. If it is older, tell the user to update Codex before routing to GPT-5.6.

2. Select the worker model

Honor an explicit model request from the user. Otherwise, honor CODEX_ROUTER_MODEL when it is set; it is the user's configured default. If neither chooses a model, route as follows:

Model ID Use for Typical effort
gpt-5.6-sol Hard, ambiguous-but-implementable, cross-cutting, or long-horizon coding work where quality is worth additional time and cost high or xhigh; use max only when the account supports it
gpt-5.6-terra The default: well-specified refactors, migrations, and substantial everyday implementation work high
gpt-5.6-luna Tightly bounded, repetitive, high-throughput work where latency and cost matter more than frontier reasoning medium or high

Read the full file on GitHub · 159 lines

Files

What ships with it

1 file 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.

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. 3mo ago First seen · 159 lines · 113 tokens per session scan A 24fc57cb6cd0

Subscribe to this mod's changes

codex is a skill published in the GitHub repository luckeyfaraday/codex-router (6 stars, last pushed 4mo ago), licensed MIT. It adds 113 tokens to every session and 1,997 once invoked, about $0.0005 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.

Related

codex compared with skills from other repositories

codex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codexluckeyfaraday/codex-routerSkill64mo agoMITA113Claude Code
watchSethGammon/CitadelSkill9433d agoMITA70Claude Code
reviewSethGammon/CitadelSkill9433d agoMITA17Claude Code
live-previewSethGammon/CitadelSkill9433d agoMITA40Claude Code
marshalSethGammon/CitadelSkill9433d agoMITA56Claude Code
wikiSethGammon/CitadelSkill9433d agoMITA56Claude Code
github-project-automationsecondsky/claude-skillsSkill2578d agoMITA45Claude Code