ccg-workflow 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: '多模型调试:Codex 后端诊断 + Gemini 前端诊断,交叉验证定位问题'
2
+ description: '多模型调试:{{BACKEND_PRIMARY}} 后端诊断 + {{FRONTEND_PRIMARY}} 前端诊断,交叉验证定位问题'
3
3
  ---
4
4
 
5
5
  # Debug - 多模型调试
@@ -15,8 +15,8 @@ description: '多模型调试:Codex 后端诊断 + Gemini 前端诊断,交
15
15
  ## 你的角色
16
16
 
17
17
  你是**调试协调者**,编排多模型诊断流程:
18
- - **Codex** – 后端诊断(**后端问题权威**)
19
- - **Gemini** – 前端诊断(**前端问题权威**)
18
+ - **{{BACKEND_PRIMARY}}** – 后端诊断(**后端问题权威**)
19
+ - **{{FRONTEND_PRIMARY}}** – 前端诊断(**前端问题权威**)
20
20
  - **Claude (自己)** – 综合诊断、执行修复
21
21
 
22
22
  ---
@@ -30,9 +30,9 @@ description: '多模型调试:Codex 后端诊断 + Gemini 前端诊断,交
30
30
 
31
31
  **调用示例**:
32
32
 
33
- **Codex 后端诊断**:
33
+ **{{BACKEND_PRIMARY}} 后端诊断**:
34
34
  ```bash
35
- ~/.claude/bin/codeagent-wrapper --progress --backend codex - "$(pwd)" <<'EOF'
35
+ ~/.claude/bin/codeagent-wrapper --progress --backend {{BACKEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- "$(pwd)" <<'EOF'
36
36
  ROLE_FILE: ~/.claude/.ccg/prompts/codex/debugger.md
37
37
  <TASK>
38
38
  需求:<增强后的需求>
@@ -42,9 +42,9 @@ OUTPUT: 诊断假设(按可能性排序)
42
42
  EOF
43
43
  ```
44
44
 
45
- **Gemini 前端诊断**:
45
+ **{{FRONTEND_PRIMARY}} 前端诊断**:
46
46
  ```bash
47
- ~/.claude/bin/codeagent-wrapper --progress --backend gemini --gemini-model gemini-3.1-pro-preview - "$(pwd)" <<'EOF'
47
+ ~/.claude/bin/codeagent-wrapper --progress --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- "$(pwd)" <<'EOF'
48
48
  ROLE_FILE: ~/.claude/.ccg/prompts/gemini/debugger.md
49
49
  <TASK>
50
50
  需求:<增强后的需求>
@@ -97,11 +97,11 @@ EOF
97
97
 
98
98
  **⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
99
99
 
100
- 1. **Codex 后端诊断**:`Bash({ command: "...--backend codex...", run_in_background: true })`
100
+ 1. **{{BACKEND_PRIMARY}} 后端诊断**:`Bash({ command: "...--backend {{BACKEND_PRIMARY}}...", run_in_background: true })`
101
101
  - ROLE_FILE: `~/.claude/.ccg/prompts/codex/debugger.md`
102
102
  - OUTPUT:诊断假设(按可能性排序),每个假设包含原因、证据、修复建议
103
103
 
104
- 2. **Gemini 前端诊断**:`Bash({ command: "...--backend gemini...", run_in_background: true })`
104
+ 2. **{{FRONTEND_PRIMARY}} 前端诊断**:`Bash({ command: "...--backend {{FRONTEND_PRIMARY}}...", run_in_background: true })`
105
105
  - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/debugger.md`
106
106
  - OUTPUT:诊断假设(按可能性排序),每个假设包含原因、证据、修复建议
107
107
 
@@ -30,7 +30,7 @@ $ARGUMENTS
30
30
  ```
31
31
  # 复用会话调用(推荐)- 原型生成(Implementation Prototype)
32
32
  Bash({
33
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
33
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
34
34
  ROLE_FILE: <角色提示词路径>
35
35
  <TASK>
36
36
  需求:<任务描述>
@@ -45,7 +45,7 @@ EOF",
45
45
 
46
46
  # 新会话调用 - 原型生成(Implementation Prototype)
47
47
  Bash({
48
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
48
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
49
49
  ROLE_FILE: <角色提示词路径>
50
50
  <TASK>
51
51
  需求:<任务描述>
@@ -63,7 +63,7 @@ EOF",
63
63
 
64
64
  ```
65
65
  Bash({
66
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
66
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
67
67
  ROLE_FILE: <角色提示词路径>
68
68
  <TASK>
69
69
  Scope: Audit the final code changes.
@@ -84,9 +84,6 @@ EOF",
84
84
  })
85
85
  ```
86
86
 
87
- **模型参数说明**:
88
- - `{{GEMINI_MODEL_FLAG}}`:当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3.1-pro-preview `(注意末尾空格);使用 codex 时替换为空字符串
89
-
90
87
  **角色提示词**:
91
88
 
92
89
  | 阶段 | Codex | Gemini |
@@ -191,7 +188,7 @@ TaskOutput({ task_id: "<task_id>", block: true, timeout: 600000 })
191
188
  1. 调用 Codex(使用 `~/.claude/.ccg/prompts/codex/architect.md`)
192
189
  2. 输入:计划内容 + 检索到的上下文 + 目标文件
193
190
  3. OUTPUT: `Unified Diff Patch ONLY. Strictly prohibit any actual modifications.`
