The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
fix(commands): drop unrendered LITE_MODE_FLAG token from codeagent-wrapper calls (#3640)
Affaan Mustafa8293d0da8fa9
diff --git a/commands/multi-backend.md b/commands/multi-backend.mdindex 95cc95d83..1faa1c883 100644--- a/commands/multi-backend.md+++ b/commands/multi-backend.md@@ -38,7 +38,7 @@ You are the **Backend Orchestrator**, coordinating multi-model collaboration for```# New session callBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend codex - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>@@ -53,7 +53,7 @@ EOF",# Resume session callBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend codex resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>diff --git a/commands/multi-execute.md b/commands/multi-execute.mdindex 2c0ac1c45..c70349d2d 100644--- a/commands/multi-execute.md+++ b/commands/multi-execute.md@@ -29,7 +29,7 @@ $ARGUMENTS```# Resume session call (recommended) - Implementation PrototypeBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|antigravity> resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|antigravity> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <task description>@@ -44,7 +44,7 @@ EOF",# New session call - Implementation PrototypeBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|antigravity> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|antigravity> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <task description>@@ -62,7 +62,7 @@ EOF",```Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|antigravity> resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|antigravity> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Scope: Audit the final code changes.diff --git a/commands/multi-frontend.md b/commands/multi-frontend.mdindex 939dc5afe..5807823bf 100644--- a/commands/multi-frontend.md+++ b/commands/multi-frontend.md@@ -38,7 +38,7 @@ You are the **Frontend Orchestrator**, coordinating multi-model collaboration fo```# New session callBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend antigravity - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend antigravity - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>@@ -53,7 +53,7 @@ EOF",# Resume session callBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend antigravity resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend antigravity resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>diff --git a/commands/multi-plan.md b/commands/multi-plan.mdindex 3b4920761..ac9e5c259 100644--- a/commands/multi-plan.md+++ b/commands/multi-plan.md@@ -28,7 +28,7 @@ $ARGUMENTS```Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|antigravity> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|antigravity> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement>diff --git a/commands/multi-workflow.md b/commands/multi-workflow.mdindex 5aad6cb4f..b5595e943 100644--- a/commands/multi-workflow.md+++ b/commands/multi-workflow.md@@ -42,7 +42,7 @@ You are the **Orchestrator**, coordinating a multi-model collaborative system (R```# New session callBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|antigravity> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|antigravity> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>@@ -57,7 +57,7 @@ EOF",# Resume session callBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|antigravity> resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|antigravity> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (or $ARGUMENTS if not enhanced)>diff --git a/docs/ja-JP/commands/multi-backend.md b/docs/ja-JP/commands/multi-backend.mdindex 17ce771fc..99787725e 100644--- a/docs/ja-JP/commands/multi-backend.md+++ b/docs/ja-JP/commands/multi-backend.md@@ -34,7 +34,7 @@```# 新規セッション呼び出しBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend codex - \"$PWD\" <<'EOF'ROLE_FILE: <ロールプロンプトパス><TASK>Requirement: <強化された要件(または強化されていない場合は$ARGUMENTS)>@@ -49,7 +49,7 @@ EOF",# セッション再開呼び出しBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend codex resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <ロールプロンプトパス><TASK>Requirement: <強化された要件(または強化されていない場合は$ARGUMENTS)>diff --git a/docs/ja-JP/commands/multi-execute.md b/docs/ja-JP/commands/multi-execute.mdindex 393b8f1b3..d45ca8228 100644--- a/docs/ja-JP/commands/multi-execute.md+++ b/docs/ja-JP/commands/multi-execute.md@@ -25,7 +25,7 @@ $ARGUMENTS```# セッション再開呼び出し(推奨) - 実装プロトタイプBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <ロールプロンプトパス><TASK>Requirement: <タスクの説明>@@ -40,7 +40,7 @@ EOF",# 新規セッション呼び出し - 実装プロトタイプBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> - \"$PWD\" <<'EOF'ROLE_FILE: <ロールプロンプトパス><TASK>Requirement: <タスクの説明>@@ -58,7 +58,7 @@ EOF",```Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <ロールプロンプトパス><TASK>Scope: 最終的なコード変更を監査。@@ -80,7 +80,7 @@ EOF",```**モデルパラメータの注意事項**:-- `{{GEMINI_MODEL_FLAG}}`: `--backend gemini`を使用する場合、`--gemini-model gemini-3-pro-preview`で置き換える(末尾のスペースに注意); codexの場合は空文字列を使用+- ``: `--backend gemini`を使用する場合、`--gemini-model gemini-3-pro-preview`で置き換える(末尾のスペースに注意); codexの場合は空文字列を使用**ロールプロンプト**:diff --git a/docs/ja-JP/commands/multi-frontend.md b/docs/ja-JP/commands/multi-frontend.mdindex 3d2360b5c..9dbdff02c 100644--- a/docs/ja-JP/commands/multi-frontend.md+++ b/docs/ja-JP/commands/multi-frontend.md@@ -34,7 +34,7 @@```# 新規セッション呼び出しBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend gemini --gemini-model gemini-3-pro-preview - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend gemini --gemini-model gemini-3-pro-preview - \"$PWD\" <<'EOF'ROLE_FILE: <ロールプロンプトパス><TASK>Requirement: <強化された要件(または強化されていない場合は$ARGUMENTS)>@@ -49,7 +49,7 @@ EOF",# セッション再開呼び出しBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend gemini --gemini-model gemini-3-pro-preview resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend gemini --gemini-model gemini-3-pro-preview resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <ロールプロンプトパス><TASK>Requirement: <強化された要件(または強化されていない場合は$ARGUMENTS)>diff --git a/docs/ja-JP/commands/multi-plan.md b/docs/ja-JP/commands/multi-plan.mdindex 433595745..5bd2095c0 100644--- a/docs/ja-JP/commands/multi-plan.md+++ b/docs/ja-JP/commands/multi-plan.md@@ -24,7 +24,7 @@ $ARGUMENTS```Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> - \"$PWD\" <<'EOF'ROLE_FILE: <ロールプロンプトパス><TASK>Requirement: <強化された要件>@@ -39,7 +39,7 @@ EOF",```**モデルパラメータの注意事項**:-- `{{GEMINI_MODEL_FLAG}}`: `--backend gemini`を使用する場合、`--gemini-model gemini-3-pro-preview`で置き換える(末尾のスペースに注意); codexの場合は空文字列を使用+- ``: `--backend gemini`を使用する場合、`--gemini-model gemini-3-pro-preview`で置き換える(末尾のスペースに注意); codexの場合は空文字列を使用**ロールプロンプト**:diff --git a/docs/ja-JP/commands/multi-workflow.md b/docs/ja-JP/commands/multi-workflow.mdindex d2eabf098..8d40355e9 100644--- a/docs/ja-JP/commands/multi-workflow.md+++ b/docs/ja-JP/commands/multi-workflow.md@@ -38,7 +38,7 @@```# 新規セッション呼び出しBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> - \"$PWD\" <<'EOF'ROLE_FILE: <ロールプロンプトパス><TASK>Requirement: <強化された要件(または強化されていない場合は$ARGUMENTS)>@@ -53,7 +53,7 @@ EOF",# セッション再開呼び出しBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <ロールプロンプトパス><TASK>Requirement: <強化された要件(または強化されていない場合は$ARGUMENTS)>@@ -68,7 +68,7 @@ EOF",```**モデルパラメータの注意事項**:-- `{{GEMINI_MODEL_FLAG}}`: `--backend gemini`を使用する場合、`--gemini-model gemini-3-pro-preview`で置き換える(末尾のスペースに注意); codexの場合は空文字列を使用+- ``: `--backend gemini`を使用する場合、`--gemini-model gemini-3-pro-preview`で置き換える(末尾のスペースに注意); codexの場合は空文字列を使用**ロールプロンプト**:diff --git a/docs/tr/commands/multi-backend.md b/docs/tr/commands/multi-backend.mdindex e551576e0..2f101fc55 100644--- a/docs/tr/commands/multi-backend.md+++ b/docs/tr/commands/multi-backend.md@@ -34,7 +34,7 @@ Backend odaklı iş akışı (Research → Ideation → Plan → Execute → Opt```# Yeni session çağrısıBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend codex - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (veya enhance edilmediyse $ARGUMENTS)>@@ -49,7 +49,7 @@ EOF",# Session devam ettirme çağrısıBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend codex resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (veya enhance edilmediyse $ARGUMENTS)>diff --git a/docs/tr/commands/multi-execute.md b/docs/tr/commands/multi-execute.mdindex a9490efb7..822bad2ab 100644--- a/docs/tr/commands/multi-execute.md+++ b/docs/tr/commands/multi-execute.md@@ -25,7 +25,7 @@ $ARGUMENTS```# Session devam ettirme çağrısı (önerilen) - Implementation PrototypeBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <task description>@@ -40,7 +40,7 @@ EOF",# Yeni session çağrısı - Implementation PrototypeBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <task description>@@ -58,7 +58,7 @@ EOF",```Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Scope: Audit the final code changes.@@ -80,7 +80,7 @@ EOF",```**Model Parametre Notları**:-- `{{GEMINI_MODEL_FLAG}}`: `--backend gemini` kullanırken, `--gemini-model gemini-3-pro-preview` ile değiştir (trailing space not edin); codex için boş string kullan+- ``: `--backend gemini` kullanırken, `--gemini-model gemini-3-pro-preview` ile değiştir (trailing space not edin); codex için boş string kullan**Role Prompts**:diff --git a/docs/tr/commands/multi-frontend.md b/docs/tr/commands/multi-frontend.mdindex babf3cf51..5d873eaa1 100644--- a/docs/tr/commands/multi-frontend.md+++ b/docs/tr/commands/multi-frontend.md@@ -34,7 +34,7 @@ Frontend odaklı iş akışı (Research → Ideation → Plan → Execute → Op```# Yeni session çağrısıBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend gemini --gemini-model gemini-3-pro-preview - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend gemini --gemini-model gemini-3-pro-preview - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (veya enhance edilmediyse $ARGUMENTS)>@@ -49,7 +49,7 @@ EOF",# Session devam ettirme çağrısıBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend gemini --gemini-model gemini-3-pro-preview resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend gemini --gemini-model gemini-3-pro-preview resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (veya enhance edilmediyse $ARGUMENTS)>diff --git a/docs/tr/commands/multi-plan.md b/docs/tr/commands/multi-plan.mdindex 30e9d1017..b5686a484 100644--- a/docs/tr/commands/multi-plan.md+++ b/docs/tr/commands/multi-plan.md@@ -24,7 +24,7 @@ $ARGUMENTS```Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement>@@ -39,7 +39,7 @@ EOF",```**Model Parametre Notları**:-- `{{GEMINI_MODEL_FLAG}}`: `--backend gemini` kullanırken, `--gemini-model gemini-3-pro-preview` ile değiştir (trailing space not edin); codex için boş string kullan+- ``: `--backend gemini` kullanırken, `--gemini-model gemini-3-pro-preview` ile değiştir (trailing space not edin); codex için boş string kullan**Role Prompts**:diff --git a/docs/tr/commands/multi-workflow.md b/docs/tr/commands/multi-workflow.mdindex 0e94a2c75..9e7db5796 100644--- a/docs/tr/commands/multi-workflow.md+++ b/docs/tr/commands/multi-workflow.md@@ -38,7 +38,7 @@ Kalite kontrol noktaları, MCP servisleri ve multi-model işbirliği ile yapıla```# Yeni session çağrısıBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (veya enhance edilmediyse $ARGUMENTS)>@@ -53,7 +53,7 @@ EOF",# Session devam ettirme çağrısıBash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement (veya enhance edilmediyse $ARGUMENTS)>@@ -68,7 +68,7 @@ EOF",```**Model Parametre Notları**:-- `{{GEMINI_MODEL_FLAG}}`: `--backend gemini` kullanırken, `--gemini-model gemini-3-pro-preview` ile değiştir (trailing space not edin); codex için boş string kullan+- ``: `--backend gemini` kullanırken, `--gemini-model gemini-3-pro-preview` ile değiştir (trailing space not edin); codex için boş string kullan**Role Prompts**:diff --git a/docs/zh-CN/commands/multi-backend.md b/docs/zh-CN/commands/multi-backend.mdindex 5eb5c6bac..6a3f2955d 100644--- a/docs/zh-CN/commands/multi-backend.md+++ b/docs/zh-CN/commands/multi-backend.md@@ -35,7 +35,7 @@```# 新会话调用Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend codex - \"$PWD\" <<'EOF'ROLE_FILE: <角色提示路径><TASK>需求: <增强后的需求(若未增强则为 $ARGUMENTS)>@@ -50,7 +50,7 @@ EOF",# 恢复会话调用Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend codex resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <角色提示路径><TASK>需求: <增强后的需求(若未增强则为 $ARGUMENTS)>diff --git a/docs/zh-CN/commands/multi-execute.md b/docs/zh-CN/commands/multi-execute.mdindex 83d067eb3..9ec056f03 100644--- a/docs/zh-CN/commands/multi-execute.md+++ b/docs/zh-CN/commands/multi-execute.md@@ -25,7 +25,7 @@ $ARGUMENTS```# 恢复会话调用(推荐)- 实现原型Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <task description>@@ -40,7 +40,7 @@ EOF",# 新建会话调用 - 实现原型Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <task description>@@ -58,7 +58,7 @@ EOF",```Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Scope: 审计最终的代码变更。@@ -81,7 +81,7 @@ EOF",**模型参数说明**:-* `{{GEMINI_MODEL_FLAG}}`:当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3-pro-preview`(注意尾随空格);对于 codex 使用空字符串+* ``:当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3-pro-preview`(注意尾随空格);对于 codex 使用空字符串**角色提示**:diff --git a/docs/zh-CN/commands/multi-frontend.md b/docs/zh-CN/commands/multi-frontend.mdindex cc52bf34b..5ce96d19b 100644--- a/docs/zh-CN/commands/multi-frontend.md+++ b/docs/zh-CN/commands/multi-frontend.md@@ -35,7 +35,7 @@```# 新会话调用Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend gemini --gemini-model gemini-3-pro-preview - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend gemini --gemini-model gemini-3-pro-preview - \"$PWD\" <<'EOF'ROLE_FILE: <角色提示文件路径><TASK>需求: <增强后的需求(若未增强则为$ARGUMENTS)>@@ -50,7 +50,7 @@ EOF",# 恢复会话调用Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend gemini --gemini-model gemini-3-pro-preview resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend gemini --gemini-model gemini-3-pro-preview resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <角色提示文件路径><TASK>需求: <增强后的需求(若未增强则为$ARGUMENTS)>diff --git a/docs/zh-CN/commands/multi-plan.md b/docs/zh-CN/commands/multi-plan.mdindex 46e60fb7a..005ef9088 100644--- a/docs/zh-CN/commands/multi-plan.md+++ b/docs/zh-CN/commands/multi-plan.md@@ -24,7 +24,7 @@ $ARGUMENTS```Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> - \"$PWD\" <<'EOF'ROLE_FILE: <role prompt path><TASK>Requirement: <enhanced requirement>@@ -40,7 +40,7 @@ EOF",**模型参数说明**:-* `{{GEMINI_MODEL_FLAG}}`: 当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3-pro-preview`(注意尾随空格);对于 codex 使用空字符串+* ``: 当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3-pro-preview`(注意尾随空格);对于 codex 使用空字符串**角色提示**:diff --git a/docs/zh-CN/commands/multi-workflow.md b/docs/zh-CN/commands/multi-workflow.mdindex c29e661fc..48a7c9ba3 100644--- a/docs/zh-CN/commands/multi-workflow.md+++ b/docs/zh-CN/commands/multi-workflow.md@@ -39,7 +39,7 @@```# 新会话调用Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}- \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> - \"$PWD\" <<'EOF'ROLE_FILE: <角色提示文件路径><TASK>需求: <增强后的需求(如未增强则为$ARGUMENTS)>@@ -54,7 +54,7 @@ EOF",# 恢复会话调用Bash({- command: "~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend <codex|gemini> {{GEMINI_MODEL_FLAG}}resume <SESSION_ID> - \"$PWD\" <<'EOF'+ command: "~/.claude/bin/codeagent-wrapper --backend <codex|gemini> resume <SESSION_ID> - \"$PWD\" <<'EOF'ROLE_FILE: <角色提示文件路径><TASK>需求: <增强后的需求(如未增强则为$ARGUMENTS)>@@ -70,7 +70,7 @@ EOF",**模型参数说明**:-* `{{GEMINI_MODEL_FLAG}}`: 当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3-pro-preview`(注意末尾空格);对于 codex 使用空字符串+* ``: 当使用 `--backend gemini` 时,替换为 `--gemini-model gemini-3-pro-preview`(注意末尾空格);对于 codex 使用空字符串**角色提示词**:diff --git a/tests/commands/multi-model-wrapper-tokens.test.js b/tests/commands/multi-model-wrapper-tokens.test.jsnew file mode 100644index 000000000..f604d758b--- /dev/null+++ b/tests/commands/multi-model-wrapper-tokens.test.js@@ -0,0 +1,95 @@+'use strict';++// Regression test for #3595: the multi-* commands ship codeagent-wrapper+// calls copied from ccg-workflow templates. ccg-workflow's installer+// substitutes {{LITE_MODE_FLAG}} and {{GEMINI_MODEL_FLAG}} at install time;+// ECC has no such step, so an unrendered token reaches bash as a literal+// argument and the wrapper exits 1 on every call.++const assert = require('assert');+const fs = require('fs');+const path = require('path');++const repoRoot = path.resolve(__dirname, '..', '..');+const commandsDir = path.join(repoRoot, 'commands');+const docsDir = path.join(repoRoot, 'docs');++const WRAPPER = 'codeagent-wrapper';+const TEMPLATE_TOKEN = /\{\{[A-Z0-9_]+\}\}/;++let passed = 0;+let failed = 0;++function test(name, fn) {+ try {+ fn();+ console.log(` PASS ${name}`);+ passed++;+ } catch (error) {+ console.log(` FAIL ${name}`);+ console.log(` Error: ${error.message}`);+ failed++;+ }+}++function listMultiCommandFiles(dir) {+ if (!fs.existsSync(dir)) return [];+ return fs+ .readdirSync(dir)+ .filter(fileName => /^multi-.*\.md$/.test(fileName))+ .map(fileName => path.join(dir, fileName))+ .sort();+}++function listTranslatedCommandDirs() {+ return fs+ .readdirSync(docsDir, { withFileTypes: true })+ .filter(entry => entry.isDirectory())+ .map(entry => path.join(docsDir, entry.name, 'commands'))+ .filter(dir => fs.existsSync(dir));+}++function findWrapperTokenLines(filePath) {+ const lines = fs.readFileSync(filePath, 'utf8').split(/\r?\n/);+ const hits = [];+ lines.forEach((line, index) => {+ if (line.includes(WRAPPER) && TEMPLATE_TOKEN.test(line)) {+ hits.push(`${path.relative(repoRoot, filePath)}:${index + 1}`);+ }+ });+ return hits;+}++console.log('\n=== Testing multi-* command wrapper invocations ===\n');++test('token scanner flags an unrendered ccg-workflow placeholder', () => {+ const line = '~/.claude/bin/codeagent-wrapper {{LITE_MODE_FLAG}}--backend codex - "$PWD"';+ assert.ok(TEMPLATE_TOKEN.test(line));+ assert.ok(!TEMPLATE_TOKEN.test('~/.claude/bin/codeagent-wrapper --backend codex - "$PWD"'));+});++test('commands/multi-*.md exist and call codeagent-wrapper', () => {+ const files = listMultiCommandFiles(commandsDir);+ assert.ok(files.length >= 5, `expected at least 5 multi-* commands, found ${files.length}`);+ for (const file of files) {+ const content = fs.readFileSync(file, 'utf8');+ assert.ok(content.includes(WRAPPER), `${path.relative(repoRoot, file)} does not call ${WRAPPER}`);+ }+});++test('commands/multi-*.md pass no {{TEMPLATE}} tokens to codeagent-wrapper', () => {+ const hits = listMultiCommandFiles(commandsDir).flatMap(findWrapperTokenLines);+ assert.deepStrictEqual(hits, [], `unrendered template tokens at:\n${hits.join('\n')}`);+});++test('translated docs/*/commands/multi-*.md pass no {{TEMPLATE}} tokens to codeagent-wrapper', () => {+ const hits = listTranslatedCommandDirs().flatMap(listMultiCommandFiles).flatMap(findWrapperTokenLines);+ assert.deepStrictEqual(hits, [], `unrendered template tokens at:\n${hits.join('\n')}`);+});++if (failed > 0) {+ console.log(`\nFailed: ${failed}`);+ process.exit(1);+}++console.log(`\nPassed: ${passed}`);