mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
refactor: replace Code Index MCP with native CCW CodexLens
Migrate all Code Index MCP references to CCW's built-in CodexLens tool: - Update context-search-agent with codex_lens API calls - Update test-context-search-agent with new search patterns - Update memory/load command file discovery reference - Update context-gather and task-generate-tdd MCP capabilities - Update INSTALL docs to reflect CodexLens as built-in feature - Sync all mirrored files in skills/command-guide/reference/ Old API (mcp__code-index__*) → New API (mcp__ccw-tools__codex_lens) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,19 +44,19 @@ You are a context discovery specialist focused on gathering relevant project inf
|
|||||||
**Use**: Unfamiliar APIs/libraries/patterns
|
**Use**: Unfamiliar APIs/libraries/patterns
|
||||||
|
|
||||||
### 3. Existing Code Discovery
|
### 3. Existing Code Discovery
|
||||||
**Primary (Code-Index MCP)**:
|
**Primary (CCW CodexLens MCP)**:
|
||||||
- `mcp__code-index__set_project_path()` - Initialize index
|
- `mcp__ccw-tools__codex_lens(action="init", path=".")` - Initialize index
|
||||||
- `mcp__code-index__find_files(pattern)` - File pattern matching
|
- `mcp__ccw-tools__codex_lens(action="search", query="pattern")` - Content search
|
||||||
- `mcp__code-index__search_code_advanced()` - Content search
|
- `mcp__ccw-tools__codex_lens(action="search_files", query="pattern")` - File search (paths only)
|
||||||
- `mcp__code-index__get_file_summary()` - File structure analysis
|
- `mcp__ccw-tools__codex_lens(action="symbol", file="path")` - File structure analysis
|
||||||
- `mcp__code-index__refresh_index()` - Update index
|
- `mcp__ccw-tools__codex_lens(action="update", files=[...])` - Update specific files
|
||||||
|
|
||||||
**Fallback (CLI)**:
|
**Fallback (CLI)**:
|
||||||
- `rg` (ripgrep) - Fast content search
|
- `rg` (ripgrep) - Fast content search
|
||||||
- `find` - File discovery
|
- `find` - File discovery
|
||||||
- `Grep` - Pattern matching
|
- `Grep` - Pattern matching
|
||||||
|
|
||||||
**Priority**: Code-Index MCP > ripgrep > find > grep
|
**Priority**: CodexLens MCP > ripgrep > find > grep
|
||||||
|
|
||||||
## Simplified Execution Process (3 Phases)
|
## Simplified Execution Process (3 Phases)
|
||||||
|
|
||||||
@@ -77,9 +77,8 @@ if (file_exists(contextPackagePath)) {
|
|||||||
|
|
||||||
**1.2 Foundation Setup**:
|
**1.2 Foundation Setup**:
|
||||||
```javascript
|
```javascript
|
||||||
// 1. Initialize Code Index (if available)
|
// 1. Initialize CodexLens (if available)
|
||||||
mcp__code-index__set_project_path(process.cwd())
|
mcp__ccw-tools__codex_lens({ action: "init", path: "." })
|
||||||
mcp__code-index__refresh_index()
|
|
||||||
|
|
||||||
// 2. Project Structure
|
// 2. Project Structure
|
||||||
bash(ccw tool exec get_modules_by_depth '{}')
|
bash(ccw tool exec get_modules_by_depth '{}')
|
||||||
@@ -212,18 +211,18 @@ mcp__exa__web_search_exa({
|
|||||||
|
|
||||||
**Layer 1: File Pattern Discovery**
|
**Layer 1: File Pattern Discovery**
|
||||||
```javascript
|
```javascript
|
||||||
// Primary: Code-Index MCP
|
// Primary: CodexLens MCP
|
||||||
const files = mcp__code-index__find_files("*{keyword}*")
|
const files = mcp__ccw-tools__codex_lens({ action: "search_files", query: "*{keyword}*" })
|
||||||
// Fallback: find . -iname "*{keyword}*" -type f
|
// Fallback: find . -iname "*{keyword}*" -type f
|
||||||
```
|
```
|
||||||
|
|
||||||
**Layer 2: Content Search**
|
**Layer 2: Content Search**
|
||||||
```javascript
|
```javascript
|
||||||
// Primary: Code-Index MCP
|
// Primary: CodexLens MCP
|
||||||
mcp__code-index__search_code_advanced({
|
mcp__ccw-tools__codex_lens({
|
||||||
pattern: "{keyword}",
|
action: "search",
|
||||||
file_pattern: "*.ts",
|
query: "{keyword}",
|
||||||
output_mode: "files_with_matches"
|
path: "."
|
||||||
})
|
})
|
||||||
// Fallback: rg "{keyword}" -t ts --files-with-matches
|
// Fallback: rg "{keyword}" -t ts --files-with-matches
|
||||||
```
|
```
|
||||||
@@ -231,11 +230,10 @@ mcp__code-index__search_code_advanced({
|
|||||||
**Layer 3: Semantic Patterns**
|
**Layer 3: Semantic Patterns**
|
||||||
```javascript
|
```javascript
|
||||||
// Find definitions (class, interface, function)
|
// Find definitions (class, interface, function)
|
||||||
mcp__code-index__search_code_advanced({
|
mcp__ccw-tools__codex_lens({
|
||||||
pattern: "^(export )?(class|interface|type|function) .*{keyword}",
|
action: "search",
|
||||||
regex: true,
|
query: "^(export )?(class|interface|type|function) .*{keyword}",
|
||||||
output_mode: "content",
|
path: "."
|
||||||
context_lines: 2
|
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -243,21 +241,22 @@ mcp__code-index__search_code_advanced({
|
|||||||
```javascript
|
```javascript
|
||||||
// Get file summaries for imports/exports
|
// Get file summaries for imports/exports
|
||||||
for (const file of discovered_files) {
|
for (const file of discovered_files) {
|
||||||
const summary = mcp__code-index__get_file_summary(file)
|
const summary = mcp__ccw-tools__codex_lens({ action: "symbol", file: file })
|
||||||
// summary: {imports, functions, classes, line_count}
|
// summary: {symbols: [{name, type, line}]}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**Layer 5: Config & Tests**
|
**Layer 5: Config & Tests**
|
||||||
```javascript
|
```javascript
|
||||||
// Config files
|
// Config files
|
||||||
mcp__code-index__find_files("*.config.*")
|
mcp__ccw-tools__codex_lens({ action: "search_files", query: "*.config.*" })
|
||||||
mcp__code-index__find_files("package.json")
|
mcp__ccw-tools__codex_lens({ action: "search_files", query: "package.json" })
|
||||||
|
|
||||||
// Tests
|
// Tests
|
||||||
mcp__code-index__search_code_advanced({
|
mcp__ccw-tools__codex_lens({
|
||||||
pattern: "(describe|it|test).*{keyword}",
|
action: "search",
|
||||||
file_pattern: "*.{test,spec}.*"
|
query: "(describe|it|test).*{keyword}",
|
||||||
|
path: "."
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -560,14 +559,14 @@ Output: .workflow/session/{session}/.process/context-package.json
|
|||||||
- Expose sensitive data (credentials, keys)
|
- Expose sensitive data (credentials, keys)
|
||||||
- Exceed file limits (50 total)
|
- Exceed file limits (50 total)
|
||||||
- Include binaries/generated files
|
- Include binaries/generated files
|
||||||
- Use ripgrep if code-index available
|
- Use ripgrep if CodexLens available
|
||||||
|
|
||||||
**ALWAYS**:
|
**ALWAYS**:
|
||||||
- Initialize code-index in Phase 0
|
- Initialize CodexLens in Phase 0
|
||||||
- Execute get_modules_by_depth.sh
|
- Execute get_modules_by_depth.sh
|
||||||
- Load CLAUDE.md/README.md (unless in memory)
|
- Load CLAUDE.md/README.md (unless in memory)
|
||||||
- Execute all 3 discovery tracks
|
- Execute all 3 discovery tracks
|
||||||
- Use code-index MCP as primary
|
- Use CodexLens MCP as primary
|
||||||
- Fallback to ripgrep only when needed
|
- Fallback to ripgrep only when needed
|
||||||
- Use Exa for unfamiliar APIs
|
- Use Exa for unfamiliar APIs
|
||||||
- Apply multi-factor scoring
|
- Apply multi-factor scoring
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ You are a test context discovery specialist focused on gathering test coverage i
|
|||||||
**Use**: Phase 1 source context loading
|
**Use**: Phase 1 source context loading
|
||||||
|
|
||||||
### 2. Test Coverage Discovery
|
### 2. Test Coverage Discovery
|
||||||
**Primary (Code-Index MCP)**:
|
**Primary (CCW CodexLens MCP)**:
|
||||||
- `mcp__code-index__find_files(pattern)` - Find test files (*.test.*, *.spec.*)
|
- `mcp__ccw-tools__codex_lens(action="search_files", query="*.test.*")` - Find test files
|
||||||
- `mcp__code-index__search_code_advanced()` - Search test patterns
|
- `mcp__ccw-tools__codex_lens(action="search", query="pattern")` - Search test patterns
|
||||||
- `mcp__code-index__get_file_summary()` - Analyze test structure
|
- `mcp__ccw-tools__codex_lens(action="symbol", file="path")` - Analyze test structure
|
||||||
|
|
||||||
**Fallback (CLI)**:
|
**Fallback (CLI)**:
|
||||||
- `rg` (ripgrep) - Fast test pattern search
|
- `rg` (ripgrep) - Fast test pattern search
|
||||||
@@ -120,9 +120,10 @@ for (const summary_path of summaries) {
|
|||||||
|
|
||||||
**2.1 Existing Test Discovery**:
|
**2.1 Existing Test Discovery**:
|
||||||
```javascript
|
```javascript
|
||||||
// Method 1: Code-Index MCP (preferred)
|
// Method 1: CodexLens MCP (preferred)
|
||||||
const test_files = mcp__code-index__find_files({
|
const test_files = mcp__ccw-tools__codex_lens({
|
||||||
patterns: ["*.test.*", "*.spec.*", "*test_*.py", "*_test.go"]
|
action: "search_files",
|
||||||
|
query: "*.test.* OR *.spec.* OR test_*.py OR *_test.go"
|
||||||
});
|
});
|
||||||
|
|
||||||
// Method 2: Fallback CLI
|
// Method 2: Fallback CLI
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ The command fully delegates to **universal-executor agent**, which autonomously:
|
|||||||
1. **Analyzes Project Structure**: Executes `get_modules_by_depth.sh` to understand architecture
|
1. **Analyzes Project Structure**: Executes `get_modules_by_depth.sh` to understand architecture
|
||||||
2. **Loads Documentation**: Reads CLAUDE.md, README.md and other key docs
|
2. **Loads Documentation**: Reads CLAUDE.md, README.md and other key docs
|
||||||
3. **Extracts Keywords**: Derives core keywords from task description
|
3. **Extracts Keywords**: Derives core keywords from task description
|
||||||
4. **Discovers Files**: Uses MCP code-index or rg/find to locate relevant files
|
4. **Discovers Files**: Uses CodexLens MCP or rg/find to locate relevant files
|
||||||
5. **CLI Deep Analysis**: Executes Gemini/Qwen CLI for deep context analysis
|
5. **CLI Deep Analysis**: Executes Gemini/Qwen CLI for deep context analysis
|
||||||
6. **Generates Content Package**: Returns structured JSON core content package
|
6. **Generates Content Package**: Returns structured JSON core content package
|
||||||
|
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ Execute complete context-search-agent workflow for implementation planning:
|
|||||||
### Phase 1: Initialization & Pre-Analysis
|
### Phase 1: Initialization & Pre-Analysis
|
||||||
1. **Project State Loading**: Read and parse `.workflow/project.json`. Use its `overview` section as the foundational `project_context`. This is your primary source for architecture, tech stack, and key components. If file doesn't exist, proceed with fresh analysis.
|
1. **Project State Loading**: Read and parse `.workflow/project.json`. Use its `overview` section as the foundational `project_context`. This is your primary source for architecture, tech stack, and key components. If file doesn't exist, proceed with fresh analysis.
|
||||||
2. **Detection**: Check for existing context-package (early exit if valid)
|
2. **Detection**: Check for existing context-package (early exit if valid)
|
||||||
3. **Foundation**: Initialize code-index, get project structure, load docs
|
3. **Foundation**: Initialize CodexLens, get project structure, load docs
|
||||||
4. **Analysis**: Extract keywords, determine scope, classify complexity based on task description and project state
|
4. **Analysis**: Extract keywords, determine scope, classify complexity based on task description and project state
|
||||||
|
|
||||||
### Phase 2: Multi-Source Context Discovery
|
### Phase 2: Multi-Source Context Discovery
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ Phase 2: Agent Execution (Document Generation)
|
|||||||
// Existing test patterns and coverage analysis
|
// Existing test patterns and coverage analysis
|
||||||
},
|
},
|
||||||
"mcp_capabilities": {
|
"mcp_capabilities": {
|
||||||
"code_index": true,
|
"codex_lens": true,
|
||||||
"exa_code": true,
|
"exa_code": true,
|
||||||
"exa_web": true
|
"exa_web": true
|
||||||
}
|
}
|
||||||
@@ -338,7 +338,7 @@ Generate all three documents and report completion status:
|
|||||||
- TDD cycles configured: N cycles with quantified test cases
|
- TDD cycles configured: N cycles with quantified test cases
|
||||||
- Artifacts integrated: synthesis-spec, guidance-specification, N role analyses
|
- Artifacts integrated: synthesis-spec, guidance-specification, N role analyses
|
||||||
- Test context integrated: existing patterns and coverage
|
- Test context integrated: existing patterns and coverage
|
||||||
- MCP enhancements: code-index, exa-research
|
- MCP enhancements: CodexLens, exa-research
|
||||||
- Session ready for TDD execution: /workflow:execute
|
- Session ready for TDD execution: /workflow:execute
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -44,19 +44,19 @@ You are a context discovery specialist focused on gathering relevant project inf
|
|||||||
**Use**: Unfamiliar APIs/libraries/patterns
|
**Use**: Unfamiliar APIs/libraries/patterns
|
||||||
|
|
||||||
### 3. Existing Code Discovery
|
### 3. Existing Code Discovery
|
||||||
**Primary (Code-Index MCP)**:
|
**Primary (CCW CodexLens MCP)**:
|
||||||
- `mcp__code-index__set_project_path()` - Initialize index
|
- `mcp__ccw-tools__codex_lens(action="init", path=".")` - Initialize index
|
||||||
- `mcp__code-index__find_files(pattern)` - File pattern matching
|
- `mcp__ccw-tools__codex_lens(action="search", query="pattern")` - Content search
|
||||||
- `mcp__code-index__search_code_advanced()` - Content search
|
- `mcp__ccw-tools__codex_lens(action="search_files", query="pattern")` - File search (paths only)
|
||||||
- `mcp__code-index__get_file_summary()` - File structure analysis
|
- `mcp__ccw-tools__codex_lens(action="symbol", file="path")` - File structure analysis
|
||||||
- `mcp__code-index__refresh_index()` - Update index
|
- `mcp__ccw-tools__codex_lens(action="update", files=[...])` - Update specific files
|
||||||
|
|
||||||
**Fallback (CLI)**:
|
**Fallback (CLI)**:
|
||||||
- `rg` (ripgrep) - Fast content search
|
- `rg` (ripgrep) - Fast content search
|
||||||
- `find` - File discovery
|
- `find` - File discovery
|
||||||
- `Grep` - Pattern matching
|
- `Grep` - Pattern matching
|
||||||
|
|
||||||
**Priority**: Code-Index MCP > ripgrep > find > grep
|
**Priority**: CodexLens MCP > ripgrep > find > grep
|
||||||
|
|
||||||
## Simplified Execution Process (3 Phases)
|
## Simplified Execution Process (3 Phases)
|
||||||
|
|
||||||
@@ -77,9 +77,8 @@ if (file_exists(contextPackagePath)) {
|
|||||||
|
|
||||||
**1.2 Foundation Setup**:
|
**1.2 Foundation Setup**:
|
||||||
```javascript
|
```javascript
|
||||||
// 1. Initialize Code Index (if available)
|
// 1. Initialize CodexLens (if available)
|
||||||
mcp__code-index__set_project_path(process.cwd())
|
mcp__ccw-tools__codex_lens({ action: "init", path: "." })
|
||||||
mcp__code-index__refresh_index()
|
|
||||||
|
|
||||||
// 2. Project Structure
|
// 2. Project Structure
|
||||||
bash(ccw tool exec get_modules_by_depth '{}')
|
bash(ccw tool exec get_modules_by_depth '{}')
|
||||||
@@ -212,18 +211,18 @@ mcp__exa__web_search_exa({
|
|||||||
|
|
||||||
**Layer 1: File Pattern Discovery**
|
**Layer 1: File Pattern Discovery**
|
||||||
```javascript
|
```javascript
|
||||||
// Primary: Code-Index MCP
|
// Primary: CodexLens MCP
|
||||||
const files = mcp__code-index__find_files("*{keyword}*")
|
const files = mcp__ccw-tools__codex_lens({ action: "search_files", query: "*{keyword}*" })
|
||||||
// Fallback: find . -iname "*{keyword}*" -type f
|
// Fallback: find . -iname "*{keyword}*" -type f
|
||||||
```
|
```
|
||||||
|
|
||||||
**Layer 2: Content Search**
|
**Layer 2: Content Search**
|
||||||
```javascript
|
```javascript
|
||||||
// Primary: Code-Index MCP
|
// Primary: CodexLens MCP
|
||||||
mcp__code-index__search_code_advanced({
|
mcp__ccw-tools__codex_lens({
|
||||||
pattern: "{keyword}",
|
action: "search",
|
||||||
file_pattern: "*.ts",
|
query: "{keyword}",
|
||||||
output_mode: "files_with_matches"
|
path: "."
|
||||||
})
|
})
|
||||||
// Fallback: rg "{keyword}" -t ts --files-with-matches
|
// Fallback: rg "{keyword}" -t ts --files-with-matches
|
||||||
```
|
```
|
||||||
@@ -231,11 +230,10 @@ mcp__code-index__search_code_advanced({
|
|||||||
**Layer 3: Semantic Patterns**
|
**Layer 3: Semantic Patterns**
|
||||||
```javascript
|
```javascript
|
||||||
// Find definitions (class, interface, function)
|
// Find definitions (class, interface, function)
|
||||||
mcp__code-index__search_code_advanced({
|
mcp__ccw-tools__codex_lens({
|
||||||
pattern: "^(export )?(class|interface|type|function) .*{keyword}",
|
action: "search",
|
||||||
regex: true,
|
query: "^(export )?(class|interface|type|function) .*{keyword}",
|
||||||
output_mode: "content",
|
path: "."
|
||||||
context_lines: 2
|
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -243,21 +241,22 @@ mcp__code-index__search_code_advanced({
|
|||||||
```javascript
|
```javascript
|
||||||
// Get file summaries for imports/exports
|
// Get file summaries for imports/exports
|
||||||
for (const file of discovered_files) {
|
for (const file of discovered_files) {
|
||||||
const summary = mcp__code-index__get_file_summary(file)
|
const summary = mcp__ccw-tools__codex_lens({ action: "symbol", file: file })
|
||||||
// summary: {imports, functions, classes, line_count}
|
// summary: {symbols: [{name, type, line}]}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**Layer 5: Config & Tests**
|
**Layer 5: Config & Tests**
|
||||||
```javascript
|
```javascript
|
||||||
// Config files
|
// Config files
|
||||||
mcp__code-index__find_files("*.config.*")
|
mcp__ccw-tools__codex_lens({ action: "search_files", query: "*.config.*" })
|
||||||
mcp__code-index__find_files("package.json")
|
mcp__ccw-tools__codex_lens({ action: "search_files", query: "package.json" })
|
||||||
|
|
||||||
// Tests
|
// Tests
|
||||||
mcp__code-index__search_code_advanced({
|
mcp__ccw-tools__codex_lens({
|
||||||
pattern: "(describe|it|test).*{keyword}",
|
action: "search",
|
||||||
file_pattern: "*.{test,spec}.*"
|
query: "(describe|it|test).*{keyword}",
|
||||||
|
path: "."
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -560,14 +559,14 @@ Output: .workflow/session/{session}/.process/context-package.json
|
|||||||
- Expose sensitive data (credentials, keys)
|
- Expose sensitive data (credentials, keys)
|
||||||
- Exceed file limits (50 total)
|
- Exceed file limits (50 total)
|
||||||
- Include binaries/generated files
|
- Include binaries/generated files
|
||||||
- Use ripgrep if code-index available
|
- Use ripgrep if CodexLens available
|
||||||
|
|
||||||
**ALWAYS**:
|
**ALWAYS**:
|
||||||
- Initialize code-index in Phase 0
|
- Initialize CodexLens in Phase 0
|
||||||
- Execute get_modules_by_depth.sh
|
- Execute get_modules_by_depth.sh
|
||||||
- Load CLAUDE.md/README.md (unless in memory)
|
- Load CLAUDE.md/README.md (unless in memory)
|
||||||
- Execute all 3 discovery tracks
|
- Execute all 3 discovery tracks
|
||||||
- Use code-index MCP as primary
|
- Use CodexLens MCP as primary
|
||||||
- Fallback to ripgrep only when needed
|
- Fallback to ripgrep only when needed
|
||||||
- Use Exa for unfamiliar APIs
|
- Use Exa for unfamiliar APIs
|
||||||
- Apply multi-factor scoring
|
- Apply multi-factor scoring
|
||||||
|
|||||||
@@ -36,17 +36,17 @@ You are a test context discovery specialist focused on gathering test coverage i
|
|||||||
**Use**: Phase 1 source context loading
|
**Use**: Phase 1 source context loading
|
||||||
|
|
||||||
### 2. Test Coverage Discovery
|
### 2. Test Coverage Discovery
|
||||||
**Primary (Code-Index MCP)**:
|
**Primary (CCW CodexLens MCP)**:
|
||||||
- `mcp__code-index__find_files(pattern)` - Find test files (*.test.*, *.spec.*)
|
- `mcp__ccw-tools__codex_lens(action="search_files", query="*.test.*")` - Find test files
|
||||||
- `mcp__code-index__search_code_advanced()` - Search test patterns
|
- `mcp__ccw-tools__codex_lens(action="search", query="pattern")` - Search test patterns
|
||||||
- `mcp__code-index__get_file_summary()` - Analyze test structure
|
- `mcp__ccw-tools__codex_lens(action="symbol", file="path")` - Analyze test structure
|
||||||
|
|
||||||
**Fallback (CLI)**:
|
**Fallback (CLI)**:
|
||||||
- `rg` (ripgrep) - Fast test pattern search
|
- `rg` (ripgrep) - Fast test pattern search
|
||||||
- `find` - Test file discovery
|
- `find` - Test file discovery
|
||||||
- `Grep` - Framework detection
|
- `Grep` - Framework detection
|
||||||
|
|
||||||
**Priority**: Code-Index MCP > ripgrep > find > grep
|
**Priority**: CodexLens MCP > ripgrep > find > grep
|
||||||
|
|
||||||
### 3. Framework & Convention Analysis
|
### 3. Framework & Convention Analysis
|
||||||
**Tools**:
|
**Tools**:
|
||||||
@@ -120,9 +120,10 @@ for (const summary_path of summaries) {
|
|||||||
|
|
||||||
**2.1 Existing Test Discovery**:
|
**2.1 Existing Test Discovery**:
|
||||||
```javascript
|
```javascript
|
||||||
// Method 1: Code-Index MCP (preferred)
|
// Method 1: CodexLens MCP (preferred)
|
||||||
const test_files = mcp__code-index__find_files({
|
const test_files = mcp__ccw-tools__codex_lens({
|
||||||
patterns: ["*.test.*", "*.spec.*", "*test_*.py", "*_test.go"]
|
action: "search_files",
|
||||||
|
query: "*.test.* OR *.spec.* OR test_*.py OR *_test.go"
|
||||||
});
|
});
|
||||||
|
|
||||||
// Method 2: Fallback CLI
|
// Method 2: Fallback CLI
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ The command fully delegates to **universal-executor agent**, which autonomously:
|
|||||||
1. **Analyzes Project Structure**: Executes `get_modules_by_depth.sh` to understand architecture
|
1. **Analyzes Project Structure**: Executes `get_modules_by_depth.sh` to understand architecture
|
||||||
2. **Loads Documentation**: Reads CLAUDE.md, README.md and other key docs
|
2. **Loads Documentation**: Reads CLAUDE.md, README.md and other key docs
|
||||||
3. **Extracts Keywords**: Derives core keywords from task description
|
3. **Extracts Keywords**: Derives core keywords from task description
|
||||||
4. **Discovers Files**: Uses MCP code-index or rg/find to locate relevant files
|
4. **Discovers Files**: Uses CodexLens MCP or rg/find to locate relevant files
|
||||||
5. **CLI Deep Analysis**: Executes Gemini/Qwen CLI for deep context analysis
|
5. **CLI Deep Analysis**: Executes Gemini/Qwen CLI for deep context analysis
|
||||||
6. **Generates Content Package**: Returns structured JSON core content package
|
6. **Generates Content Package**: Returns structured JSON core content package
|
||||||
|
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ Execute complete context-search-agent workflow for implementation planning:
|
|||||||
### Phase 1: Initialization & Pre-Analysis
|
### Phase 1: Initialization & Pre-Analysis
|
||||||
1. **Project State Loading**: Read and parse `.workflow/project.json`. Use its `overview` section as the foundational `project_context`. This is your primary source for architecture, tech stack, and key components. If file doesn't exist, proceed with fresh analysis.
|
1. **Project State Loading**: Read and parse `.workflow/project.json`. Use its `overview` section as the foundational `project_context`. This is your primary source for architecture, tech stack, and key components. If file doesn't exist, proceed with fresh analysis.
|
||||||
2. **Detection**: Check for existing context-package (early exit if valid)
|
2. **Detection**: Check for existing context-package (early exit if valid)
|
||||||
3. **Foundation**: Initialize code-index, get project structure, load docs
|
3. **Foundation**: Initialize CodexLens, get project structure, load docs
|
||||||
4. **Analysis**: Extract keywords, determine scope, classify complexity based on task description and project state
|
4. **Analysis**: Extract keywords, determine scope, classify complexity based on task description and project state
|
||||||
|
|
||||||
### Phase 2: Multi-Source Context Discovery
|
### Phase 2: Multi-Source Context Discovery
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ Phase 2: Agent Execution (Document Generation)
|
|||||||
// Existing test patterns and coverage analysis
|
// Existing test patterns and coverage analysis
|
||||||
},
|
},
|
||||||
"mcp_capabilities": {
|
"mcp_capabilities": {
|
||||||
"code_index": true,
|
"codex_lens": true,
|
||||||
"exa_code": true,
|
"exa_code": true,
|
||||||
"exa_web": true
|
"exa_web": true
|
||||||
}
|
}
|
||||||
@@ -338,7 +338,7 @@ Generate all three documents and report completion status:
|
|||||||
- TDD cycles configured: N cycles with quantified test cases
|
- TDD cycles configured: N cycles with quantified test cases
|
||||||
- Artifacts integrated: synthesis-spec, guidance-specification, N role analyses
|
- Artifacts integrated: synthesis-spec, guidance-specification, N role analyses
|
||||||
- Test context integrated: existing patterns and coverage
|
- Test context integrated: existing patterns and coverage
|
||||||
- MCP enhancements: code-index, exa-research
|
- MCP enhancements: CodexLens, exa-research
|
||||||
- Session ready for TDD execution: /workflow:execute
|
- Session ready for TDD execution: /workflow:execute
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -171,9 +171,10 @@ MCP (Model Context Protocol) tools provide advanced codebase analysis. **Recomme
|
|||||||
| MCP Server | Purpose | Installation Guide |
|
| MCP Server | Purpose | Installation Guide |
|
||||||
|------------|---------|-------------------|
|
|------------|---------|-------------------|
|
||||||
| **Exa MCP** | External API patterns & best practices | [Install Guide](https://smithery.ai/server/exa) |
|
| **Exa MCP** | External API patterns & best practices | [Install Guide](https://smithery.ai/server/exa) |
|
||||||
| **Code Index MCP** | Advanced internal code search | [Install Guide](https://github.com/johnhuang316/code-index-mcp) |
|
|
||||||
| **Chrome DevTools MCP** | ⚠️ **Required for UI workflows** - URL mode design extraction | [Install Guide](https://github.com/ChromeDevTools/chrome-devtools-mcp) |
|
| **Chrome DevTools MCP** | ⚠️ **Required for UI workflows** - URL mode design extraction | [Install Guide](https://github.com/ChromeDevTools/chrome-devtools-mcp) |
|
||||||
|
|
||||||
|
> **Note**: Code Index MCP has been replaced by CCW's built-in **CodexLens** (`mcp__ccw-tools__codex_lens`). No additional installation required for code indexing.
|
||||||
|
|
||||||
⚠️ **Note**: Some workflows expect MCP tools to be available. Without them, you may experience:
|
⚠️ **Note**: Some workflows expect MCP tools to be available. Without them, you may experience:
|
||||||
- Slower code analysis and search operations
|
- Slower code analysis and search operations
|
||||||
- Reduced context quality in some scenarios
|
- Reduced context quality in some scenarios
|
||||||
|
|||||||
@@ -201,9 +201,10 @@ MCP 工具从外部来源提供高级上下文检索,增强 AI 的理解能力
|
|||||||
| 工具 | 用途 | 官方源码 |
|
| 工具 | 用途 | 官方源码 |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| **Exa MCP** | 用于搜索代码和网络。 | [exa-labs/exa-mcp-server](https://github.com/exa-labs/exa-mcp-server) |
|
| **Exa MCP** | 用于搜索代码和网络。 | [exa-labs/exa-mcp-server](https://github.com/exa-labs/exa-mcp-server) |
|
||||||
| **Code Index MCP** | 用于索引和搜索本地代码库。 |[johnhuang316/code-index-mcp](https://github.com/johnhuang316/code-index-mcp) |
|
|
||||||
| **Chrome DevTools MCP** | 用于与网页交互以提取布局和样式信息。 | [ChromeDevTools/chrome-devtools-mcp](https://github.com/ChromeDevTools/chrome-devtools-mcp) |
|
| **Chrome DevTools MCP** | 用于与网页交互以提取布局和样式信息。 | [ChromeDevTools/chrome-devtools-mcp](https://github.com/ChromeDevTools/chrome-devtools-mcp) |
|
||||||
|
|
||||||
|
> **注意**: Code Index MCP 已被 CCW 内置的 **CodexLens** (`mcp__ccw-tools__codex_lens`) 替代。无需额外安装代码索引工具。
|
||||||
|
|
||||||
- **先决条件**: Node.js 和 npm (或兼容的 JavaScript 运行时)。
|
- **先决条件**: Node.js 和 npm (或兼容的 JavaScript 运行时)。
|
||||||
- **验证**: 安装后,检查服务器是否可以启动 (具体请查阅 MCP 文档)。
|
- **验证**: 安装后,检查服务器是否可以启动 (具体请查阅 MCP 文档)。
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user