194
- 4. **Codex 是后端逻辑的权威,利用其逻辑运算与 Debug 能力**
191
+ 4. **{{BACKEND_PRIMARY}} 是后端逻辑的权威,利用其逻辑运算与 Debug 能力**
195
192
  5. 若计划包含 `CODEX_SESSION`:优先 `resume <CODEX_SESSION>`
196
193
 
197
194
  #### Route C: 全栈 → 并行调用
@@ -247,12 +244,12 @@ TaskOutput({ task_id: "<task_id>", block: true, timeout: 600000 })
247
244
 
248
245
  **变更生效后,强制立即并行调用** Codex 和 Gemini 进行 Code Review:
249
246
 
250
- 1. **Codex 审查**(`run_in_background: true`):
247
+ 1. **{{BACKEND_PRIMARY}} 审查**(`run_in_background: true`):
251
248
  - ROLE_FILE: `~/.claude/.ccg/prompts/codex/reviewer.md`
252
249
  - 输入:变更的 Diff + 目标文件
253
250
  - 关注:安全性、性能、错误处理、逻辑正确性
254
251
 
255
- 2. **Gemini 审查**(`run_in_background: true`):
252
+ 2. **{{FRONTEND_PRIMARY}} 审查**(`run_in_background: true`):
256
253
  - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/reviewer.md`
257
254
  - 输入:变更的 Diff + 目标文件
258
255
  - 关注:可访问性、设计一致性、用户体验
@@ -20,7 +20,7 @@ $ARGUMENTS
20
20
  ```
21
21
  # 新会话调用
