/codex:rescue 接手具体的编码任务,写代码、修 bug、跑测试/codex:review 给 Claude 的代码做 code review,充当第二双眼睛/plugin marketplace add openai/codex-plugin-cc
/plugin install codex@openai-codex
/reload-plugins
/codex:setup/codex:setup 会自动检测 Codex 是否安装、是否已认证。如果提示未登录,运行 !codex login 完成认证。/codex 即可看到新增的斜杠命令。# 审查未提交的改动
/codex:review
# 审查当前分支和 main 的差异
/codex:review --base main
# 后台运行,不阻塞当前对话
/codex:review --background
# 对抗性审查,指定关注方 向
/codex:adversarial-review --background 检查是否有竞态条件,质疑缓存策略的选择# 让 Codex 去查 bug
/codex:rescue investigate why the tests started failing
# 让 Codex 去修 bug
/codex:rescue fix the failing test with the smallest safe patch
# 让 Codex 去实现一个功能
/codex:rescue 实现用户注册的表单验证逻辑
# 后台执行,适合耗时任务
/codex:rescue --background 重构数据库连接池
# 指定更便宜的模型
/codex:rescue --model gpt-5.4-mini 写一组单元测试覆盖 utils.ts
/codex:rescue --model spark 快速修复这个 lint 错误
# 继续上次的任务
/codex:rescue --resume 把上次的修复方案应用上去💡 省钱技巧: --model gpt-5.4-mini或--model spark可以用更便宜更快的模型执行简单任务。
/codex:status
/codex:result
/codex:cancel你提需求 → Claude 分析拆解 → /codex:rescue 逐个执行 → /codex:review 审查 → 提交/codex:rescue 把具体编码任务交给 Codex:Claude 规划好了"要做 A、B、C 三件事",你就用 rescue 一个个交给 Codex 去写/codex:review --background,让 Codex 做独立 code reviewClaude 规划 → /codex:rescue 执行 → /codex:review → 修复 → /codex:adversarial-review → 再修复 → 提交/codex:rescue 用最小改动修复这个问题--background,不阻塞当前对话:/codex:rescue --background 实现分页功能
/codex:status
/codex:result/codex:result会返回一个 session ID,你可以用codex resume <session-id>在 Codex 里继续这个任务。
/codex:setup --enable-review-gate
/codex:setup --disable-review-gate⚠️ 注意:审查门禁会显著增加 Token 消耗,可能造成 Claude 和 Codex 之间的长循环 。建议仅在关键项目中使用,日常开发手动跑 /codex:review即可。
~/.codex/config.toml.codex/config.tomlmodel = "gpt-5.4-mini"
model_reasoning_effort = "high"--model 和 --effort 临时指定:/codex:rescue --model spark --effort medium 快速修复 lint 错误--model spark 适合修 lint、写样板代码这种不需要深度推理的活/codex:rescue --resume 可以继续上一次的 Codex 任务,不用从头开始priority: low/codex 命令?/reload-plugins 重新加载插件。/codex:review 报认证错误?!codex login 重新登录。/codex:rescue 和直接让 Claude 写代码有什么区别?