ccg-workflow 1.7.88 → 1.7.90
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.
- package/README.md +7 -2
- package/README.zh-CN.md +7 -2
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{ccg-workflow.ZTLL0ziy.mjs → ccg-workflow.BYNAaRfS.mjs} +29 -76
- package/package.json +1 -1
- package/templates/commands/analyze.md +1 -1
- package/templates/commands/backend.md +2 -2
- package/templates/commands/codex-exec.md +5 -5
- package/templates/commands/debug.md +2 -2
- package/templates/commands/execute.md +3 -3
- package/templates/commands/feat.md +2 -2
- package/templates/commands/frontend.md +2 -2
- package/templates/commands/optimize.md +1 -1
- package/templates/commands/plan.md +1 -1
- package/templates/commands/review.md +1 -1
- package/templates/commands/spec-impl.md +3 -3
- package/templates/commands/spec-init.md +2 -2
- package/templates/commands/spec-plan.md +2 -2
- package/templates/commands/spec-research.md +2 -2
- package/templates/commands/spec-review.md +2 -2
- package/templates/commands/team-plan.md +2 -2
- package/templates/commands/team-research.md +2 -2
- package/templates/commands/team-review.md +2 -2
- package/templates/commands/test.md +1 -1
- package/templates/commands/workflow.md +2 -2
package/README.md
CHANGED
|
@@ -319,17 +319,22 @@ Looking for a place to start? Check out issues labeled [`good first issue`](http
|
|
|
319
319
|
|
|
320
320
|
## Contributors
|
|
321
321
|
|
|
322
|
-
<!-- readme: contributors
|
|
322
|
+
<!-- readme: contributors -start -->
|
|
323
323
|
<table>
|
|
324
324
|
<tr>
|
|
325
325
|
<td align="center"><a href="https://github.com/fengshao1227"><img src="https://avatars.githubusercontent.com/fengshao1227?v=4&s=100" width="100;" alt="fengshao1227"/><br /><sub><b>fengshao1227</b></sub></a></td>
|
|
326
|
+
<td align="center"><a href="https://github.com/SXP-Simon"><img src="https://avatars.githubusercontent.com/SXP-Simon?v=4&s=100" width="100;" alt="SXP-Simon"/><br /><sub><b>SXP-Simon</b></sub></a></td>
|
|
326
327
|
<td align="center"><a href="https://github.com/RebornQ"><img src="https://avatars.githubusercontent.com/RebornQ?v=4&s=100" width="100;" alt="RebornQ"/><br /><sub><b>RebornQ</b></sub></a></td>
|
|
328
|
+
<td align="center"><a href="https://github.com/Sakuranda"><img src="https://avatars.githubusercontent.com/Sakuranda?v=4&s=100" width="100;" alt="Sakuranda"/><br /><sub><b>Sakuranda</b></sub></a></td>
|
|
329
|
+
<td align="center"><a href="https://github.com/Mriris"><img src="https://avatars.githubusercontent.com/Mriris?v=4&s=100" width="100;" alt="Mriris"/><br /><sub><b>Mriris</b></sub></a></td>
|
|
327
330
|
<td align="center"><a href="https://github.com/23q3"><img src="https://avatars.githubusercontent.com/23q3?v=4&s=100" width="100;" alt="23q3"/><br /><sub><b>23q3</b></sub></a></td>
|
|
328
331
|
<td align="center"><a href="https://github.com/MrNine-666"><img src="https://avatars.githubusercontent.com/MrNine-666?v=4&s=100" width="100;" alt="MrNine-666"/><br /><sub><b>MrNine-666</b></sub></a></td>
|
|
332
|
+
</tr>
|
|
333
|
+
<tr>
|
|
329
334
|
<td align="center"><a href="https://github.com/GGzili"><img src="https://avatars.githubusercontent.com/GGzili?v=4&s=100" width="100;" alt="GGzili"/><br /><sub><b>GGzili</b></sub></a></td>
|
|
330
335
|
</tr>
|
|
331
336
|
</table>
|
|
332
|
-
<!-- readme: contributors
|
|
337
|
+
<!-- readme: contributors -end -->
|
|
333
338
|
|
|
334
339
|
## Credits
|
|
335
340
|
|
package/README.zh-CN.md
CHANGED
|
@@ -319,17 +319,22 @@ npm uninstall -g ccg-workflow # npm 全局用户需额外执行
|
|
|
319
319
|
|
|
320
320
|
## 贡献者
|
|
321
321
|
|
|
322
|
-
<!-- readme: contributors
|
|
322
|
+
<!-- readme: contributors -start -->
|
|
323
323
|
<table>
|
|
324
324
|
<tr>
|
|
325
325
|
<td align="center"><a href="https://github.com/fengshao1227"><img src="https://avatars.githubusercontent.com/fengshao1227?v=4&s=100" width="100;" alt="fengshao1227"/><br /><sub><b>fengshao1227</b></sub></a></td>
|
|
326
|
+
<td align="center"><a href="https://github.com/SXP-Simon"><img src="https://avatars.githubusercontent.com/SXP-Simon?v=4&s=100" width="100;" alt="SXP-Simon"/><br /><sub><b>SXP-Simon</b></sub></a></td>
|
|
326
327
|
<td align="center"><a href="https://github.com/RebornQ"><img src="https://avatars.githubusercontent.com/RebornQ?v=4&s=100" width="100;" alt="RebornQ"/><br /><sub><b>RebornQ</b></sub></a></td>
|
|
328
|
+
<td align="center"><a href="https://github.com/Sakuranda"><img src="https://avatars.githubusercontent.com/Sakuranda?v=4&s=100" width="100;" alt="Sakuranda"/><br /><sub><b>Sakuranda</b></sub></a></td>
|
|
329
|
+
<td align="center"><a href="https://github.com/Mriris"><img src="https://avatars.githubusercontent.com/Mriris?v=4&s=100" width="100;" alt="Mriris"/><br /><sub><b>Mriris</b></sub></a></td>
|
|
327
330
|
<td align="center"><a href="https://github.com/23q3"><img src="https://avatars.githubusercontent.com/23q3?v=4&s=100" width="100;" alt="23q3"/><br /><sub><b>23q3</b></sub></a></td>
|
|
328
331
|
<td align="center"><a href="https://github.com/MrNine-666"><img src="https://avatars.githubusercontent.com/MrNine-666?v=4&s=100" width="100;" alt="MrNine-666"/><br /><sub><b>MrNine-666</b></sub></a></td>
|
|
332
|
+
</tr>
|
|
333
|
+
<tr>
|
|
329
334
|
<td align="center"><a href="https://github.com/GGzili"><img src="https://avatars.githubusercontent.com/GGzili?v=4&s=100" width="100;" alt="GGzili"/><br /><sub><b>GGzili</b></sub></a></td>
|
|
330
335
|
</tr>
|
|
331
336
|
</table>
|
|
332
|
-
<!-- readme: contributors
|
|
337
|
+
<!-- readme: contributors -end -->
|
|
333
338
|
|
|
334
339
|
## 致谢
|
|
335
340
|
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import cac from 'cac';
|
|
3
3
|
import ansis from 'ansis';
|
|
4
|
-
import { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, a as i18n, s as showMainMenu, i as init, E as configMcp, F as version } from './shared/ccg-workflow.
|
|
4
|
+
import { z as diagnoseMcpConfig, A as isWindows, B as readClaudeCodeConfig, C as fixWindowsMcpConfig, D as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, a as i18n, s as showMainMenu, i as init, E as configMcp, F as version } from './shared/ccg-workflow.BYNAaRfS.mjs';
|
|
5
5
|
import 'inquirer';
|
|
6
6
|
import 'node:child_process';
|
|
7
7
|
import 'node:util';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.
|
|
1
|
+
export { c as changeLanguage, x as checkForUpdates, y as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, t as getCurrentVersion, v as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, k as installWorkflows, p as migrateToV1_4_0, q as needsMigration, r as readCcgConfig, s as showMainMenu, o as uninstallAceTool, n as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.BYNAaRfS.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'node:child_process';
|
|
@@ -10,7 +10,7 @@ import { parse, stringify } from 'smol-toml';
|
|
|
10
10
|
import i18next from 'i18next';
|
|
11
11
|
import ora from 'ora';
|
|
12
12
|
|
|
13
|
-
const version = "1.7.
|
|
13
|
+
const version = "1.7.90";
|
|
14
14
|
|
|
15
15
|
function cmd(id, order, category, name, nameEn, description, descriptionEn, cmdOverride) {
|
|
16
16
|
return {
|
|
@@ -2460,72 +2460,40 @@ async function needsMigration() {
|
|
|
2460
2460
|
return hasOldCcgDir || hasOldPromptsDir || hasOldConfigFile;
|
|
2461
2461
|
}
|
|
2462
2462
|
|
|
2463
|
-
async function checkJqAvailable() {
|
|
2464
|
-
try {
|
|
2465
|
-
const { execSync } = await import('node:child_process');
|
|
2466
|
-
execSync("jq --version", { stdio: "pipe" });
|
|
2467
|
-
return true;
|
|
2468
|
-
} catch {
|
|
2469
|
-
return false;
|
|
2470
|
-
}
|
|
2471
|
-
}
|
|
2472
2463
|
async function installHook(settingsPath) {
|
|
2473
2464
|
let settings = {};
|
|
2474
2465
|
if (await fs.pathExists(settingsPath)) {
|
|
2475
2466
|
settings = await fs.readJSON(settingsPath);
|
|
2476
2467
|
}
|
|
2477
|
-
if (
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
delete settings.hooks;
|
|
2488
|
-
}
|
|
2489
|
-
}
|
|
2490
|
-
if (!settings.permissions)
|
|
2491
|
-
settings.permissions = {};
|
|
2492
|
-
if (!settings.permissions.allow)
|
|
2493
|
-
settings.permissions.allow = [];
|
|
2494
|
-
const permEntry = "Bash(codeagent-wrapper*)";
|
|
2495
|
-
if (!settings.permissions.allow.includes(permEntry)) {
|
|
2496
|
-
settings.permissions.allow.push(permEntry);
|
|
2468
|
+
if (settings.hooks?.PreToolUse) {
|
|
2469
|
+
const hookIdx = settings.hooks.PreToolUse.findIndex(
|
|
2470
|
+
(h) => h.matcher === "Bash" && h.hooks?.some((hh) => hh.command?.includes("codeagent-wrapper"))
|
|
2471
|
+
);
|
|
2472
|
+
if (hookIdx >= 0) {
|
|
2473
|
+
settings.hooks.PreToolUse.splice(hookIdx, 1);
|
|
2474
|
+
if (settings.hooks.PreToolUse.length === 0)
|
|
2475
|
+
delete settings.hooks.PreToolUse;
|
|
2476
|
+
if (settings.hooks && Object.keys(settings.hooks).length === 0)
|
|
2477
|
+
delete settings.hooks;
|
|
2497
2478
|
}
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
settings.hooks.PreToolUse = [];
|
|
2505
|
-
const newCommand = `jq -r '.tool_input.command' 2>/dev/null | grep -q 'codeagent-wrapper' && echo '{"hookSpecificOutput": {"hookEventName": "PreToolUse", "permissionDecision": "allow", "permissionDecisionReason": "codeagent-wrapper auto-approved"}}' || true`;
|
|
2506
|
-
const existingIdx = settings.hooks.PreToolUse.findIndex(
|
|
2507
|
-
(h) => h.matcher === "Bash" && h.hooks?.some((hh) => hh.command?.includes("codeagent-wrapper"))
|
|
2508
|
-
);
|
|
2509
|
-
if (existingIdx >= 0) {
|
|
2510
|
-
const oldCmd = settings.hooks.PreToolUse[existingIdx]?.hooks?.[0]?.command || "";
|
|
2511
|
-
if (oldCmd.includes("exit 1")) {
|
|
2512
|
-
settings.hooks.PreToolUse[existingIdx].hooks[0].command = newCommand;
|
|
2513
|
-
await fs.writeJSON(settingsPath, settings, { spaces: 2 });
|
|
2479
|
+
}
|
|
2480
|
+
if (settings.permissions?.allow) {
|
|
2481
|
+
const oldEntry = "Bash(codeagent-wrapper*)";
|
|
2482
|
+
const oldIdx = settings.permissions.allow.indexOf(oldEntry);
|
|
2483
|
+
if (oldIdx >= 0) {
|
|
2484
|
+
settings.permissions.allow.splice(oldIdx, 1);
|
|
2514
2485
|
}
|
|
2515
|
-
} else {
|
|
2516
|
-
settings.hooks.PreToolUse.push({
|
|
2517
|
-
matcher: "Bash",
|
|
2518
|
-
hooks: [
|
|
2519
|
-
{
|
|
2520
|
-
type: "command",
|
|
2521
|
-
command: newCommand,
|
|
2522
|
-
timeout: 1
|
|
2523
|
-
}
|
|
2524
|
-
]
|
|
2525
|
-
});
|
|
2526
|
-
await fs.writeJSON(settingsPath, settings, { spaces: 2 });
|
|
2527
2486
|
}
|
|
2528
|
-
|
|
2487
|
+
if (!settings.permissions)
|
|
2488
|
+
settings.permissions = {};
|
|
2489
|
+
if (!settings.permissions.allow)
|
|
2490
|
+
settings.permissions.allow = [];
|
|
2491
|
+
const permEntry = "Bash(*codeagent-wrapper*)";
|
|
2492
|
+
if (!settings.permissions.allow.includes(permEntry)) {
|
|
2493
|
+
settings.permissions.allow.push(permEntry);
|
|
2494
|
+
}
|
|
2495
|
+
await fs.writeJSON(settingsPath, settings, { spaces: 2 });
|
|
2496
|
+
return "permission";
|
|
2529
2497
|
}
|
|
2530
2498
|
async function appendGrokSearchPrompt() {
|
|
2531
2499
|
const rulesDir = join(homedir(), ".claude", "rules");
|
|
@@ -3070,13 +3038,9 @@ async function init(options = {}) {
|
|
|
3070
3038
|
console.log();
|
|
3071
3039
|
console.log(` ${ansis.green("\u2713")} API ${ansis.gray(`\u2192 ${settingsPath}`)}`);
|
|
3072
3040
|
}
|
|
3073
|
-
|
|
3041
|
+
await installHook(settingsPath);
|
|
3074
3042
|
console.log();
|
|
3075
|
-
|
|
3076
|
-
console.log(` ${ansis.green("\u2713")} ${i18n.t("init:hooks.installed")} ${ansis.gray("(permissions.allow)")}`);
|
|
3077
|
-
} else {
|
|
3078
|
-
console.log(` ${ansis.green("\u2713")} ${i18n.t("init:hooks.installed")}`);
|
|
3079
|
-
}
|
|
3043
|
+
console.log(` ${ansis.green("\u2713")} ${i18n.t("init:hooks.installed")} ${ansis.gray("(permissions.allow)")}`);
|
|
3080
3044
|
if (wantGrokSearch && (tavilyKey || firecrawlKey || grokApiUrl || grokApiKey)) {
|
|
3081
3045
|
spinner.text = i18n.t("init:grok.installing");
|
|
3082
3046
|
const grokResult = await installGrokSearchMcp({
|
|
@@ -3129,17 +3093,6 @@ async function init(options = {}) {
|
|
|
3129
3093
|
console.log(ansis.gray(` ${geminiSyncResult.message}`));
|
|
3130
3094
|
}
|
|
3131
3095
|
}
|
|
3132
|
-
if (hookMethod === "hook") {
|
|
3133
|
-
const hasJq = await checkJqAvailable();
|
|
3134
|
-
if (!hasJq) {
|
|
3135
|
-
console.log();
|
|
3136
|
-
console.log(ansis.yellow(` \u26A0 ${i18n.t("init:hooks.jqNotFound")}`));
|
|
3137
|
-
console.log();
|
|
3138
|
-
console.log(ansis.cyan(` \u{1F4D6} ${i18n.t("init:hooks.jqInstallHint")}:`));
|
|
3139
|
-
console.log(ansis.gray(` ${i18n.t("init:hooks.jqMac")}`));
|
|
3140
|
-
console.log(ansis.gray(` ${i18n.t("init:hooks.jqLinux")}`));
|
|
3141
|
-
}
|
|
3142
|
-
}
|
|
3143
3096
|
console.log();
|
|
3144
3097
|
console.log(ansis.cyan(` ${i18n.t("init:installedCommands")}`));
|
|
3145
3098
|
result.installedCommands.forEach((cmd) => {
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ description: '多模型技术分析(并行执行):Codex 后端视角 + Gem
|
|
|
34
34
|
|
|
35
35
|
```
|
|
36
36
|
Bash({
|
|
37
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
37
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
38
38
|
ROLE_FILE: <角色提示词路径>
|
|
39
39
|
<TASK>
|
|
40
40
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|
|
@@ -40,7 +40,7 @@ description: '后端专项工作流(研究→构思→计划→执行→优化
|
|
|
40
40
|
```
|
|
41
41
|
# 新会话调用
|
|
42
42
|
Bash({
|
|
43
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex - \"{{WORKDIR}}\" <<'EOF'
|
|
43
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend codex - \"{{WORKDIR}}\" <<'EOF'
|
|
44
44
|
ROLE_FILE: <角色提示词路径>
|
|
45
45
|
<TASK>
|
|
46
46
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|
|
@@ -55,7 +55,7 @@ EOF",
|
|
|
55
55
|
|
|
56
56
|
# 复用会话调用
|
|
57
57
|
Bash({
|
|
58
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
58
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend codex resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
59
59
|
ROLE_FILE: <角色提示词路径>
|
|
60
60
|
<TASK>
|
|
61
61
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|
|
@@ -51,7 +51,7 @@ $ARGUMENTS
|
|
|
51
51
|
|
|
52
52
|
```
|
|
53
53
|
Bash({
|
|
54
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex - \"{{WORKDIR}}\" <<'EXEC_EOF'
|
|
54
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend codex - \"{{WORKDIR}}\" <<'EXEC_EOF'
|
|
55
55
|
<TASK>
|
|
56
56
|
<指令内容>
|
|
57
57
|
</TASK>
|
|
@@ -66,7 +66,7 @@ EXEC_EOF",
|
|
|
66
66
|
|
|
67
67
|
```
|
|
68
68
|
Bash({
|
|
69
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EXEC_EOF'
|
|
69
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend codex resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EXEC_EOF'
|
|
70
70
|
<TASK>
|
|
71
71
|
<指令内容>
|
|
72
72
|
</TASK>
|
|
@@ -84,7 +84,7 @@ EXEC_EOF",
|
|
|
84
84
|
|
|
85
85
|
```
|
|
86
86
|
Bash({
|
|
87
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'REVIEW_EOF'
|
|
87
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'REVIEW_EOF'
|
|
88
88
|
ROLE_FILE: <角色提示词路径>
|
|
89
89
|
<TASK>
|
|
90
90
|
Scope: Audit the code changes made by Codex.
|
|
@@ -171,7 +171,7 @@ TaskOutput({ task_id: "<task_id>", block: true, timeout: 600000 })
|
|
|
171
171
|
|
|
172
172
|
```
|
|
173
173
|
Bash({
|
|
174
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex resume <CODEX_SESSION> - \"{{WORKDIR}}\" <<'EXEC_EOF'
|
|
174
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend codex resume <CODEX_SESSION> - \"{{WORKDIR}}\" <<'EXEC_EOF'
|
|
175
175
|
<TASK>
|
|
176
176
|
You are a full-stack execution agent. Implement the following plan end-to-end.
|
|
177
177
|
|
|
@@ -271,7 +271,7 @@ EXEC_EOF",
|
|
|
271
271
|
|
|
272
272
|
```
|
|
273
273
|
Bash({
|
|
274
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex resume <CODEX_EXEC_SESSION> - \"{{WORKDIR}}\" <<'FIXEOF'
|
|
274
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend codex resume <CODEX_EXEC_SESSION> - \"{{WORKDIR}}\" <<'FIXEOF'
|
|
275
275
|
<TASK>
|
|
276
276
|
The implementation needs corrections:
|
|
277
277
|
|
|
@@ -32,7 +32,7 @@ description: '多模型调试:Codex 后端诊断 + Gemini 前端诊断,交
|
|
|
32
32
|
|
|
33
33
|
**Codex 后端诊断**:
|
|
34
34
|
```bash
|
|
35
|
-
~/.claude/bin/codeagent-wrapper --backend codex - "$(pwd)" <<'EOF'
|
|
35
|
+
~/.claude/bin/codeagent-wrapper --progress --backend codex - "$(pwd)" <<'EOF'
|
|
36
36
|
ROLE_FILE: ~/.claude/.ccg/prompts/codex/debugger.md
|
|
37
37
|
<TASK>
|
|
38
38
|
需求:<增强后的需求>
|
|
@@ -44,7 +44,7 @@ EOF
|
|
|
44
44
|
|
|
45
45
|
**Gemini 前端诊断**:
|
|
46
46
|
```bash
|
|
47
|
-
~/.claude/bin/codeagent-wrapper --backend gemini --gemini-model gemini-3.1-pro-preview - "$(pwd)" <<'EOF'
|
|
47
|
+
~/.claude/bin/codeagent-wrapper --progress --backend gemini --gemini-model gemini-3.1-pro-preview - "$(pwd)" <<'EOF'
|
|
48
48
|
ROLE_FILE: ~/.claude/.ccg/prompts/gemini/debugger.md
|
|
49
49
|
<TASK>
|
|
50
50
|
需求:<增强后的需求>
|
|
@@ -31,7 +31,7 @@ $ARGUMENTS
|
|
|
31
31
|
```
|
|
32
32
|
# 复用会话调用(推荐)- 原型生成(Implementation Prototype)
|
|
33
33
|
Bash({
|
|
34
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
34
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
35
35
|
ROLE_FILE: <角色提示词路径>
|
|
36
36
|
<TASK>
|
|
37
37
|
需求:<任务描述>
|
|
@@ -46,7 +46,7 @@ EOF",
|
|
|
46
46
|
|
|
47
47
|
# 新会话调用 - 原型生成(Implementation Prototype)
|
|
48
48
|
Bash({
|
|
49
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
49
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
50
50
|
ROLE_FILE: <角色提示词路径>
|
|
51
51
|
<TASK>
|
|
52
52
|
需求:<任务描述>
|
|
@@ -64,7 +64,7 @@ EOF",
|
|
|
64
64
|
|
|
65
65
|
```
|
|
66
66
|
Bash({
|
|
67
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
67
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
68
68
|
ROLE_FILE: <角色提示词路径>
|
|
69
69
|
<TASK>
|
|
70
70
|
Scope: Audit the final code changes.
|
|
@@ -21,7 +21,7 @@ $ARGUMENTS
|
|
|
21
21
|
```
|
|
22
22
|
# 新会话调用
|
|
23
23
|
Bash({
|
|
24
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
24
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
25
25
|
ROLE_FILE: <角色提示词路径>
|
|
26
26
|
<TASK>
|
|
27
27
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|
|
@@ -36,7 +36,7 @@ EOF",
|
|
|
36
36
|
|
|
37
37
|
# 复用会话调用
|
|
38
38
|
Bash({
|
|
39
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
39
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
40
40
|
ROLE_FILE: <角色提示词路径>
|
|
41
41
|
<TASK>
|
|
42
42
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|
|
@@ -40,7 +40,7 @@ description: '前端专项工作流(研究→构思→计划→执行→优化
|
|
|
40
40
|
```
|
|
41
41
|
# 新会话调用
|
|
42
42
|
Bash({
|
|
43
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend gemini --gemini-model gemini-3.1-pro-preview - \"{{WORKDIR}}\" <<'EOF'
|
|
43
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend gemini --gemini-model gemini-3.1-pro-preview - \"{{WORKDIR}}\" <<'EOF'
|
|
44
44
|
ROLE_FILE: <角色提示词路径>
|
|
45
45
|
<TASK>
|
|
46
46
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|
|
@@ -55,7 +55,7 @@ EOF",
|
|
|
55
55
|
|
|
56
56
|
# 复用会话调用
|
|
57
57
|
Bash({
|
|
58
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend gemini --gemini-model gemini-3.1-pro-preview resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
58
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend gemini --gemini-model gemini-3.1-pro-preview resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
59
59
|
ROLE_FILE: <角色提示词路径>
|
|
60
60
|
<TASK>
|
|
61
61
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|
|
@@ -39,7 +39,7 @@ description: '多模型性能优化:Codex 后端优化 + Gemini 前端优化'
|
|
|
39
39
|
|
|
40
40
|
```
|
|
41
41
|
Bash({
|
|
42
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
42
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
43
43
|
ROLE_FILE: <角色提示词路径>
|
|
44
44
|
<TASK>
|
|
45
45
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|
|
@@ -30,7 +30,7 @@ $ARGUMENTS
|
|
|
30
30
|
|
|
31
31
|
```
|
|
32
32
|
Bash({
|
|
33
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
33
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
34
34
|
ROLE_FILE: <角色提示词路径>
|
|
35
35
|
<TASK>
|
|
36
36
|
需求:<增强后的需求>
|
|
@@ -29,7 +29,7 @@ description: '多模型代码审查:无参数时自动审查 git diff,双模
|
|
|
29
29
|
|
|
30
30
|
```
|
|
31
31
|
Bash({
|
|
32
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
32
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
33
33
|
ROLE_FILE: <角色提示词路径>
|
|
34
34
|
<TASK>
|
|
35
35
|
审查以下代码变更:
|
|
@@ -47,7 +47,7 @@ description: '按规范执行 + 多模型协作 + 归档'
|
|
|
47
47
|
|
|
48
48
|
For each task:
|
|
49
49
|
```
|
|
50
|
-
codeagent-wrapper --backend <codex|gemini> --gemini-model gemini-3.1-pro-preview - "{{WORKDIR}}" <<'EOF'
|
|
50
|
+
codeagent-wrapper --progress --backend <codex|gemini> --gemini-model gemini-3.1-pro-preview - "{{WORKDIR}}" <<'EOF'
|
|
51
51
|
TASK: <task description from tasks.md>
|
|
52
52
|
CONTEXT: <relevant code context>
|
|
53
53
|
CONSTRAINTS: <constraints from spec>
|
|
@@ -83,7 +83,7 @@ description: '按规范执行 + 多模型协作 + 归档'
|
|
|
83
83
|
**FIRST Bash call (Codex)**:
|
|
84
84
|
```
|
|
85
85
|
Bash({
|
|
86
|
-
command: "~/.claude/bin/codeagent-wrapper --backend codex - \"{{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 codex - \"{{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",
|
|
87
87
|
run_in_background: true,
|
|
88
88
|
timeout: 300000,
|
|
89
89
|
description: "Codex: correctness/security review"
|
|
@@ -93,7 +93,7 @@ description: '按规范执行 + 多模型协作 + 归档'
|
|
|
93
93
|
**SECOND Bash call (Gemini) - IN THE SAME MESSAGE**:
|
|
94
94
|
```
|
|
95
95
|
Bash({
|
|
96
|
-
command: "~/.claude/bin/codeagent-wrapper --backend gemini --gemini-model gemini-3.1-pro-preview - \"{{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 gemini --gemini-model gemini-3.1-pro-preview - \"{{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",
|
|
97
97
|
run_in_background: true,
|
|
98
98
|
timeout: 300000,
|
|
99
99
|
description: "Gemini: maintainability/patterns review"
|
|
@@ -62,11 +62,11 @@ description: '初始化 OpenSpec (OPSX) 环境 + 验证多模型 MCP 工具'
|
|
|
62
62
|
- **工作目录**:`{{WORKDIR}}` 替换为目标工作目录的绝对路径。如果用户通过 `/add-dir` 添加了多个工作区,先确定任务相关的工作区。
|
|
63
63
|
- Test Codex backend:
|
|
64
64
|
```bash
|
|
65
|
-
~/.claude/bin/codeagent-wrapper --backend codex - "{{WORKDIR}}"
|
|
65
|
+
echo "echo test" | ~/.claude/bin/codeagent-wrapper --backend codex - "{{WORKDIR}}"
|
|
66
66
|
```
|
|
67
67
|
- Test Gemini backend:
|
|
68
68
|
```bash
|
|
69
|
-
~/.claude/bin/codeagent-wrapper --backend gemini --gemini-model gemini-3.1-pro-preview - "{{WORKDIR}}"
|
|
69
|
+
echo "echo test" | ~/.claude/bin/codeagent-wrapper --backend gemini --gemini-model gemini-3.1-pro-preview - "{{WORKDIR}}"
|
|
70
70
|
```
|
|
71
71
|
- For each unavailable tool, display warning with installation instructions.
|
|
72
72
|
|
|
@@ -33,7 +33,7 @@ description: '多模型分析 → 消除歧义 → 零决策可执行计划'
|
|
|
33
33
|
**FIRST Bash call (Codex)**:
|
|
34
34
|
```
|
|
35
35
|
Bash({
|
|
36
|
-
command: "~/.claude/bin/codeagent-wrapper --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 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",
|
|
37
37
|
run_in_background: true,
|
|
38
38
|
timeout: 300000,
|
|
39
39
|
description: "Codex: backend analysis"
|
|
@@ -43,7 +43,7 @@ description: '多模型分析 → 消除歧义 → 零决策可执行计划'
|
|
|
43
43
|
**SECOND Bash call (Gemini) - IN THE SAME MESSAGE**:
|
|
44
44
|
```
|
|
45
45
|
Bash({
|
|
46
|
-
command: "~/.claude/bin/codeagent-wrapper --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 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",
|
|
47
47
|
run_in_background: true,
|
|
48
48
|
timeout: 300000,
|
|
49
49
|
description: "Gemini: frontend analysis"
|
|
@@ -72,7 +72,7 @@ description: '需求 → 约束集(并行探索 + OPSX 提案)'
|
|
|
72
72
|
**FIRST Bash call (Codex — backend boundaries)**:
|
|
73
73
|
```
|
|
74
74
|
Bash({
|
|
75
|
-
command: "~/.claude/bin/codeagent-wrapper --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 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",
|
|
76
76
|
run_in_background: true,
|
|
77
77
|
timeout: 300000,
|
|
78
78
|
description: "Codex: backend boundary exploration"
|
|
@@ -82,7 +82,7 @@ description: '需求 → 约束集(并行探索 + OPSX 提案)'
|
|
|
82
82
|
**SECOND Bash call (Gemini — frontend boundaries) - IN THE SAME MESSAGE**:
|
|
83
83
|
```
|
|
84
84
|
Bash({
|
|
85
|
-
command: "~/.claude/bin/codeagent-wrapper --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 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",
|
|
86
86
|
run_in_background: true,
|
|
87
87
|
timeout: 300000,
|
|
88
88
|
description: "Gemini: frontend boundary exploration"
|
|
@@ -34,7 +34,7 @@ description: '双模型交叉审查(独立工具,随时可用)'
|
|
|
34
34
|
**FIRST Bash call (Codex)**:
|
|
35
35
|
```
|
|
36
36
|
Bash({
|
|
37
|
-
command: "~/.claude/bin/codeagent-wrapper --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 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",
|
|
38
38
|
run_in_background: true,
|
|
39
39
|
timeout: 300000,
|
|
40
40
|
description: "Codex: backend/logic review"
|
|
@@ -44,7 +44,7 @@ description: '双模型交叉审查(独立工具,随时可用)'
|
|
|
44
44
|
**SECOND Bash call (Gemini) - IN THE SAME MESSAGE**:
|
|
45
45
|
```
|
|
46
46
|
Bash({
|
|
47
|
-
command: "~/.claude/bin/codeagent-wrapper --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 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",
|
|
48
48
|
run_in_background: true,
|
|
49
49
|
timeout: 300000,
|
|
50
50
|
description: "Gemini: patterns/integration review"
|
|
@@ -26,7 +26,7 @@ description: 'Agent Teams 规划 - Lead 调用 Codex/Gemini 并行分析,产
|
|
|
26
26
|
**FIRST Bash call (Codex)**:
|
|
27
27
|
```
|
|
28
28
|
Bash({
|
|
29
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--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 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",
|
|
30
30
|
run_in_background: true,
|
|
31
31
|
timeout: 3600000,
|
|
32
32
|
description: "Codex 后端分析"
|
|
@@ -36,7 +36,7 @@ description: 'Agent Teams 规划 - Lead 调用 Codex/Gemini 并行分析,产
|
|
|
36
36
|
**SECOND Bash call (Gemini) - IN THE SAME MESSAGE**:
|
|
37
37
|
```
|
|
38
38
|
Bash({
|
|
39
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--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 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",
|
|
40
40
|
run_in_background: true,
|
|
41
41
|
timeout: 3600000,
|
|
42
42
|
description: "Gemini 前端分析"
|
|
@@ -39,7 +39,7 @@ description: 'Agent Teams 需求研究 - 并行探索代码库,产出约束集
|
|
|
39
39
|
**FIRST Bash call (Codex)**:
|
|
40
40
|
```
|
|
41
41
|
Bash({
|
|
42
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--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 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",
|
|
43
43
|
run_in_background: true,
|
|
44
44
|
timeout: 3600000,
|
|
45
45
|
description: "Codex 后端探索"
|
|
@@ -49,7 +49,7 @@ description: 'Agent Teams 需求研究 - 并行探索代码库,产出约束集
|
|
|
49
49
|
**SECOND Bash call (Gemini) - IN THE SAME MESSAGE**:
|
|
50
50
|
```
|
|
51
51
|
Bash({
|
|
52
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--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 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",
|
|
53
53
|
run_in_background: true,
|
|
54
54
|
timeout: 3600000,
|
|
55
55
|
description: "Gemini 前端探索"
|
|
@@ -25,7 +25,7 @@ description: 'Agent Teams 审查 - 双模型交叉审查并行实施的产出,
|
|
|
25
25
|
**FIRST Bash call (Codex)**:
|
|
26
26
|
```
|
|
27
27
|
Bash({
|
|
28
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex - \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/codex/reviewer.md\n<TASK>\n审查以下变更:\n<git diff 输出或变更文件列表>\n</TASK>\nOUTPUT (JSON):\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"logic|security|performance|error_handling\",\n \"file\": \"path/to/file\",\n \"line\": 42,\n \"description\": \"问题描述\",\n \"fix_suggestion\": \"修复建议\"\n }\n ],\n \"passed_checks\": [\"已验证的检查项\"],\n \"summary\": \"总体评估\"\n}\nEOF",
|
|
28
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend codex - \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/codex/reviewer.md\n<TASK>\n审查以下变更:\n<git diff 输出或变更文件列表>\n</TASK>\nOUTPUT (JSON):\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"logic|security|performance|error_handling\",\n \"file\": \"path/to/file\",\n \"line\": 42,\n \"description\": \"问题描述\",\n \"fix_suggestion\": \"修复建议\"\n }\n ],\n \"passed_checks\": [\"已验证的检查项\"],\n \"summary\": \"总体评估\"\n}\nEOF",
|
|
29
29
|
run_in_background: true,
|
|
30
30
|
timeout: 3600000,
|
|
31
31
|
description: "Codex 后端审查"
|
|
@@ -35,7 +35,7 @@ description: 'Agent Teams 审查 - 双模型交叉审查并行实施的产出,
|
|
|
35
35
|
**SECOND Bash call (Gemini) - IN THE SAME MESSAGE**:
|
|
36
36
|
```
|
|
37
37
|
Bash({
|
|
38
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend gemini {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/gemini/reviewer.md\n<TASK>\n审查以下变更:\n<git diff 输出或变更文件列表>\n</TASK>\nOUTPUT (JSON):\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"patterns|maintainability|accessibility|ux|frontend_security\",\n \"file\": \"path/to/file\",\n \"line\": 42,\n \"description\": \"问题描述\",\n \"fix_suggestion\": \"修复建议\"\n }\n ],\n \"passed_checks\": [\"已验证的检查项\"],\n \"summary\": \"总体评估\"\n}\nEOF",
|
|
38
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend gemini {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'\nROLE_FILE: ~/.claude/.ccg/prompts/gemini/reviewer.md\n<TASK>\n审查以下变更:\n<git diff 输出或变更文件列表>\n</TASK>\nOUTPUT (JSON):\n{\n \"findings\": [\n {\n \"severity\": \"Critical|Warning|Info\",\n \"dimension\": \"patterns|maintainability|accessibility|ux|frontend_security\",\n \"file\": \"path/to/file\",\n \"line\": 42,\n \"description\": \"问题描述\",\n \"fix_suggestion\": \"修复建议\"\n }\n ],\n \"passed_checks\": [\"已验证的检查项\"],\n \"summary\": \"总体评估\"\n}\nEOF",
|
|
39
39
|
run_in_background: true,
|
|
40
40
|
timeout: 3600000,
|
|
41
41
|
description: "Gemini 前端审查"
|
|
@@ -39,7 +39,7 @@ description: '多模型测试生成:智能路由 Codex 后端测试 / Gemini
|
|
|
39
39
|
|
|
40
40
|
```
|
|
41
41
|
Bash({
|
|
42
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
42
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
43
43
|
ROLE_FILE: <角色提示词路径>
|
|
44
44
|
<TASK>
|
|
45
45
|
需求:为以下代码生成测试
|
|
@@ -43,7 +43,7 @@ description: '多模型协作开发工作流(研究→构思→计划→执行
|
|
|
43
43
|
```
|
|
44
44
|
# 新会话调用
|
|
45
45
|
Bash({
|
|
46
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
46
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"{{WORKDIR}}\" <<'EOF'
|
|
47
47
|
ROLE_FILE: <角色提示词路径>
|
|
48
48
|
<TASK>
|
|
49
49
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|
|
@@ -58,7 +58,7 @@ EOF",
|
|
|
58
58
|
|
|
59
59
|
# 复用会话调用
|
|
60
60
|
Bash({
|
|
61
|
-
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
61
|
+
command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--progress --backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"{{WORKDIR}}\" <<'EOF'
|
|
62
62
|
ROLE_FILE: <角色提示词路径>
|
|
63
63
|
<TASK>
|
|
64
64
|
需求:<增强后的需求(如未增强则用 $ARGUMENTS)>
|