Phase 1: Agent Integration
Parent Epic: #123
Depends On: DI Phase 3 (#119) for agent injection
Target: v0.3
Risk Level: Medium
Integrate pydantic-ai agents into the find_code search pipeline to enable intelligent query understanding and strategy selection.
Goals
- Agent-driven query refinement
- Intelligent search strategy selection
- Tool integration for code-aware reasoning
- Seamless integration with existing search pipeline
Current State
Scaffolded infrastructure in:
codeweaver.providers.agent - Thin pydantic-ai wrapper
- Registry integration ready
Implementation Checklist
Agent Setup
find_code Pipeline Integration
Toolsets for Code Awareness
Testing
Configuration
Success Criteria
Example Use Cases
- Natural language query: "Find authentication logic" → Agent identifies security-related patterns
- Ambiguous query: "login" → Agent determines whether to search for function, UI, or flow
- Complex query: "How does error handling work?" → Agent orchestrates multi-file analysis
Reference
- Scaffolded code:
src/codeweaver/providers/agent/
- Registry:
src/codeweaver/common/registry/provider.py
Phase 1: Agent Integration
Parent Epic: #123
Depends On: DI Phase 3 (#119) for agent injection
Target: v0.3
Risk Level: Medium
Integrate pydantic-ai agents into the find_code search pipeline to enable intelligent query understanding and strategy selection.
Goals
Current State
Scaffolded infrastructure in:
codeweaver.providers.agent- Thin pydantic-ai wrapperImplementation Checklist
Agent Setup
find_code Pipeline Integration
Toolsets for Code Awareness
Testing
Configuration
Success Criteria
Example Use Cases
Reference
src/codeweaver/providers/agent/src/codeweaver/common/registry/provider.py