22
22
  Bash({
23
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
23
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
24
24
  ROLE_FILE: <角色提示词路径>
25
25
  <TASK>
26
26
  需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
@@ -35,7 +35,7 @@ EOF",
35
35
 
36
36
  # 复用会话调用
37
37
  Bash({
38
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
38
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
39
39
  ROLE_FILE: <角色提示词路径>
40
40
  <TASK>
41
41
  需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
@@ -49,9 +49,6 @@ EOF",
49
49
  })
50
50
  ```
51
51
 
52
- **模型参数说明**:
53
- - `{{GEMINI_MODEL_FLAG}}`:当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3.1-pro-preview `(注意末尾空格);使用 codex 时替换为空字符串
54
-
55
52
  **角色提示词**:
56
53
 
57
54
  | 阶段 | Codex | Gemini |
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: '前端专项工作流(研究→构思→计划→执行→优化→评审),Gemini 主导'
2
+ description: '前端专项工作流(研究→构思→计划→执行→优化→评审),{{FRONTEND_PRIMARY}} 主导'
3
3
  ---
4
4
 
5
5
  # Frontend - 前端专项开发
@@ -13,7 +13,7 @@ description: '前端专项工作流(研究→构思→计划→执行→优化
13
13
  ## 上下文
14
14
 
15
15
  - 前端任务:$ARGUMENTS
16
- - Gemini 主导,Codex 辅助参考
16
+ - {{FRONTEND_PRIMARY}} 主导,{{BACKEND_PRIMARY}} 辅助参考
17
17
  - 适用:组件设计、响应式布局、UI 动画、样式优化
18
18
 
19
19
  ## 你的角色
@@ -21,8 +21,8 @@ description: '前端专项工作流(研究→构思→计划→执行→优化
21
21
  你是**前端编排者**,协调多模型完成 UI/UX 任务(研究 → 构思 → 计划 → 执行 → 优化 → 评审),用中文协助用户。
22
22
 
23
23
  **协作模型**:
24
- - **Gemini** – 前端 UI/UX(**前端权威,可信赖**)
25
- - **Codex** – 后端视角(**前端意见仅供参考**)
24
+ - **{{FRONTEND_PRIMARY}}** – 前端 UI/UX(**前端权威,可信赖**)
25
+ - **{{BACKEND_PRIMARY}}** – 后端视角(**前端意见仅供参考**)
26
26
  - **Claude (自己)** – 编排、计划、执行、交付
27
27
 
28
28
  ---
@@ -39,7 +39,7 @@ description: '前端专项工作流(研究→构思→计划→执行→优化
39
39
  ```
40
40
  # 新会话调用
41
41
  Bash({
42
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend gemini --gemini-model gemini-3.1-pro-preview - \"{{WORKDIR}}\" <<'EOF'
42
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
43
43
  ROLE_FILE: <角色提示词路径>
44
44
  <TASK>
45
45
  需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
@@ -54,7 +54,7 @@ EOF",
54
54
 
55
55
  # 复用会话调用
56
56
  Bash({
57
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend gemini --gemini-model gemini-3.1-pro-preview resume <GEMINI_SESSION> - \"{{WORKDIR}}\" <<'EOF'
57
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}resume <GEMINI_SESSION> - \"{{WORKDIR}}\" <<'EOF'
58
58
  ROLE_FILE: <角色提示词路径>
59
59
  <TASK>
60
60
  需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
@@ -105,7 +105,7 @@ EOF",
105
105
 
106
106
  ### 💡 阶段 2:构思
107
107
 
108
- `[模式:构思]` - Gemini 主导分析
108
+ `[模式:构思]` - {{FRONTEND_PRIMARY}} 主导分析
109
109
 
110
110
  **⚠️ 必须调用 Gemini**(参照上方调用规范):
111
111
  - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/analyzer.md`
@@ -119,7 +119,7 @@ EOF",
119
119
 
120
120
  ### 📋 阶段 3:计划
121
121
 
122
- `[模式:计划]` - Gemini 主导规划
122
+ `[模式:计划]` - {{FRONTEND_PRIMARY}} 主导规划
123
123
 
124
124
  **⚠️ 必须调用 Gemini**(使用 `resume <GEMINI_SESSION>` 复用会话):
125
125
  - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/architect.md`
@@ -139,7 +139,7 @@ Claude 综合规划,请求用户批准后存入 `.claude/plan/任务名.md`
139
139
 
140
140
  ### 🚀 阶段 5:优化
141
141
 
142
- `[模式:优化]` - Gemini 主导审查
142
+ `[模式:优化]` - {{FRONTEND_PRIMARY}} 主导审查
143
143
 
144
144
  **⚠️ 必须调用 Gemini**(参照上方调用规范):
145
145
  - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/reviewer.md`
@@ -161,7 +161,7 @@ Claude 综合规划,请求用户批准后存入 `.claude/plan/任务名.md`
161
161
 
162
162
  ## 关键规则
163
163
 
164
- 1. **Gemini 前端意见可信赖**
165
- 2. **Codex 前端意见仅供参考**
164
+ 1. **{{FRONTEND_PRIMARY}} 前端意见可信赖**
165
+ 2. **{{BACKEND_PRIMARY}} 前端意见仅供参考**
166
166
  3. 外部模型对文件系统**零写入权限**
167
167
  4. Claude 负责所有代码写入和文件操作
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: '多模型性能优化:Codex 后端优化 + Gemini 前端优化'
2
+ description: '多模型性能优化:{{BACKEND_PRIMARY}} 后端优化 + {{FRONTEND_PRIMARY}} 前端优化'
3
3
  ---
4
4
 
5
5
  # Optimize - 多模型性能优化
@@ -21,8 +21,8 @@ description: '多模型性能优化:Codex 后端优化 + Gemini 前端优化'
21
21
  ## 你的角色
22
22
 
23
23
  你是**性能工程师**,编排多模型优化流程:
24
- - **Codex** – 后端性能优化(**后端权威**)
25
- - **Gemini** – 前端性能优化(**前端权威**)
24
+ - **{{BACKEND_PRIMARY}}** – 后端性能优化(**后端权威**)
25
+ - **{{FRONTEND_PRIMARY}}** – 前端性能优化(**前端权威**)
26
26
  - **Claude (自己)** – 综合优化、实施变更
27
27
 
28
28
  ---
@@ -38,7 +38,7 @@ description: '多模型性能优化:Codex 后端优化 + Gemini 前端优化'
38
38
 
39
39
  ```
40
40
  Bash({
41
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
41
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
42
42
  ROLE_FILE: <角色提示词路径>
43
43
  <TASK>
44
44
  需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
@@ -52,9 +52,6 @@ EOF",
52
52
  })
53
53
  ```
54
54
 
55
- **模型参数说明**:
56
- - `{{GEMINI_MODEL_FLAG}}`:当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3.1-pro-preview `(注意末尾空格);使用 codex 时替换为空字符串
57
-
58
55
  **角色提示词**:
59
56
 
60
57
  | 模型 | 提示词 |
@@ -107,12 +104,12 @@ TaskOutput({ task_id: "<task_id>", block: true, timeout: 600000 })
107
104
 
108
105
  **⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
109
106
 
110
- 1. **Codex 后端分析**:`Bash({ command: "...--backend codex...", run_in_background: true })`
107
+ 1. **{{BACKEND_PRIMARY}} 后端分析**:`Bash({ command: "...--backend {{BACKEND_PRIMARY}}...", run_in_background: true })`
111
108
  - ROLE_FILE: `~/.claude/.ccg/prompts/codex/optimizer.md`
112
109
  - 需求:分析后端性能问题($ARGUMENTS)
113
110
  - OUTPUT:性能瓶颈列表、优化方案、预期收益
114
111
 
115
- 2. **Gemini 前端分析**:`Bash({ command: "...--backend gemini...", run_in_background: true })`
112
+ 2. **{{FRONTEND_PRIMARY}} 前端分析**:`Bash({ command: "...--backend {{FRONTEND_PRIMARY}}...", run_in_background: true })`
116
113
  - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/optimizer.md`
117
114
  - 需求:分析前端性能问题(Core Web Vitals)
118
115
  - OUTPUT:性能瓶颈列表、优化方案、预期收益
@@ -29,7 +29,7 @@ $ARGUMENTS
29
29
 
30
30
  ```
31
31
  Bash({
32
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
32
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
33
33
  ROLE_FILE: <角色提示词路径>
34
34
  <TASK>
35
35
  需求:<增强后的需求>
@@ -43,9 +43,6 @@ EOF",
43
43
  })
44
44
  ```
45
45
 
46
- **模型参数说明**:
47
- - `{{GEMINI_MODEL_FLAG}}`:当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3.1-pro-preview `(注意末尾空格);使用 codex 时替换为空字符串
48
-
49
46
  **角色提示词**:
50
47
 
51
48
  | 阶段 | Codex | Gemini |
@@ -118,12 +115,12 @@ TaskOutput({ task_id: "<task_id>", block: true, timeout: 600000 })
118
115
 
119
116
  将**原始需求**(不带预设观点)分发给两个模型:
120
117
 
121
- 1. **Codex 后端分析**:
118
+ 1. **{{BACKEND_PRIMARY}} 后端分析**:
122
119
  - ROLE_FILE: `~/.claude/.ccg/prompts/codex/analyzer.md`
123
120
  - 关注:技术可行性、架构影响、性能考量、潜在风险
124
121
  - OUTPUT: 多角度解决方案 + 优劣势分析
125
122
 
126
- 2. **Gemini 前端分析**:
123
+ 2. **{{FRONTEND_PRIMARY}} 前端分析**:
127
124
  - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/analyzer.md`
128
125
  - 关注:UI/UX 影响、用户体验、视觉设计
129
126
  - OUTPUT: 多角度解决方案 + 优劣势分析
@@ -143,11 +140,11 @@ TaskOutput({ task_id: "<task_id>", block: true, timeout: 600000 })
143
140
 
144
141
  为降低 Claude 合成计划的遗漏风险,可并行让两个模型输出“计划草案”(仍然**不允许**修改文件):
145
142
 
146
- 1. **Codex 计划草案**(后端权威):
143
+ 1. **{{BACKEND_PRIMARY}} 计划草案**(后端权威):
147
144
  - ROLE_FILE: `~/.claude/.ccg/prompts/codex/architect.md`
148
145
  - OUTPUT: Step-by-step plan + pseudo-code(重点:数据流/边界条件/错误处理/测试策略)
149
146
 
150
- 2. **Gemini 计划草案**(前端权威):
147
+ 2. **{{FRONTEND_PRIMARY}} 计划草案**(前端权威):
151
148
  - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/architect.md`
152
149
  - OUTPUT: Step-by-step plan + pseudo-code(重点:信息架构/交互/可访问性/视觉一致性)
153
150
 
@@ -28,7 +28,7 @@ description: '多模型代码审查:无参数时自动审查 git diff,双模
28
28
 
29
29
  ```
30
30
  Bash({
31
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
31
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
32
32
  ROLE_FILE: <角色提示词路径>
33
33
  <TASK>
34
34
  审查以下代码变更:
@@ -42,9 +42,6 @@ EOF",
42
42
  })
43
43
  ```
44
44
 
45
- **模型参数说明**:
46
- - `{{GEMINI_MODEL_FLAG}}`:当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3.1-pro-preview `(注意末尾空格);使用 codex 时替换为空字符串
47
-
48
45
  **角色提示词**:
49
46
 
50
47
  | 模型 | 提示词 |
@@ -87,12 +84,12 @@ TaskOutput({ task_id: "<task_id>", block: true, timeout: 600000 })
87
84
 
88
85
  **⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
89
86
 
90
- 1. **Codex 后端审查**:`Bash({ command: "...--backend codex...", run_in_background: true })`
87
+ 1. **{{BACKEND_PRIMARY}} 后端审查**:`Bash({ command: "...--backend {{BACKEND_PRIMARY}}...", run_in_background: true })`
91
88
  - ROLE_FILE: `~/.claude/.ccg/prompts/codex/reviewer.md`
92
89
  - 需求:审查代码变更(git diff 内容)
93
90
  - OUTPUT:按 Critical/Major/Minor/Suggestion 分类列出安全性、性能、错误处理问题
94
91
 
95
- 2. **Gemini 前端审查**:`Bash({ command: "...--backend gemini...", run_in_background: true })`
92
+ 2. **{{FRONTEND_PRIMARY}} 前端审查**:`Bash({ command: "...--backend {{FRONTEND_PRIMARY}}...", run_in_background: true })`
96
93
  - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/reviewer.md`
97
94
  - 需求:审查代码变更(git diff 内容)
98
95
  - OUTPUT:按 Critical/Major/Minor/Suggestion 分类列出可访问性、响应式、设计一致性问题
@@ -47,7 +47,7 @@ description: '按规范执行 + 多模型协作 + 归档'
47
47
 
48
48
  For each task:
49
49
  ```
50
- codeagent-wrapper --progress --backend <codex|gemini> --gemini-model gemini-3.1-pro-preview - "{{WORKDIR}}" <<'EOF'
50
+ codeagent-wrapper --progress --backend <{{BACKEND_PRIMARY}}|{{FRONTEND_PRIMARY}}> {{GEMINI_MODEL_FLAG}}- "{{WORKDIR}}" <<'EOF'
51
51
  TASK: <task description from tasks.md>
52
52
  CONTEXT: <relevant code context>
53
53
  CONSTRAINTS: <constraints from spec>
@@ -55,8 +55,6 @@ description: '按规范执行 + 多模型协作 + 归档'
55
55
  EOF
56
56
  ```
57
57
 
58
- Note: `--gemini-model` parameter is only used when `--backend gemini` is specified.
59
-
60
58
  **会话复用**:保存返回的 `SESSION_ID:`(Codex → `CODEX_PROTO_SESSION`,Gemini → `GEMINI_PROTO_SESSION`),Step 7 审查时复用。
61
59
 
62
60
  5. **Rewrite Prototype to Production Code**
@@ -82,23 +80,23 @@ description: '按规范执行 + 多模型协作 + 归档'
82
80
 
83
81
  **Step 7.1**: In ONE message, make TWO parallel Bash calls:
84
82
 
85
- **FIRST Bash call (Codex)**:
83
+ **FIRST Bash call ({{BACKEND_PRIMARY}})**:
86
84
  ```
87
85
  Bash({
88
- command: "~/.claude/bin/codeagent-wrapper --progress --backend codex resume <CODEX_PROTO_SESSION> - \"{{WORKDIR}}\" <<'EOF'\nReview the implementation changes:\n- Correctness: logic errors, edge cases\n- Security: injection, auth issues\n- Spec compliance: constraints satisfied\nOUTPUT: JSON with findings\nEOF",
86
+ command: "~/.claude/bin/codeagent-wrapper --progress --backend {{BACKEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}resume <CODEX_PROTO_SESSION> - \"{{WORKDIR}}\" <<'EOF'\nReview the implementation changes:\n- Correctness: logic errors, edge cases\n- Security: injection, auth issues\n- Spec compliance: constraints satisfied\nOUTPUT: JSON with findings\nEOF",
89
87
  run_in_background: true,
90
88
  timeout: 300000,
91
- description: "Codex: correctness/security review"
89
+ description: "{{BACKEND_PRIMARY}}: correctness/security review"
92
90
  })
93
91
  ```
94
92
 
95
- **SECOND Bash call (Gemini) - IN THE SAME MESSAGE**:
93
+ **SECOND Bash call ({{FRONTEND_PRIMARY}}) - IN THE SAME MESSAGE**:
96
94
  ```
97
95
  Bash({
98
- command: "~/.claude/bin/codeagent-wrapper --progress --backend gemini --gemini-model gemini-3.1-pro-preview resume <GEMINI_PROTO_SESSION> - \"{{WORKDIR}}\" <<'EOF'\nReview the implementation changes:\n- Maintainability: readability, complexity\n- Patterns: consistency with project style\n- Integration: cross-module impacts\nOUTPUT: JSON with findings\nEOF",
96
+ command: "~/.claude/bin/codeagent-wrapper --progress --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}resume <GEMINI_PROTO_SESSION> - \"{{WORKDIR}}\" <<'EOF'\nReview the implementation changes:\n- Maintainability: readability, complexity\n- Patterns: consistency with project style\n- Integration: cross-module impacts\nOUTPUT: JSON with findings\nEOF",
99
97
  run_in_background: true,
100
98
  timeout: 300000,
101
- description: "Gemini: maintainability/patterns review"
99
+ description: "{{FRONTEND_PRIMARY}}: maintainability/patterns review"
102
100
  })
103
101
  ```
104
102
 
@@ -63,11 +63,11 @@ description: '初始化 OpenSpec (OPSX) 环境 + 验证多模型 MCP 工具'
63
63
  - **工作目录**:`{{WORKDIR}}` **必须通过 Bash 执行 `pwd`(Unix)或 `cd`(Windows CMD)获取当前工作目录的绝对路径**,禁止从 `$HOME` 或环境变量推断。如果用户通过 `/add-dir` 添加了多个工作区,先确定任务相关的工作区。
64
64
  - Test Codex backend:
65
65
  ```bash
66
- echo "echo test" | ~/.claude/bin/codeagent-wrapper --backend codex - "{{WORKDIR}}"
66
+ echo "echo test" | ~/.claude/bin/codeagent-wrapper --backend {{BACKEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- "{{WORKDIR}}"
67
67
  ```
68
- - Test Gemini backend:
68
+ - Test {{FRONTEND_PRIMARY}} backend:
69
69
  ```bash
70
- echo "echo test" | ~/.claude/bin/codeagent-wrapper --backend gemini --gemini-model gemini-3.1-pro-preview - "{{WORKDIR}}"
70
+ echo "echo test" | ~/.claude/bin/codeagent-wrapper --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- "{{WORKDIR}}"
71
71
  ```
72
72
  - For each unavailable tool, display warning with installation instructions.
73
73
 
@@ -30,23 +30,23 @@ description: '多模型分析 → 消除歧义 → 零决策可执行计划'
30
30
 
31
31
  **Step 2.1**: In ONE message, make TWO parallel Bash calls:
32
32
 
33
- **FIRST Bash call (Codex)**:
33
+ **FIRST Bash call ({{BACKEND_PRIMARY}})**:
34
34
  ```
35
35
  Bash({
36
- command: "~/.claude/bin/codeagent-wrapper --progress --backend codex - \"{{WORKDIR}}\" <<'EOF'\nAnalyze change <change_id> from backend perspective:\n- Implementation approach\n- Technical risks\n- Alternative architectures\n- Edge cases and failure modes\nOUTPUT: JSON with analysis\nEOF",
36
+ command: "~/.claude/bin/codeagent-wrapper --progress --backend {{BACKEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nAnalyze change <change_id> from backend perspective:\n- Implementation approach\n- Technical risks\n- Alternative architectures\n- Edge cases and failure modes\nOUTPUT: JSON with analysis\nEOF",
37
37
  run_in_background: true,
38
38
  timeout: 300000,
39
- description: "Codex: backend analysis"
39
+ description: "{{BACKEND_PRIMARY}}: backend analysis"
40
40
  })
41
41
  ```
42
42
 
43
- **SECOND Bash call (Gemini) - IN THE SAME MESSAGE**:
43
+ **SECOND Bash call ({{FRONTEND_PRIMARY}}) - IN THE SAME MESSAGE**:
44
44
  ```
45
45
  Bash({
46
- command: "~/.claude/bin/codeagent-wrapper --progress --backend gemini --gemini-model gemini-3.1-pro-preview - \"{{WORKDIR}}\" <<'EOF'\nAnalyze change <change_id> from frontend/integration perspective:\n- Maintainability assessment\n- Scalability considerations\n- Integration conflicts\nOUTPUT: JSON with analysis\nEOF",
46
+ command: "~/.claude/bin/codeagent-wrapper --progress --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nAnalyze change <change_id> from frontend/integration perspective:\n- Maintainability assessment\n- Scalability considerations\n- Integration conflicts\nOUTPUT: JSON with analysis\nEOF",
47
47
  run_in_background: true,
48
48
  timeout: 300000,
49
- description: "Gemini: frontend analysis"
49
+ description: "{{FRONTEND_PRIMARY}}: frontend analysis"
50
50
  })
51
51
  ```
52
52
 
@@ -69,23 +69,23 @@ description: '需求 → 约束集(并行探索 + OPSX 提案)'
69
69
 
70
70
  **Step 4.1**: In ONE message, make TWO parallel Bash calls:
71
71
 
72
- **FIRST Bash call (Codex — backend boundaries)**:
72
+ **FIRST Bash call ({{BACKEND_PRIMARY}} — backend boundaries)**:
73
73
  ```
74
74
  Bash({
75
- command: "~/.claude/bin/codeagent-wrapper --progress --backend codex - \"{{WORKDIR}}\" <<'EOF'\nExplore backend context boundaries for <change description>:\n- Existing structures and patterns\n- Conventions in use\n- Hard constraints limiting solution space\n- Dependencies and risks\nOUTPUT: JSON using the output template above\nEOF",
75
+ command: "~/.claude/bin/codeagent-wrapper --progress --backend {{BACKEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nExplore backend context boundaries for <change description>:\n- Existing structures and patterns\n- Conventions in use\n- Hard constraints limiting solution space\n- Dependencies and risks\nOUTPUT: JSON using the output template above\nEOF",
76
76
  run_in_background: true,
77
77
  timeout: 300000,
78
- description: "Codex: backend boundary exploration"
78
+ description: "{{BACKEND_PRIMARY}}: backend boundary exploration"
79
79
  })
80
80
  ```
81
81
 
82
- **SECOND Bash call (Gemini — frontend boundaries) - IN THE SAME MESSAGE**:
82
+ **SECOND Bash call ({{FRONTEND_PRIMARY}} — frontend boundaries) - IN THE SAME MESSAGE**:
83
83
  ```
84
84
  Bash({
85
- command: "~/.claude/bin/codeagent-wrapper --progress --backend gemini --gemini-model gemini-3.1-pro-preview - \"{{WORKDIR}}\" <<'EOF'\nExplore frontend context boundaries for <change description>:\n- Existing structures and patterns\n- Conventions in use\n- Hard constraints limiting solution space\n- Dependencies and risks\nOUTPUT: JSON using the output template above\nEOF",
85
+ command: "~/.claude/bin/codeagent-wrapper --progress --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nExplore frontend context boundaries for <change description>:\n- Existing structures and patterns\n- Conventions in use\n- Hard constraints limiting solution space\n- Dependencies and risks\nOUTPUT: JSON using the output template above\nEOF",
86
86
  run_in_background: true,
87
87
  timeout: 300000,
88
- description: "Gemini: frontend boundary exploration"
88
+ description: "{{FRONTEND_PRIMARY}}: frontend boundary exploration"
89
89
  })
90
90
  ```
91
91
 
@@ -31,23 +31,23 @@ description: '双模型交叉审查(独立工具,随时可用)'
31
31
 
32
32
  **Step 3.1**: In ONE message, make TWO parallel Bash calls:
33
33
 
34
- **FIRST Bash call (Codex)**:
34
+ **FIRST Bash call ({{BACKEND_PRIMARY}})**:
35
35
  ```
36
36
  Bash({
37
- command: "~/.claude/bin/codeagent-wrapper --progress --backend codex - \"{{WORKDIR}}\" <<'EOF'\nReview proposal <proposal_id> implementation:\n\n## Codex Review Dimensions\n1. **Spec Compliance**: Verify ALL constraints from spec are satisfied\n2. **PBT Properties**: Check invariants, idempotency, bounds are correctly implemented\n3. **Logic Correctness**: Edge cases, error handling, algorithm correctness\n4. **Backend Security**: Injection vulnerabilities, auth checks, input validation\n5. **Regression Risk**: Interface compatibility, type safety, breaking changes\n\n## Output Format (JSON)\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"spec_compliance|pbt|logic|security|regression\",\n \"file\": \"path/to/file.ts\",\n \"line\": 42,\n \"description\": \"What is wrong\",\n \"constraint_violated\": \"Constraint ID from spec (if applicable)\",\n \"fix_suggestion\": \"How to fix\"\n }\n ],\n \"passed_checks\": [\"List of verified constraints/properties\"],\n \"summary\": \"Overall assessment\"\n}\nEOF",
37
+ command: "~/.claude/bin/codeagent-wrapper --progress --backend {{BACKEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nReview proposal <proposal_id> implementation:\n\n## {{BACKEND_PRIMARY}} Review Dimensions\n1. **Spec Compliance**: Verify ALL constraints from spec are satisfied\n2. **PBT Properties**: Check invariants, idempotency, bounds are correctly implemented\n3. **Logic Correctness**: Edge cases, error handling, algorithm correctness\n4. **Backend Security**: Injection vulnerabilities, auth checks, input validation\n5. **Regression Risk**: Interface compatibility, type safety, breaking changes\n\n## Output Format (JSON)\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"spec_compliance|pbt|logic|security|regression\",\n \"file\": \"path/to/file.ts\",\n \"line\": 42,\n \"description\": \"What is wrong\",\n \"constraint_violated\": \"Constraint ID from spec (if applicable)\",\n \"fix_suggestion\": \"How to fix\"\n }\n ],\n \"passed_checks\": [\"List of verified constraints/properties\"],\n \"summary\": \"Overall assessment\"\n}\nEOF",
38
38
  run_in_background: true,
39
39
  timeout: 300000,
40
- description: "Codex: backend/logic review"
40
+ description: "{{BACKEND_PRIMARY}}: backend/logic review"
41
41
  })
42
42
  ```
43
43
 
44
- **SECOND Bash call (Gemini) - IN THE SAME MESSAGE**:
44
+ **SECOND Bash call ({{FRONTEND_PRIMARY}}) - IN THE SAME MESSAGE**:
45
45
  ```
46
46
  Bash({
47
- command: "~/.claude/bin/codeagent-wrapper --progress --backend gemini - \"{{WORKDIR}}\" <<'EOF'\nReview proposal <proposal_id> implementation:\n\n## Gemini Review Dimensions\n1. **Pattern Consistency**: Naming conventions, code style, project patterns\n2. **Maintainability**: Readability, complexity, documentation adequacy\n3. **Integration Risk**: Dependency changes, cross-module impacts\n4. **Frontend Security**: XSS, CSRF, sensitive data exposure\n5. **Spec Alignment**: Implementation matches spec intent (not just letter)\n\n## Output Format (JSON)\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"patterns|maintainability|integration|security|alignment\",\n \"file\": \"path/to/file.ts\",\n \"line\": 42,\n \"description\": \"What is wrong\",\n \"spec_reference\": \"Spec section (if applicable)\",\n \"fix_suggestion\": \"How to fix\"\n }\n ],\n \"passed_checks\": [\"List of verified aspects\"],\n \"summary\": \"Overall assessment\"\n}\nEOF",
47
+ command: "~/.claude/bin/codeagent-wrapper --progress --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nReview proposal <proposal_id> implementation:\n\n## {{FRONTEND_PRIMARY}} Review Dimensions\n1. **Pattern Consistency**: Naming conventions, code style, project patterns\n2. **Maintainability**: Readability, complexity, documentation adequacy\n3. **Integration Risk**: Dependency changes, cross-module impacts\n4. **Frontend Security**: XSS, CSRF, sensitive data exposure\n5. **Spec Alignment**: Implementation matches spec intent (not just letter)\n\n## Output Format (JSON)\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"patterns|maintainability|integration|security|alignment\",\n \"file\": \"path/to/file.ts\",\n \"line\": 42,\n \"description\": \"What is wrong\",\n \"spec_reference\": \"Spec section (if applicable)\",\n \"fix_suggestion\": \"How to fix\"\n }\n ],\n \"passed_checks\": [\"List of verified aspects\"],\n \"summary\": \"Overall assessment\"\n}\nEOF",
48
48
  run_in_background: true,
49
49
  timeout: 300000,
50
- description: "Gemini: patterns/integration review"
50
+ description: "{{FRONTEND_PRIMARY}}: patterns/integration review"
51
51
  })
52
52
  ```
53
53
 
@@ -23,23 +23,23 @@ description: 'Agent Teams 规划 - Lead 调用 Codex/Gemini 并行分析,产
23
23
  - **CRITICAL**: 必须在一条消息中同时发起两个 Bash 调用,`run_in_background: true`。
24
24
  - **工作目录**:`{{WORKDIR}}` **必须通过 Bash 执行 `pwd`(Unix)或 `cd`(Windows CMD)获取当前工作目录的绝对路径**,禁止从 `$HOME` 或环境变量推断。
25
25
 
26
- **FIRST Bash call (Codex)**:
26
+ **FIRST Bash call ({{BACKEND_PRIMARY}})**:
27
27
  ```
28
28
  Bash({
29
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend codex - \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/codex/analyzer.md\n<TASK>\n需求:$ARGUMENTS\n上下文:<步骤1收集的项目结构和关键代码>\n</TASK>\nOUTPUT:\n1) 技术可行性评估\n2) 推荐架构方案(精确到文件和函数)\n3) 详细实施步骤\n4) 风险评估\nEOF",
29
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend {{BACKEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/codex/analyzer.md\n<TASK>\n需求:$ARGUMENTS\n上下文:<步骤1收集的项目结构和关键代码>\n</TASK>\nOUTPUT:\n1) 技术可行性评估\n2) 推荐架构方案(精确到文件和函数)\n3) 详细实施步骤\n4) 风险评估\nEOF",
30
30
  run_in_background: true,
