Codex Plugin for Claude Code
Skill by ara.so — Daily 2026 Skills collection.
A Claude Code plugin that lets you run OpenAI Codex code reviews and delegate background tasks to Codex directly from your Claude Code session. Use it for read-only code reviews, adversarial design challenges, and handing off investigative or fix tasks to Codex as a subagent.
What It Does
/codex:review— Standard read-only Codex code review of uncommitted changes or a branch diff/codex:adversarial-review— Steerable review that challenges design decisions, tradeoffs, and assumptions/codex:rescue— Delegate a task (bug investigation, fix, etc.) to Codex as a background subagent/codex:status— Check progress of background Codex jobs/codex:result— Retrieve output from a finished job (includes Codex session ID forcodex resume)/codex:cancel— Cancel an active background job/codex:setup— Verify Codex is installed and authenticated; optionally enable/disable the review gate
Requirements
- Node.js 18.18 or later
- A ChatGPT subscription (Free tier works) or an OpenAI API key
- Claude Code with plugin support
Installation
1. Add the marketplace and install the plugin
2. Verify setup
If Codex CLI is missing, /codex:setup can install it for you via npm, or install manually:
3. Authenticate with Codex
Supports ChatGPT account login or API key. Your existing Codex CLI authentication is reused automatically if already logged in.
Key Commands
/codex:review
Runs a standard read-only Codex review on your current work.
/codex:adversarial-review
Challenges implementation decisions, tradeoffs, and hidden assumptions. Accepts optional free-text focus after flags.
/codex:rescue
Hands off a task to Codex via the codex:codex-rescue subagent.
You can also trigger rescue via natural language to Claude:
/codex:status
/codex:result
Output includes a Codex session ID. Resume that session directly in Codex:
/codex:cancel
/codex:setup — Review Gate
Warning: The review gate runs a Codex review on every Claude response and blocks the stop if issues are found. This can trigger long Claude/Codex loops and drain usage limits. Only enable it when actively monitoring the session.
Configuration
The plugin uses the same config.toml as the Codex CLI. Configuration is layered:
Example: Set default model and effort for a project
Example: Point to a custom OpenAI-compatible endpoint
API keys and authentication are managed via codex login — do not hardcode keys in config files. The CLI reads from the authenticated session or from the OPENAI_API_KEY environment variable.
Common Patterns
Review before shipping
Start a long-running review, check back later
Delegate a bug investigation and resume in Codex
Iterative rescue workflow
Use Claude to delegate naturally
Claude will invoke the codex:codex-rescue subagent automatically.
Troubleshooting
/codex:setup says Codex is not installed
Codex is installed but not authenticated
Supports ChatGPT account or API key. If using an API key directly:
Background job seems stuck
Plugin commands not appearing after install
Project-level config not being picked up
Project config in .codex/config.toml only loads when the project is trusted by Codex. Run codex directly in the project directory to trust it, or check the Codex advanced config docs.
Review gate creating runaway loops
Disable it immediately:
How It Works Internally
- The plugin wraps the local
codexbinary and the Codex app server - All jobs run in your local environment against your local repository checkout
- Authentication, config, and model settings come from your existing Codex CLI setup
- Background jobs are tracked per-repository and can be resumed in Codex directly via session IDs
- The
codex:codex-rescuesubagent is registered in/agentsand can be invoked by Claude automatically when you ask it to delegate work to Codex


