From 4d57f477177e686d11da6414c9ec992520631a8a Mon Sep 17 00:00:00 2001 From: catlog22 Date: Wed, 14 Jan 2026 22:00:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E4=BC=98=E5=85=88=E7=BA=A7=E6=8C=87=E5=8D=97?= =?UTF-8?q?=EF=BC=8C=E7=BB=9F=E4=B8=80=E6=A0=BC=E5=BC=8F=E4=BB=A5=E6=8F=90?= =?UTF-8?q?=E9=AB=98=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/agents/action-planning-agent.md | 2 +- .claude/agents/cli-discuss-agent.md | 2 +- .claude/agents/cli-execution-agent.md | 2 +- .claude/agents/cli-explore-agent.md | 2 +- .claude/agents/cli-lite-planning-agent.md | 1 + .claude/agents/cli-planning-agent.md | 1 + .claude/agents/code-developer.md | 2 +- .claude/agents/conceptual-planning-agent.md | 2 ++ .claude/agents/context-search-agent.md | 2 +- .claude/agents/debug-explore-agent.md | 2 +- .claude/agents/doc-generator.md | 2 +- .claude/agents/issue-plan-agent.md | 2 +- .claude/agents/issue-queue-agent.md | 3 ++- .claude/agents/memory-bridge.md | 2 ++ .claude/agents/test-context-search-agent.md | 2 ++ .claude/agents/test-fix-agent.md | 2 +- .claude/agents/ui-design-agent.md | 2 ++ .claude/agents/universal-executor.md | 2 +- 18 files changed, 23 insertions(+), 12 deletions(-) diff --git a/.claude/agents/action-planning-agent.md b/.claude/agents/action-planning-agent.md index b97206e7..9c2a90fa 100644 --- a/.claude/agents/action-planning-agent.md +++ b/.claude/agents/action-planning-agent.md @@ -855,7 +855,7 @@ Use `analysis_results.complexity` or task count to determine structure: ### 3.3 Guidelines Checklist **ALWAYS:** -- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) → Built-in (`Grep`, `Glob`, `Read`) +- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) - Apply Quantification Requirements to all requirements, acceptance criteria, and modification points - Load IMPL_PLAN template: `Read(~/.claude/workflows/cli-templates/prompts/workflow/impl-plan-template.txt)` before generating IMPL_PLAN.md - Use provided context package: Extract all information from structured context diff --git a/.claude/agents/cli-discuss-agent.md b/.claude/agents/cli-discuss-agent.md index 6fec43e8..b4ed039c 100644 --- a/.claude/agents/cli-discuss-agent.md +++ b/.claude/agents/cli-discuss-agent.md @@ -372,7 +372,7 @@ Write({ ## Key Reminders **ALWAYS**: -1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) → Built-in (`Grep`, `Glob`, `Read`) +1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) 2. Execute multiple CLIs for cross-verification 2. Parse CLI outputs with fallback extraction 3. Include file:line references in affected_files diff --git a/.claude/agents/cli-execution-agent.md b/.claude/agents/cli-execution-agent.md index 38b51dd6..c59bf8ed 100644 --- a/.claude/agents/cli-execution-agent.md +++ b/.claude/agents/cli-execution-agent.md @@ -65,7 +65,7 @@ Score = 0 ## Phase 2: Context Discovery -**Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) → Built-in (`Grep`, `Glob`, `Read`) +**Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) **1. Project Structure**: ```bash diff --git a/.claude/agents/cli-explore-agent.md b/.claude/agents/cli-explore-agent.md index 2c29b1a3..b4c8fd89 100644 --- a/.claude/agents/cli-explore-agent.md +++ b/.claude/agents/cli-explore-agent.md @@ -165,7 +165,7 @@ Brief summary: ## Key Reminders **ALWAYS**: -1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) → Built-in (`Grep`, `Glob`, `Read`) +1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) 2. Read schema file FIRST before generating any output (if schema specified) 2. Copy field names EXACTLY from schema (case-sensitive) 3. Verify root structure matches schema (array vs object) diff --git a/.claude/agents/cli-lite-planning-agent.md b/.claude/agents/cli-lite-planning-agent.md index 53497a65..86b39e96 100644 --- a/.claude/agents/cli-lite-planning-agent.md +++ b/.claude/agents/cli-lite-planning-agent.md @@ -428,6 +428,7 @@ function validateTask(task) { ## Key Reminders **ALWAYS**: +- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) - **Read schema first** to determine output structure - Generate task IDs (T1/T2 for plan, FIX1/FIX2 for fix-plan) - Include depends_on (even if empty []) diff --git a/.claude/agents/cli-planning-agent.md b/.claude/agents/cli-planning-agent.md index 55da9540..247ebc1c 100644 --- a/.claude/agents/cli-planning-agent.md +++ b/.claude/agents/cli-planning-agent.md @@ -436,6 +436,7 @@ See: `.process/iteration-{iteration}-cli-output.txt` ## Key Reminders **ALWAYS:** +- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) - **Validate context package**: Ensure all required fields present before CLI execution - **Handle CLI errors gracefully**: Use fallback chain (Gemini → Qwen → degraded mode) - **Parse CLI output structurally**: Extract specific sections (RCA, 修复建议, 验证建议) diff --git a/.claude/agents/code-developer.md b/.claude/agents/code-developer.md index 0bb82496..68f36dba 100644 --- a/.claude/agents/code-developer.md +++ b/.claude/agents/code-developer.md @@ -389,7 +389,7 @@ Before completing any task, verify: - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution **ALWAYS:** -- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) → Built-in (`Grep`, `Glob`, `Read`) +- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) - Verify module/package existence with rg/grep/search before referencing - Write working code incrementally - Test your implementation thoroughly diff --git a/.claude/agents/conceptual-planning-agent.md b/.claude/agents/conceptual-planning-agent.md index 27905ebe..a89ae158 100644 --- a/.claude/agents/conceptual-planning-agent.md +++ b/.claude/agents/conceptual-planning-agent.md @@ -27,6 +27,8 @@ You are a conceptual planning specialist focused on **dedicated single-role** st ## Core Responsibilities +**Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) + 1. **Dedicated Role Execution**: Execute exactly one assigned planning role perspective - no multi-role assignments 2. **Brainstorming Integration**: Integrate with auto brainstorm workflow for role-specific conceptual analysis 3. **Template-Driven Analysis**: Use planning role templates loaded via `$(cat template)` diff --git a/.claude/agents/context-search-agent.md b/.claude/agents/context-search-agent.md index b8bd495f..d101c2f5 100644 --- a/.claude/agents/context-search-agent.md +++ b/.claude/agents/context-search-agent.md @@ -565,7 +565,7 @@ Output: .workflow/session/{session}/.process/context-package.json - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution **ALWAYS**: -- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) → Built-in (`Grep`, `Glob`, `Read`) +- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) - Initialize CodexLens in Phase 0 - Execute get_modules_by_depth.sh - Load CLAUDE.md/README.md (unless in memory) diff --git a/.claude/agents/debug-explore-agent.md b/.claude/agents/debug-explore-agent.md index 62fb608a..ef76f41a 100644 --- a/.claude/agents/debug-explore-agent.md +++ b/.claude/agents/debug-explore-agent.md @@ -10,7 +10,7 @@ You are an intelligent debugging specialist that autonomously diagnoses bugs thr ## Tool Selection Hierarchy -**Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) → Built-in (`Grep`, `Glob`, `Read`) +**Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) 1. **Gemini (Primary)** - Log analysis, hypothesis validation, root cause reasoning 2. **Qwen (Fallback)** - Same capabilities as Gemini, use when unavailable diff --git a/.claude/agents/doc-generator.md b/.claude/agents/doc-generator.md index 5f98c08b..84cadf5a 100644 --- a/.claude/agents/doc-generator.md +++ b/.claude/agents/doc-generator.md @@ -311,7 +311,7 @@ Before completing the task, you must verify the following: ## Key Reminders **ALWAYS**: -- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) → Built-in (`Grep`, `Glob`, `Read`) +- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) - **Detect Mode**: Check `meta.cli_execute` to determine execution mode (Agent or CLI). - **Follow `flow_control`**: Execute the `pre_analysis` steps exactly as defined in the task JSON. - **Execute Commands Directly**: All commands are tool-specific and ready to run. diff --git a/.claude/agents/issue-plan-agent.md b/.claude/agents/issue-plan-agent.md index b416bd55..0aa942d8 100644 --- a/.claude/agents/issue-plan-agent.md +++ b/.claude/agents/issue-plan-agent.md @@ -308,7 +308,7 @@ Each line is a solution JSON containing tasks. Schema: `cat .claude/workflows/cl - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution **ALWAYS**: -1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) → Built-in (`Grep`, `Glob`, `Read`) +1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) 2. Read schema first: `cat .claude/workflows/cli-templates/schemas/solution-schema.json` 2. Use ACE semantic search as PRIMARY exploration tool 3. Fetch issue details via `ccw issue status --json` diff --git a/.claude/agents/issue-queue-agent.md b/.claude/agents/issue-queue-agent.md index 747428d5..78f760a9 100644 --- a/.claude/agents/issue-queue-agent.md +++ b/.claude/agents/issue-queue-agent.md @@ -275,7 +275,8 @@ Return brief summaries; full conflict details in separate files: - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution **ALWAYS**: -1. Build dependency graph before ordering +1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) +2. Build dependency graph before ordering 2. Detect file overlaps between solutions 3. Apply resolution rules consistently 4. Calculate semantic priority for all solutions diff --git a/.claude/agents/memory-bridge.md b/.claude/agents/memory-bridge.md index 57e7416a..7b732bd2 100644 --- a/.claude/agents/memory-bridge.md +++ b/.claude/agents/memory-bridge.md @@ -75,6 +75,8 @@ Examples: ## Execution Rules +**Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) + 1. **Task Tracking**: Create TodoWrite entry for each depth before execution 2. **Parallelism**: Max 4 jobs per depth, sequential across depths 3. **Strategy Assignment**: Assign strategy based on depth: diff --git a/.claude/agents/test-context-search-agent.md b/.claude/agents/test-context-search-agent.md index aebb514d..a90a1eab 100644 --- a/.claude/agents/test-context-search-agent.md +++ b/.claude/agents/test-context-search-agent.md @@ -28,6 +28,8 @@ You are a test context discovery specialist focused on gathering test coverage i ## Tool Arsenal +**Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) + ### 1. Session & Implementation Context **Tools**: - `Read()` - Load session metadata and implementation summaries diff --git a/.claude/agents/test-fix-agent.md b/.claude/agents/test-fix-agent.md index eaa58940..addd7a0d 100644 --- a/.claude/agents/test-fix-agent.md +++ b/.claude/agents/test-fix-agent.md @@ -332,7 +332,7 @@ When generating test results for orchestrator (saved to `.process/test-results.j ## Important Reminders **ALWAYS:** -- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) → Built-in (`Grep`, `Glob`, `Read`) +- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) - **Execute tests first** - Understand what's failing before fixing - **Diagnose thoroughly** - Find root cause, not just symptoms - **Fix minimally** - Change only what's needed to pass tests diff --git a/.claude/agents/ui-design-agent.md b/.claude/agents/ui-design-agent.md index b7057ecc..fbe8dabe 100644 --- a/.claude/agents/ui-design-agent.md +++ b/.claude/agents/ui-design-agent.md @@ -284,6 +284,8 @@ You execute 6 distinct task types organized into 3 patterns. Each task includes ### ALWAYS +**Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) + **W3C Format Compliance**: ✅ Include $schema in all token files | ✅ Use $type metadata for all tokens | ✅ Use $value wrapper for color (light/dark), duration, easing | ✅ Validate token structure against W3C spec **Pattern Recognition**: ✅ Identify pattern from [TASK_TYPE_IDENTIFIER] first | ✅ Apply pattern-specific execution rules | ✅ Follow autonomy level diff --git a/.claude/agents/universal-executor.md b/.claude/agents/universal-executor.md index 11743081..f725ee86 100644 --- a/.claude/agents/universal-executor.md +++ b/.claude/agents/universal-executor.md @@ -124,7 +124,7 @@ Before completing any task, verify: - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution **ALWAYS:** -- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) → Built-in (`Grep`, `Glob`, `Read`) +- **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`) - Verify resource/dependency existence before referencing - Execute tasks systematically and incrementally - Test and validate work thoroughly