mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-15 02:42:45 +08:00
- Added integration tests for adaptive RRF weights in hybrid search. - Enhanced query intent detection with new classifications: keyword, semantic, and mixed. - Introduced symbol boosting in search results based on explicit symbol matches. - Implemented embedding-based reranking with configurable options. - Added global symbol index for efficient symbol lookups across projects. - Improved file deletion handling on Windows to avoid permission errors. - Updated chunk configuration to increase overlap for better context. - Modified package.json test script to target specific test files. - Created comprehensive writing style guidelines for documentation. - Added TypeScript tests for query intent detection and adaptive weights. - Established performance benchmarks for global symbol indexing.
76 lines
1.8 KiB
Markdown
76 lines
1.8 KiB
Markdown
# Phase 2: Project Exploration
|
|
|
|
Launch parallel exploration agents based on report type.
|
|
|
|
## Execution
|
|
|
|
### Step 1: Map Exploration Angles
|
|
|
|
```javascript
|
|
const angleMapping = {
|
|
architecture: ["Layer Structure", "Module Dependencies", "Entry Points", "Data Flow"],
|
|
design: ["Design Patterns", "Class Relationships", "Interface Contracts", "State Management"],
|
|
methods: ["Core Algorithms", "Critical Paths", "Public APIs", "Complex Logic"],
|
|
comprehensive: ["Layer Structure", "Design Patterns", "Core Algorithms", "Data Flow"]
|
|
};
|
|
|
|
const angles = angleMapping[config.type];
|
|
```
|
|
|
|
### Step 2: Launch Parallel Agents
|
|
|
|
For each angle, launch an exploration agent:
|
|
|
|
```javascript
|
|
Task({
|
|
subagent_type: "cli-explore-agent",
|
|
run_in_background: false,
|
|
description: `Explore: ${angle}`,
|
|
prompt: `
|
|
## Exploration Objective
|
|
Execute **${angle}** exploration for project analysis report.
|
|
|
|
## Context
|
|
- **Angle**: ${angle}
|
|
- **Report Type**: ${config.type}
|
|
- **Depth**: ${config.depth}
|
|
- **Scope**: ${config.scope}
|
|
|
|
## Exploration Protocol
|
|
1. Structural Discovery (get_modules_by_depth, rg, glob)
|
|
2. Pattern Recognition (conventions, naming, organization)
|
|
3. Relationship Mapping (dependencies, integration points)
|
|
|
|
## Output Format
|
|
{
|
|
"angle": "${angle}",
|
|
"findings": {
|
|
"structure": [...],
|
|
"patterns": [...],
|
|
"relationships": [...],
|
|
"key_files": [{path, relevance, rationale}]
|
|
},
|
|
"insights": [...]
|
|
}
|
|
`
|
|
})
|
|
```
|
|
|
|
### Step 3: Aggregate Results
|
|
|
|
Merge all exploration results into unified findings:
|
|
|
|
```javascript
|
|
const aggregatedFindings = {
|
|
structure: [], // from all angles
|
|
patterns: [], // from all angles
|
|
relationships: [], // from all angles
|
|
key_files: [], // deduplicated
|
|
insights: [] // prioritized
|
|
};
|
|
```
|
|
|
|
## Output
|
|
|
|
Save exploration results to `exploration-{angle}.json` files.
|