31
31
  timeout: 3600000,
32
- description: "Codex 后端分析"
32
+ description: "{{BACKEND_PRIMARY}} 后端分析"
33
33
  })
34
34
  ```
35
35
 
36
- **SECOND Bash call (Gemini) - IN THE SAME MESSAGE**:
36
+ **SECOND Bash call ({{FRONTEND_PRIMARY}}) - IN THE SAME MESSAGE**:
37
37
  ```
38
38
  Bash({
39
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend gemini {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/gemini/analyzer.md\n<TASK>\n需求:$ARGUMENTS\n上下文:<步骤1收集的项目结构和关键代码>\n</TASK>\nOUTPUT:\n1) UI/UX 方案\n2) 组件拆分建议(精确到文件和函数)\n3) 详细实施步骤\n4) 交互设计要点\nEOF",
39
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/gemini/analyzer.md\n<TASK>\n需求:$ARGUMENTS\n上下文:<步骤1收集的项目结构和关键代码>\n</TASK>\nOUTPUT:\n1) UI/UX 方案\n2) 组件拆分建议(精确到文件和函数)\n3) 详细实施步骤\n4) 交互设计要点\nEOF",
40
40
  run_in_background: true,
41
41
  timeout: 3600000,
42
- description: "Gemini 前端分析"
42
+ description: "{{FRONTEND_PRIMARY}} 前端分析"
43
43
  })
