OpenAI の codex-plugin-cc は、Claude Code から Codex を呼び出すためのプラグインです。Claude Code を主な作業場にしながら、コードレビュー、調査、長めのタスク引き継ぎだけ Codex に任せたい場合に使えます。
これは別のエディタではなく、Codex を再実装するものでもありません。ローカルにインストール済みの Codex CLI と Codex app server を使うため、ログイン状態、設定、リポジトリ、ローカル環境は既存の Codex 状態をそのまま使います。
向いているユーザー
- Claude Code を主に使いながら、Codex に独立レビューをさせたい人。
- コミット前に別の Agent に設計やリスクを疑ってほしい人。
- バグ調査、テスト失敗、リファクタリングを Codex にバックグラウンドで任せたい人。
- Claude Code と Codex を同じリポジトリで自然に併用したい人。
- Claude Code の会話を Codex の継続可能な thread に変換したい人。
Codex だけを使っている場合、このプラグインの価値は大きくありません。価値は二つのツール間の移動コストを下げることにあります。
前提条件
- Free を含む ChatGPT サブスクリプション、または OpenAI API key。
- Node.js 18.18 以降。
- ローカルで動く Codex CLI。
このプラグイン経由の利用も Codex usage limits にカウントされます。制限を回避する仕組みではありません。
1
|
npm install -g @openai/codex
|
インストール方法
1
|
/plugin marketplace add openai/codex-plugin-cc
|
1
|
/plugin install codex@openai-codex
|
/codex:setup は Codex が使えるかを確認します。セットアップ後は /codex:* コマンドと codex:codex-rescue subagent が見えるはずです。
1
2
3
|
/codex:review --background
/codex:status
/codex:result
|
主なコマンド
/codex:review
現在の変更を Codex にレビューさせます。読み取り専用で、コードは変更しません。
1
2
3
|
/codex:review
/codex:review --base main
/codex:review --background
|
大きな差分では --background が便利です。進行状況は /codex:status、結果は /codex:result で確認します。
/codex:adversarial-review
実装方針、設計判断、隠れた前提を疑うためのレビューです。
1
2
3
|
/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
|
キャッシュ、リトライ、権限、データ削除、移行のようなリスクの高い変更に向いています。
/codex:rescue
codex:codex-rescue subagent にタスクを渡します。デバッグ、テスト修正、前回タスクの継続、軽いモデルでの再試行に使えます。
1
2
3
4
5
6
|
/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
|
1
|
Ask Codex to redesign the database connection to be more resilient.
|
spark は gpt-5.3-codex-spark に対応します。複雑なタスクでは --background を付けるのが無難です。
v1.0.5 の重要な機能で、Claude Code の現在セッションを Codex thread に変換し、codex resume <session-id> を出力します。
1
2
|
/codex:transfer
/codex:transfer --source ~/.claude/projects/-Users-me-repo/<session-id>.jsonl
|
制約は、source が ~/.claude/projects 配下にあること、Codex の external-agent session importer に依存すること、古い Codex ではアップグレードが必要なことです。
/codex:status、/codex:result、/codex:cancel
1
2
|
/codex:status
/codex:status task-abc123
|
1
2
|
/codex:result
/codex:result task-abc123
|
1
2
|
/codex:cancel
/codex:cancel task-abc123
|
結果に Codex session ID が含まれていれば、codex resume <session-id> で継続できます。
任意の review gate
1
2
|
/codex:setup --enable-review-gate
/codex:setup --disable-review-gate
|
有効化すると Claude Code の Stop hook で Codex review が走ります。ただし Claude と Codex の長いループになり、usage limits を消費しやすいので、常時オンより重要タスクでの一時利用が向いています。
設定の継承
ローカルの codex binary を使うため、Codex の設定を継承します。
1
2
|
model = "gpt-5.4-mini"
model_reasoning_effort = "high"
|
主な設定元は ~/.codex/config.toml と .codex/config.toml です。プロジェクト設定は Codex が trust した後に読み込まれます。
よくあるワークフロー
コミット前レビュー
1
2
3
|
/codex:review --background
/codex:status
/codex:result
|
設計を疑う
1
|
/codex:adversarial-review --background look for auth bypass and rollback risks
|
問題を Codex に任せる
1
|
/codex:rescue --background investigate why the build is failing in CI
|
Claude Code から Codex へ移す
使い方の提案
最初は「第二のレビュアー」と「バックグラウンド救援」として使うのが安定します。Claude Code を主作業場にし、Codex を独立レビュー、調査、必要なときの文脈引き継ぎに使う、という役割分担が分かりやすいです。