openai/codex-plugin-cc
JavaScript
Captured source
source ↗openai/codex-plugin-cc
Description: Use Codex from Claude Code to review code or delegate tasks.
Language: JavaScript
License: Apache-2.0
Stars: 20599
Forks: 1246
Open issues: 225
Created: 2026-03-30T15:29:52Z
Pushed: 2026-04-18T20:42:15Z
Default branch: main
Fork: no
Archived: no
README:
Codex plugin for Claude Code
Use Codex from inside Claude Code for code reviews or to delegate tasks to Codex.
This plugin is for Claude Code users who want an easy way to start using Codex from the workflow they already have.
What You Get
/codex:reviewfor a normal read-only Codex review/codex:adversarial-reviewfor a steerable challenge review/codex:rescue,/codex:status,/codex:result, and/codex:cancelto delegate work and manage background jobs
Requirements
- ChatGPT subscription (incl. Free) or OpenAI API key.
- Usage will contribute to your Codex usage limits. Learn more.
- Node.js 18.18 or later
Install
Add the marketplace in Claude Code:
/plugin marketplace add openai/codex-plugin-cc
Install the plugin:
/plugin install codex@openai-codex
Reload plugins:
/reload-plugins
Then run:
/codex:setup
/codex:setup will tell you whether Codex is ready. If Codex is missing and npm is available, it can offer to install Codex for you.
If you prefer to install Codex yourself, use:
npm install -g @openai/codex
If Codex is installed but not logged in yet, run:
!codex login
After install, you should see:
- the slash commands listed below
- the
codex:codex-rescuesubagent in/agents
One simple first run is:
/codex:review --background /codex:status /codex:result
Usage
/codex:review
Runs a normal Codex review on your current work. It gives you the same quality of code review as running /review inside Codex directly.
> [!NOTE] > Code review especially for multi-file changes might take a while. It's generally recommended to run it in the background.
Use it when you want:
- a review of your current uncommitted changes
- a review of your branch compared to a base branch like
main
Use --base for branch review. It also supports --wait and --background. It is not steerable and does not take custom focus text. Use [/codex:adversarial-review](#codexadversarial-review) when you want to challenge a specific decision or risk area.
Examples:
/codex:review /codex:review --base main /codex:review --background
This command is read-only and will not perform any changes. When run in the background you can use [/codex:status](#codexstatus) to check on the progress and [/codex:cancel](#codexcancel) to cancel the ongoing task.
/codex:adversarial-review
Runs a steerable review that questions the chosen implementation and design.
It can be used to pressure-test assumptions, tradeoffs, failure modes, and whether a different approach would have been safer or simpler.
It uses the same review target selection as /codex:review, including --base for branch review. It also supports --wait and --background. Unlike /codex:review, it can take extra focus text after the flags.
Use it when you want:
- a review before shipping that challenges the direction, not just the code details
- review focused on design choices, tradeoffs, hidden assumptions, and alternative approaches
- pressure-testing around specific risk areas like auth, data loss, rollback, race conditions, or reliability
Examples:
/codex:adversarial-review /codex:adversarial-review --base main challenge whether this was the right caching and retry design /codex:adversarial-review --background look for race conditions and question the chosen approach
This command is read-only. It does not fix code.
/codex:rescue
Hands a task to Codex through the codex:codex-rescue subagent.
Use it when you want Codex to:
- investigate a bug
- try a fix
- continue a previous Codex task
- take a faster or cheaper pass with a smaller model
> [!NOTE] > Depending on the task and the model you choose these tasks might take a long time and it's generally recommended to force the task to be in the background or move the agent to the background.
It supports --background, --wait, --resume, and --fresh. If you omit --resume and --fresh, the plugin can offer to continue the latest rescue thread for this repo.
Examples:
/codex:rescue investigate why the tests started failing /codex:rescue fix the failing test with the smallest safe patch /codex:rescue --resume apply the top fix from the last run /codex:rescue --model gpt-5.4-mini --effort medium investigate the flaky integration test /codex:rescue --model spark fix the issue quickly /codex:rescue --background investigate the regression
You can also just ask for a task to be delegated to Codex:
Ask Codex to redesign the database connection to be more resilient.
Notes:
- if you do not pass
--modelor--effort, Codex chooses its own defaults. - if you say
spark, the plugin maps that togpt-5.3-codex-spark - follow-up rescue requests can continue the latest Codex task in the repo
/codex:status
Shows running and recent Codex jobs for the current repository.
Examples:
/codex:status /codex:status task-abc123
Use it to:
- check progress on background work
- see the latest completed job
- confirm whether a task is still running
/codex:result
Shows the final stored Codex output for a finished job. When available, it also includes the Codex session ID so you can reopen that run directly in Codex with codex resume .
Examples:
/codex:result /codex:result task-abc123
/codex:cancel
Cancels an active background Codex job.
Examples:
/codex:cancel /codex:cancel task-abc123
/codex:setup
Checks whether Codex is installed and authenticated. If Codex is missing and npm is available, it can offer to install Codex for you.
You can also use /codex:setup to manage the optional review gate.
Enabling review gate
/codex:setup --enable-review-gate /codex:setup --disable-review-gate
When the review gate is enabled, the plugin uses a Stop hook to run a targeted Codex review based on Claude's response. If that review finds issues, the stop is blocked so Claude can address them first.
> [!WARNING] > The review gate can…
Excerpt shown — open the source for the full document.
Notability
notability 7.0/10High stars, notable repo from OpenAI, but not a frontier model release