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.
[!IMPORTANT]
This is an independent fork of openai/codex-plugin-cc,
maintained by aksOps. It is not maintained, sponsored, or endorsed by OpenAI.
The fork preserves upstream authentication and runtime behavior while
extending Codex delegation and developing safer write-execution features. The
feature and release boundary is defined in Fork Scope.
What You Get
/codex:review for a normal read-only Codex review
/codex:adversarial-review for a steerable challenge review
/codex:implement and /codex:test to hand write-capable work to Codex, which runs in an isolated worktree and returns a reviewable diff
/codex:explore and /codex:verify for read-only investigation and judgment passes
/codex:diff and /codex:land to review that diff and apply it to your branch
/codex:rescue, /codex:transfer, /codex:status, /codex:result, and /codex:cancel to delegate work, hand off sessions, 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 aksOps/codex-plugin-cc
Install the plugin:
/plugin install codex@aksops-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-rescue subagent 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 <ref> for branch review. It also supports --wait and --background. It is not steerable and does not take custom focus text. Use /codex:adversarial-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 to check on the progress and /codex:cancel 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 <ref> 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.