44
44
  ```
45
45
 
@@ -36,23 +36,23 @@ description: 'Agent Teams 需求研究 - 并行探索代码库,产出约束集
36
36
  - **CRITICAL**: 必须在一条消息中同时发起两个 Bash 调用。
37
37
  - **工作目录**:`{{WORKDIR}}` **必须通过 Bash 执行 `pwd`(Unix)或 `cd`(Windows CMD)获取当前工作目录的绝对路径**,禁止从 `$HOME` 或环境变量推断。
38
38
 
39
- **FIRST Bash call (Codex)**:
39
+ **FIRST Bash call ({{BACKEND_PRIMARY}})**:
40
40
  ```
41
41
  Bash({
42
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend codex - \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/codex/analyzer.md\n<TASK>\n需求:<增强后的需求>\n探索范围:后端相关上下文边界\n</TASK>\nOUTPUT (JSON):\n{\n \"module_name\": \"探索的上下文边界\",\n \"existing_structures\": [\"发现的关键模式\"],\n \"existing_conventions\": [\"使用中的规范\"],\n \"constraints_discovered\": [\"限制解决方案空间的硬约束\"],\n \"open_questions\": [\"需要用户确认的歧义\"],\n \"dependencies\": [\"跨模块依赖\"],\n \"risks\": [\"潜在阻碍\"],\n \"success_criteria_hints\": [\"可观测的成功行为\"]\n}\nEOF",
42
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend {{BACKEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/codex/analyzer.md\n<TASK>\n需求:<增强后的需求>\n探索范围:后端相关上下文边界\n</TASK>\nOUTPUT (JSON):\n{\n \"module_name\": \"探索的上下文边界\",\n \"existing_structures\": [\"发现的关键模式\"],\n \"existing_conventions\": [\"使用中的规范\"],\n \"constraints_discovered\": [\"限制解决方案空间的硬约束\"],\n \"open_questions\": [\"需要用户确认的歧义\"],\n \"dependencies\": [\"跨模块依赖\"],\n \"risks\": [\"潜在阻碍\"],\n \"success_criteria_hints\": [\"可观测的成功行为\"]\n}\nEOF",
43
43
  run_in_background: true,
44
44
  timeout: 3600000,
45
- description: "Codex 后端探索"
45
+ description: "{{BACKEND_PRIMARY}} 后端探索"
46
46
  })
47
47
  ```
48
48
 
49
- **SECOND Bash call (Gemini) - IN THE SAME MESSAGE**:
49
+ **SECOND Bash call ({{FRONTEND_PRIMARY}}) - IN THE SAME MESSAGE**:
50
50
  ```
51
51
  Bash({
52
- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend gemini {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/gemini/analyzer.md\n<TASK>\n需求:<增强后的需求>\n探索范围:前端相关上下文边界\n</TASK>\nOUTPUT (JSON):\n{\n \"module_name\": \"探索的上下文边界\",\n \"existing_structures\": [\"发现的关键模式\"],\n \"existing_conventions\": [\"使用中的规范\"],\n \"constraints_discovered\": [\"限制解决方案空间的硬约束\"],\n \"open_questions\": [\"需要用户确认的歧义\"],\n \"dependencies\": [\"跨模块依赖\"],\n \"risks\": [\"潜在阻碍\"],\n \"success_criteria_hints\": [\"可观测的成功行为\"]\n}\nEOF",
52
+ command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend {{FRONTEND_PRIMARY}} {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/gemini/analyzer.md\n<TASK>\n需求:<增强后的需求>\n探索范围:前端相关上下文边界\n</TASK>\nOUTPUT (JSON):\n{\n \"module_name\": \"探索的上下文边界\",\n \"existing_structures\": [\"发现的关键模式\"],\n \"existing_conventions\": [\"使用中的规范\"],\n \"constraints_discovered\": [\"限制解决方案空间的硬约束\"],\n \"open_questions\": [\"需要用户确认的歧义\"],\n \"dependencies\": [\"跨模块依赖\"],\n \"risks\": [\"潜在阻碍\"],\n \"success_criteria_hints\": [\"可观测的成功行为\"]\n}\nEOF",
53
53
  run_in_background: true,
54
54
  timeout: 3600000,
55
- description: "Gemini 前端探索"
55
+ description: "{{FRONTEND_PRIMARY}} 前端探索"
56
56
  })
57
57
  ```
58
58