惊:OpenAI 官方开源 Codex 插件,Claude Code 用户直接爽用

<h1>惊:OpenAI 官方开源 Codex 插件,Claude Code 用户直接爽用</h1>
<p>OpenAI 官方刚开源了 <strong>Codex Plugin CC</strong>,现在 Claude Code 用户可以直接在工作流中调用 Codex,用 AI 自动审查和修复代码。</p>
<h2>核心功能一览</h2>
<table>
<thead>
<tr>
<th>命令</th>
<th>用途</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>/codex:review</code></td>
<td>一键审查代码质量</td>
</tr>
<tr>
<td><code>/codex:adversarial-review</code></td>
<td>深度质疑设计和风险</td>
</tr>
<tr>
<td><code>/codex:rescue</code></td>
<td>委托 Codex 调查 bug、修复代码</td>
</tr>
<tr>
<td><code>/codex:status</code> / <code>/codex:result</code></td>
<td>查看任务状态和结果</td>
</tr>
<tr>
<td><code>/codex:cancel</code></td>
<td>取消后台任务</td>
</tr>
</tbody>
</table>
<h2>三分钟上手</h2>
<p><strong>安装:</strong></p>
<pre class="custom"><code class="hljs">/plugin marketplace add openai/codex-plugin-cc
/plugin install codex@openai-codex
/reload-plugins
/codex:setup
</code></pre>
<p><strong>立即体验:</strong></p>
<pre class="custom"><code class="hljs"><span class="hljs-comment"># 审查当前代码</span>
/codex:review --background

<span class="hljs-comment"># 检查进度</span>
/codex:status

<span class="hljs-comment"># 看结果</span>
/codex:result
</code></pre>
<h2>真实场景</h2>
<p><strong>快速代码审查:</strong></p>
<pre class="custom"><code class="hljs">/codex:review --base main
</code></pre>
<p><strong>让 Codex 修 bug:</strong></p>
<pre class="custom"><code class="hljs">/codex:rescue investigate why the tests are failing
/codex:rescue fix the failing <span class="hljs-built_in">test</span> with minimal patch
</code></pre>
<p><strong>深度风险评估:</strong></p>
<pre class="custom"><code class="hljs">/codex:adversarial-review --background look <span class="hljs-keyword">for</span> race conditions
</code></pre>
<h2>关键参数</h2>
<ul>
<li><code>--background</code> - 后台运行(推荐)</li>
<li><code>--base main</code> - 与主分支比较</li>
<li><code>--model gpt-5.4-mini</code> - 指定模型</li>
<li><code>--effort medium</code> - 处理级别(none / minimal / low / medium / high / xhigh)</li>
<li><code>--resume</code> - 继续上一个任务</li>
</ul>
<h2>为啥这玩意儿香</h2>
<p>✅ <strong>官方出品</strong> - OpenAI 亲自维护

✅ <strong>无缝集成</strong> - 直接在 Claude Code 里用,不用切换应用

✅ <strong>全功能开放</strong> - 审查、修复、深度分析一条龙

✅ <strong>后台运行</strong> - 长任务不卡工作流

✅ <strong>配置灵活</strong> - 自选模型和处理级别</p>
<h2>前置要求</h2>
<ul>
<li>ChatGPT 订阅(含免费版)或 OpenAI API 密钥</li>
<li>Node.js 18.18+</li>
</ul>



<p><strong>现在就试试吧,一条命令开启 AI 代码审查新时代!</strong></p>

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容