ccg
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCCG - Claude-Codex-Gemini Tri-Model Orchestration
CCG - Claude-Codex-Gemini 三模型编排
CCG routes through and (CLI advisor flow), then Claude synthesizes both outputs into one answer.
ask-codexask-geminiUse this when you want parallel external perspectives without launching tmux team workers.
CCG 会路由调用 和 (CLI 顾问流),之后由 Claude 将两者的输出合成为一个统一答案。
ask-codexask-gemini当你需要并行获取外部视角,又不想启动 tmux 团队工作器时可以使用该工具。
When to Use
适用场景
- Backend/analysis + frontend/UI work in one request
- Code review from multiple perspectives (architecture + design/UX)
- Cross-validation where Codex and Gemini may disagree
- Fast advisor-style parallel input without team runtime orchestration
- 单次请求同时处理后端/分析 + 前端/UI 工作
- 多视角代码评审(架构 + 设计/UX)
- Codex 和 Gemini 可能存在意见分歧的交叉验证场景
- 无需团队运行时编排即可快速获取顾问式并行输入
Requirements
依赖要求
- Codex CLI: (or
npm install -g @openai/codex)@openai/codex - Gemini CLI:
npm install -g @google/gemini-cli - command available
omc ask - If either CLI is unavailable, continue with whichever provider is available and note the limitation
- Codex CLI: (或
npm install -g @openai/codex)@openai/codex - Gemini CLI:
npm install -g @google/gemini-cli - 可使用 命令
omc ask - 若任意一款 CLI 不可用,继续使用可用的服务商工具并注明限制
How It Works
工作原理
text
1. Claude decomposes the request into two advisor prompts:
- Codex prompt (analysis/architecture/backend)
- Gemini prompt (UX/design/docs/alternatives)
2. Claude runs:
- /oh-my-claudecode:ask-codex "<codex prompt>"
- /oh-my-claudecode:ask-gemini "<gemini prompt>"
(equivalent CLI path: `omc ask codex ...` + `omc ask gemini ...`)
3. Artifacts are written under `.omc/artifacts/ask/`
4. Claude synthesizes both outputs into one final responsetext
1. Claude decomposes the request into two advisor prompts:
- Codex prompt (analysis/architecture/backend)
- Gemini prompt (UX/design/docs/alternatives)
2. Claude runs:
- /oh-my-claudecode:ask-codex "<codex prompt>"
- /oh-my-claudecode:ask-gemini "<gemini prompt>"
(equivalent CLI path: `omc ask codex ...` + `omc ask gemini ...`)
3. Artifacts are written under `.omc/artifacts/ask/`
4. Claude synthesizes both outputs into one final responseExecution Protocol
执行协议
When invoked, Claude MUST follow this workflow:
调用时,Claude 必须遵循以下工作流:
1. Decompose Request
1. 拆分请求
Split the user request into:
- Codex prompt: architecture, correctness, backend, risks, test strategy
- Gemini prompt: UX/content clarity, alternatives, edge-case usability, docs polish
- Synthesis plan: how to reconcile conflicts
将用户请求拆分为:
- Codex 提示词:架构、正确性、后端、风险、测试策略
- Gemini 提示词:UX/内容清晰度、备选方案、边缘场景可用性、文档打磨
- 合成方案:如何调和意见冲突
2. Invoke ask skills
2. 调用 ask 技能
Use skill routing first:
bash
/oh-my-claudecode:ask-codex <codex prompt>
/oh-my-claudecode:ask-gemini <gemini prompt>Equivalent direct CLI:
bash
omc ask codex "<codex prompt>"
omc ask gemini "<gemini prompt>"优先使用技能路由:
bash
/oh-my-claudecode:ask-codex <codex prompt>
/oh-my-claudecode:ask-gemini <gemini prompt>等价的直接 CLI 命令:
bash
omc ask codex "<codex prompt>"
omc ask gemini "<gemini prompt>"3. Collect artifacts
3. 收集产物
Read latest ask artifacts from:
text
.omc/artifacts/ask/codex-*.md
.omc/artifacts/ask/gemini-*.md从以下路径读取最新的 ask 产物:
text
.omc/artifacts/ask/codex-*.md
.omc/artifacts/ask/gemini-*.md4. Synthesize
4. 合成结果
Return one unified answer with:
- Agreed recommendations
- Conflicting recommendations (explicitly called out)
- Chosen final direction + rationale
- Action checklist
返回统一的答案,包含以下内容:
- 双方一致的建议
- 存在冲突的建议(明确标注)
- 最终选定的方向 + 理由
- 行动检查清单
Fallbacks
降级方案
If one provider is unavailable:
- Continue with available provider + Claude synthesis
- Clearly note missing perspective and risk
If both unavailable:
- Fall back to Claude-only answer and state CCG external advisors were unavailable
如果某一个服务商不可用:
- 继续使用可用的服务商工具 + Claude 合成
- 明确说明缺失的视角和相关风险
如果两者都不可用:
- 降级为仅使用 Claude 生成答案,并说明 CCG 外部顾问不可用
Invocation
调用方式
bash
/oh-my-claudecode:ccg <task description>Example:
bash
/oh-my-claudecode:ccg Review this PR - architecture/security via Codex and UX/readability via Geminibash
/oh-my-claudecode:ccg <task description>示例:
bash
/oh-my-claudecode:ccg Review this PR - architecture/security via Codex and UX/readability via Gemini