From ccb4490ed451fe4532feeff13df6fe1070a38858 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Sun, 16 Nov 2025 21:11:16 +0800 Subject: [PATCH] refactor(cli-tools): remove redundant model parameters for improved command clarity --- .claude/agents/cli-execution-agent.md | 6 +++--- .claude/agents/cli-planning-agent.md | 2 +- .claude/commands/workflow/lite-plan.md | 2 +- .../skills/command-guide/guides/cli-tools-guide.md | 12 ++++++------ .../command-guide/guides/implementation-details.md | 4 ++-- .../reference/agents/cli-execution-agent.md | 6 +++--- .../reference/agents/cli-planning-agent.md | 2 +- .../reference/commands/workflow/lite-plan.md | 2 +- .claude/workflows/intelligent-tools-strategy.md | 2 +- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.claude/agents/cli-execution-agent.md b/.claude/agents/cli-execution-agent.md index 3cd97ae0..71c4a697 100644 --- a/.claude/agents/cli-execution-agent.md +++ b/.claude/agents/cli-execution-agent.md @@ -162,15 +162,15 @@ RULES: $(cat ~/.claude/workflows/cli-templates/prompts/analysis/pattern.txt) **Gemini/Qwen (Write)**: ```bash -cd {dir} && gemini -p "..." -m gemini-2.5-flash --approval-mode yolo +cd {dir} && gemini -p "..." --approval-mode yolo ``` **Codex (Auto)**: ```bash -codex -C {dir} --full-auto exec "..." -m gpt-5 --skip-git-repo-check -s danger-full-access +codex -C {dir} --full-auto exec "..." --skip-git-repo-check -s danger-full-access # Resume: Add 'resume --last' after prompt -codex --full-auto exec "..." resume --last -m gpt-5 --skip-git-repo-check -s danger-full-access +codex --full-auto exec "..." resume --last --skip-git-repo-check -s danger-full-access ``` **Cross-Directory** (Gemini/Qwen): diff --git a/.claude/agents/cli-planning-agent.md b/.claude/agents/cli-planning-agent.md index 646e88f4..cb7e9905 100644 --- a/.claude/agents/cli-planning-agent.md +++ b/.claude/agents/cli-planning-agent.md @@ -136,7 +136,7 @@ RULES: $(cat ~/.claude/workflows/cli-templates/prompts/{template}) | - Consider previous iteration failures - Validate fix doesn't introduce new vulnerabilities - analysis=READ-ONLY -" -m {model} {timeout_flag} +" {timeout_flag} ``` **Layer-Specific Guidance Injection**: diff --git a/.claude/commands/workflow/lite-plan.md b/.claude/commands/workflow/lite-plan.md index 23ef7cc8..171ec9a9 100644 --- a/.claude/commands/workflow/lite-plan.md +++ b/.claude/commands/workflow/lite-plan.md @@ -709,7 +709,7 @@ MODE: analysis CONTEXT: @**/* | Memory: Review changes from lite-plan execution EXPECTED: Quality assessment with actionable recommendations RULES: $(cat ~/.claude/workflows/cli-templates/prompts/analysis/02-review-code-quality.txt) | Focus on recent changes | analysis=READ-ONLY -" -m {model} +" ``` **Expected Duration**: Varies by task complexity and execution method diff --git a/.claude/skills/command-guide/guides/cli-tools-guide.md b/.claude/skills/command-guide/guides/cli-tools-guide.md index 95e29760..28501a0d 100644 --- a/.claude/skills/command-guide/guides/cli-tools-guide.md +++ b/.claude/skills/command-guide/guides/cli-tools-guide.md @@ -78,7 +78,7 @@ cd src/auth && qwen -p " 追踪用户登录的完整执行流程, 从 API 入口到数据库查询, 列出所有调用的函数和依赖关系 -" -m coder-model +" ``` **工具输出**:Qwen 理解需求,自动追踪执行路径 @@ -278,7 +278,7 @@ codex -C src/auth --full-auto exec " **方式 1:CLI 工具语义调用**(推荐,灵活) - **用户输入**:`使用 gemini 分析这个项目的架构设计,识别主要模块、依赖关系和架构模式` -- **Claude Code 生成并执行**:`cd project-root && gemini -p "..." -m gemini-3-pro-preview-11-2025` +- **Claude Code 生成并执行**:`cd project-root && gemini -p "..."` **方式 2:Slash 命令** - **用户输入**:`/cli:analyze --tool gemini "分析项目架构"` @@ -291,7 +291,7 @@ codex -C src/auth --full-auto exec " **方式 1:CLI 工具语义调用** - **用户输入**:`让 codex 实现用户认证功能:注册(邮箱+密码+验证)、登录(JWT token)、刷新令牌,技术栈 Node.js + Express` -- **Claude Code 生成并执行**:`codex -C src/auth --full-auto exec "..." -m gpt-5 --skip-git-repo-check -s danger-full-access` +- **Claude Code 生成并执行**:`codex -C src/auth --full-auto exec "..." --skip-git-repo-check -s danger-full-access` **方式 2:Slash 命令**(工作流化) - **用户输入**:`/workflow:plan --agent "实现用户认证功能"` → `/workflow:execute` @@ -304,9 +304,9 @@ codex -C src/auth --full-auto exec " **方式 1:CLI 工具语义调用** - **用户输入**:`使用 gemini 诊断登录超时问题,分析处理流程、性能瓶颈、数据库查询效率` -- **Claude Code 生成并执行**:`cd src/auth && gemini -p "..." -m gemini-3-pro-preview-11-2025` +- **Claude Code 生成并执行**:`cd src/auth && gemini -p "..."` - **用户输入**:`让 codex 根据上述分析修复登录超时,优化查询、添加缓存` -- **Claude Code 生成并执行**:`codex -C src/auth --full-auto exec "..." -m gpt-5 --skip-git-repo-check -s danger-full-access` +- **Claude Code 生成并执行**:`codex -C src/auth --full-auto exec "..." --skip-git-repo-check -s danger-full-access` **方式 2:Slash 命令** - **用户输入**:`/cli:mode:bug-diagnosis --tool gemini "诊断登录超时"` → `/cli:execute --tool codex "修复登录超时"` @@ -319,7 +319,7 @@ codex -C src/auth --full-auto exec " **方式 1:CLI 工具语义调用** - **用户输入**:`使用 gemini 为 API 模块生成技术文档,包含端点说明、数据模型、使用示例` -- **Claude Code 生成并执行**:`cd src/api && gemini -p "..." -m gemini-3-pro-preview-11-2025 --approval-mode yolo` +- **Claude Code 生成并执行**:`cd src/api && gemini -p "..." --approval-mode yolo` **方式 2:Slash 命令** - **用户输入**:`/memory:docs src/api --tool gemini --mode full` diff --git a/.claude/skills/command-guide/guides/implementation-details.md b/.claude/skills/command-guide/guides/implementation-details.md index b96fcda3..c5ac2cab 100644 --- a/.claude/skills/command-guide/guides/implementation-details.md +++ b/.claude/skills/command-guide/guides/implementation-details.md @@ -762,7 +762,7 @@ async function executeCLIAnalysis(prompt) { // Execute gemini with analysis prompt using --include-directories // This allows gemini to access reference docs while maintaining correct file context - const command = `gemini -p "${escapePrompt(prompt)}" -m gemini-3-pro-preview-11-2025 --include-directories ${referencePath}`; + const command = `gemini -p "${escapePrompt(prompt)}" --include-directories ${referencePath}`; try { const result = await execBash(command, { timeout: 120000 }); // 2 min timeout @@ -770,7 +770,7 @@ async function executeCLIAnalysis(prompt) { } catch (error) { // Fallback to qwen if gemini fails console.warn('Gemini failed, falling back to qwen'); - const fallbackCmd = `qwen -p "${escapePrompt(prompt)}" -m coder-model --include-directories ${referencePath}`; + const fallbackCmd = `qwen -p "${escapePrompt(prompt)}" --include-directories ${referencePath}`; const result = await execBash(fallbackCmd, { timeout: 120000 }); return parseAnalysisResult(result.stdout); } diff --git a/.claude/skills/command-guide/reference/agents/cli-execution-agent.md b/.claude/skills/command-guide/reference/agents/cli-execution-agent.md index 3cd97ae0..71c4a697 100644 --- a/.claude/skills/command-guide/reference/agents/cli-execution-agent.md +++ b/.claude/skills/command-guide/reference/agents/cli-execution-agent.md @@ -162,15 +162,15 @@ RULES: $(cat ~/.claude/workflows/cli-templates/prompts/analysis/pattern.txt) **Gemini/Qwen (Write)**: ```bash -cd {dir} && gemini -p "..." -m gemini-2.5-flash --approval-mode yolo +cd {dir} && gemini -p "..." --approval-mode yolo ``` **Codex (Auto)**: ```bash -codex -C {dir} --full-auto exec "..." -m gpt-5 --skip-git-repo-check -s danger-full-access +codex -C {dir} --full-auto exec "..." --skip-git-repo-check -s danger-full-access # Resume: Add 'resume --last' after prompt -codex --full-auto exec "..." resume --last -m gpt-5 --skip-git-repo-check -s danger-full-access +codex --full-auto exec "..." resume --last --skip-git-repo-check -s danger-full-access ``` **Cross-Directory** (Gemini/Qwen): diff --git a/.claude/skills/command-guide/reference/agents/cli-planning-agent.md b/.claude/skills/command-guide/reference/agents/cli-planning-agent.md index 646e88f4..cb7e9905 100644 --- a/.claude/skills/command-guide/reference/agents/cli-planning-agent.md +++ b/.claude/skills/command-guide/reference/agents/cli-planning-agent.md @@ -136,7 +136,7 @@ RULES: $(cat ~/.claude/workflows/cli-templates/prompts/{template}) | - Consider previous iteration failures - Validate fix doesn't introduce new vulnerabilities - analysis=READ-ONLY -" -m {model} {timeout_flag} +" {timeout_flag} ``` **Layer-Specific Guidance Injection**: diff --git a/.claude/skills/command-guide/reference/commands/workflow/lite-plan.md b/.claude/skills/command-guide/reference/commands/workflow/lite-plan.md index 8d80aa90..6469074f 100644 --- a/.claude/skills/command-guide/reference/commands/workflow/lite-plan.md +++ b/.claude/skills/command-guide/reference/commands/workflow/lite-plan.md @@ -766,7 +766,7 @@ Time Estimate: ${planObject.estimated_time} EXPECTED: Complete implementation with tests and proper error handling RULES: $(cat ~/.claude/workflows/cli-templates/prompts/development/02-implement-feature.txt) | Follow approach strictly | Test thoroughly | write=CREATE/MODIFY/DELETE -" -m coder-model --approval-mode yolo +" --approval-mode yolo ``` **Execution with Progress Tracking**: diff --git a/.claude/workflows/intelligent-tools-strategy.md b/.claude/workflows/intelligent-tools-strategy.md index 13e48f62..618960a7 100644 --- a/.claude/workflows/intelligent-tools-strategy.md +++ b/.claude/workflows/intelligent-tools-strategy.md @@ -333,7 +333,7 @@ codex --full-auto exec "Add JWT refresh token validation" resume --last --skip-g 2. Explicitly reference external files in CONTEXT field with @ patterns 3. ⚠️ BOTH steps are MANDATORY -Example: `cd src/auth && gemini -p "CONTEXT: @**/* @../shared/**/*" -m gemini-2.5-pro --include-directories ../shared` +Example: `cd src/auth && gemini -p "CONTEXT: @**/* @../shared/**/*" --include-directories ../shared` **Rule**: If CONTEXT contains `@../dir/**/*`, command MUST include `--include-directories ../dir`