openai / codex-plugin-cc
openai / codex-plugin-cc
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.
Claude Code 的 Codex 插件 在 Claude Code 内部使用 Codex 进行代码审查或将任务委派给 Codex。此插件专为希望在现有工作流中轻松使用 Codex 的 Claude Code 用户而设计。
What You Get
/codex:reviewfor a normal read-only Codex review/codex:adversarial-reviewfor a steerable challenge review/codex:rescue,/codex:transfer,/codex:status,/codex:result, and/codex:cancelto delegate work, hand off sessions, and manage background jobs
功能概览
/codex:review:进行常规的只读 Codex 代码审查。/codex:adversarial-review:进行可引导的挑战性审查。/codex:rescue、/codex:transfer、/codex:status、/codex:result和/codex:cancel:用于委派工作、移交会话以及管理后台任务。
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
要求
- ChatGPT 订阅(含免费版)或 OpenAI API Key。使用量将计入您的 Codex 使用限额。了解更多。
- Node.js 18.18 或更高版本。
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
安装
在 Claude Code 中添加市场:
/plugin marketplace add openai/codex-plugin-cc
安装插件:
/plugin install codex@openai-codex
重新加载插件:
/reload-plugins
然后运行:
/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 and the codex:codex-rescue subagent in /agents.
/codex:setup 将告知您 Codex 是否就绪。如果缺少 Codex 且 npm 可用,它会提示为您安装。如果您更倾向于自行安装,请使用:npm install -g @openai/codex。如果已安装但尚未登录,请运行:!codex login。安装完成后,您应该能看到:下方列出的斜杠命令以及 /agents 中的 codex:codex-rescue 子代理。
Usage
One simple first run is:
/codex:review --background
/codex:status
/codex:result
使用方法
一个简单的首次运行示例:
/codex:review --background
/codex:status
/codex:result
/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.
/codex:review
对您当前的工作运行常规 Codex 审查。它提供的代码审查质量与直接在 Codex 中运行 /review 相同。注意:代码审查(尤其是针对多文件更改)可能需要一些时间。通常建议在后台运行。
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--waitand--background. It is not steerable and does not take custom focus text.
在以下情况使用:
- 审查您当前未提交的更改。
- 审查您的分支与主分支(如 main)的对比。
分支审查请使用
--base <ref>。它还支持--wait和--background。此命令不可引导,也不接受自定义焦点文本。
Use /codex:adversarial-review when you want to challenge a specific decision or risk area. 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。此命令为只读,不会执行任何更改。在后台运行时,您可以使用 /codex:status 查看进度,使用 /codex:cancel 取消正在进行的任务。
/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. Unlike /codex:review, it can take extra focus text after the flags.
/codex:adversarial-review
运行可引导的审查,对所选的实现和设计提出质疑。它可用于压力测试假设、权衡、故障模式,以及探讨是否有更安全或更简单的替代方案。与 /codex:review 不同,它可以在标志后接受额外的焦点文本。
/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, or take a faster/cheaper pass with a smaller model.
/codex:rescue
通过 codex:codex-rescue 子代理将任务移交给 Codex。当您希望 Codex 调查错误、尝试修复、继续之前的 Codex 任务,或使用更小的模型进行更快/更经济的审查时,请使用此命令。
/codex:transfer
Creates a persistent Codex thread from the current Claude Code session and prints a codex resume <session-id> command. Use it when you started a debugging or implementation conversation in Claude Code and want to continue that same context directly in Codex.
/codex:transfer
从当前的 Claude Code 会话创建一个持久的 Codex 线程,并打印出 codex resume <session-id> 命令。当您在 Claude Code 中开始了调试或实现对话,并希望直接在 Codex 中继续该上下文时,请使用此命令。
/codex:status Shows running and recent Codex jobs for the current repository.
/codex:status 显示当前仓库中正在运行和最近的 Codex 任务。
/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 <session-id>.
/codex:result
显示已完成任务的最终存储 Codex 输出。如果可用,它还会包含 Codex 会话 ID,以便您可以使用 codex resume <session-id> 直接在 Codex 中重新打开该运行。
/codex:cancel Cancels an active background Codex job.
/codex:cancel 取消正在运行的后台 Codex 任务。