Codex Plugin for Claude Code 正式驗證:多模型互審變成可安裝的開發流程
數位時代整理 OpenAI 推出的 Codex plugin for Claude Code。這題 Allen KB 之前已經在 2026-04-01 收過一篇,但當時還特別標註「需留意是否為愚人節玩笑、部分指令尚待公開文件確認」。這次補讀數位時代與官方 GitHub openai/codex-plugin-cc 後,可以把它從「待驗證消息」更新成「已可驗證的正式工具」。
官方 repo:openai/codex-plugin-cc
查 GitHub API 時的狀態:
- Repo:openai/codex-plugin-cc
- 描述:Use Codex from Claude Code to review code or delegate tasks.
- 授權:Apache-2.0
- 建立時間:2026-03-30
- stars:約 17,168
- forks:約 978
官方 README 的定位很明確:
Use Codex from inside Claude Code for code reviews or to delegate tasks to Codex.
也就是說,這不是另一個獨立 IDE,也不是要你從 Claude Code 轉到 Codex,而是把 Codex 放進 Claude Code 的工作流裡,當作第二審查者或任務接手者。
核心指令有三組:
- /codex:review
標準唯讀 code review。適合日常 second-pass review,例如目前 uncommitted changes,或某個 branch 相對 main 的差異。
常用方式:
/codex:review
/codex:review --base main
/codex:review --background
官方 README 特別提醒,多檔案 review 可能花時間,建議 background 跑。背景任務可用:
/codex:status
/codex:result
/codex:cancel
- /codex:adversarial-review
這是我認為最有價值的指令。它不是只看語法、格式、明顯 bug,而是「挑戰實作方向與設計假設」。適合用在高風險變更:
- auth / permission
- data loss
- rollback
- race condition
- caching / retry design
- database migration
- infrastructure scripts
- large refactor
範例:
/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
這對 AI coding 很重要,因為 Claude 寫出來的 code 讓 Claude 自己 review,容易共享同一組錯誤假設。換一個模型做 adversarial review,價值在於打破同溫層。
- /codex:rescue
把任務交給 Codex 的 subagent,例如調查 bug、嘗試修 fix、接續之前 Codex 任務、或用更快/更便宜模型做一輪。
範例:
/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 --background investigate the regression
這裡要注意:rescue 已經不只是 review,而是任務委派。它可能實際調查與修補,因此流程上要搭配 git diff、測試、人工或第二 agent review。
安裝方式
官方 README 與數位時代整理一致:
/plugin marketplace add openai/codex-plugin-cc
/plugin install codex@openai-codex
/reload-plugins
/codex:setup
若尚未安裝 Codex CLI:
npm install -g @openai/codex
登入:
!codex login
需求:
- ChatGPT subscription,包括 Free,或 OpenAI API key。
- Node.js 18.18 或更新版本。
- 使用次數會計入 Codex usage limits。
官方 README 也提到,安裝後應該能看到 slash commands,以及 /agents 裡的 codex:codex-rescue subagent。
設計上,它不是另一套 runtime。Codex plugin 透過本機 Codex CLI 與 Codex app server 委派工作,沿用既有本機驗證、環境設定與 MCP 設定。這點很重要,因為它不要求你重新建立一套開發環境。
Review gate
外掛支援啟用 review gate:
/codex:setup --enable-review-gate
啟用後,Claude Code 在 Codex review 完成前不會退出。這可以強迫任務經過第二道審查,但要小心:如果 Claude 與 Codex 進入循環呼叫,可能快速消耗額度。數位時代也提醒這點。
設定模型與推理強度
如果想固定模型或 reasoning effort,可在專案或使用者家目錄建立:
.codex/config.toml
內容可類似:
model = "gpt-5.4-mini"
model_reasoning_effort = "xhigh"
reasoning effort 越高,審查可能越仔細,但消耗也更高。
對 BigIntTech / 工多多 / Hermes 的建議用法
- 把 /codex:review 當成一般 MR / PR 的第二道關卡
Claude / Forge 寫完 code 後,用 Codex 做唯讀 review。特別是多檔案變更,建議 background 跑,不要卡住主工作流。
- 高風險變更固定跑 /codex:adversarial-review
尤其是:
- EF migration
- DB schema / data migration
- 權限 / auth
- financial ledger / payment
- deployment scripts
- caching / concurrency
- security-sensitive code
這些不是單純 lint 或 test 能抓完的,最需要另一個模型挑戰隱性假設。
- /codex:rescue 用在卡關,不要直接信任結果
Codex rescue 適合換腦袋調查,但輸出仍要跑測試與 diff review。它是「第二工程師」,不是自動 merge 許可證。
- 不要無腦打開 review gate
review gate 很誘人,但對高頻任務可能燒額度,也可能造成 agent 互相等待或循環。建議只在特定 repo / 高風險工作流啟用。
這篇的真正意義:多模型互審正在產品化
以前我們講 Claude + Codex 互補,通常是手動切工具:在 Claude Code 做開發,再把 diff 丟給 Codex 或 ChatGPT review。Codex plugin for Claude Code 把這件事內建進 Claude 的工作流,讓多模型互審從「個人技巧」變成「可重複的開發流程」。
這跟我們最近整理的幾篇 AI coding 文章可以串起來看:
- Claude Code 品質下降事件提醒:agent 本身會受 product layer / context / reasoning effort 影響。
- Stanford CS146S 提醒:現代工程師要學會當 AI 監工。
- Codex plugin 則提供一個具體做法:讓另一個模型當 adversarial reviewer。
我的判斷:
這個外掛最有價值的不是 /codex:rescue,而是 /codex:adversarial-review。AI coding 的大問題不是「模型不會寫」,而是它會沿著自己的錯誤假設一路寫得很完整。讓另一個模型專門唱反調,會成為高風險工程的標準流程。
對 Allen 來說,這篇也可以把 KB 先前 2026-04-01 那篇「待驗證」狀態補正:現在 openai/codex-plugin-cc 已有官方 README、Apache-2.0 repo、安裝指令與完整指令文件,不再只是傳聞。
參考來源:
- 數位時代:OpenAI替Claude Code出外掛!讓Codex進駐敵營,專抓Claude的bug
- GitHub:openai/codex-plugin-cc:https://github.com/openai/codex-plugin-cc
- Vaibhav (VB) Srivastav X 貼文
原始來源:https://www.bnext.com.tw/article/90488/openai-codex-plugin-claude-code