Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

[EPIC] Agentic enhancements: intelligent search, orchestration, and evaluation #123

Description

Overview

Enhance CodeWeaver with agentic capabilities for intelligent code search, orchestrated reasoning, and evaluation. This builds on the scaffolded agent and data provider infrastructure.

The Vision

Transform CodeWeaver from a semantic search system into an intelligent code understanding platform with:

  • Agent-enhanced search: LLM agents that reason about search strategy
  • Data source integration: External context (web search, documentation, etc.)
  • Context agents: Internal orchestration for multi-step reasoning
  • Graph-based pipelines: Structured orchestration with pydantic-graph
  • Evaluation framework: Continuous quality improvement with pydantic-eval

Scaffolded Infrastructure

Already in place:

  • codeweaver.providers.agent - Thin wrapper around pydantic-ai
  • codeweaver.providers.data - Data provider scaffolding
  • Registry integration in codeweaver.common.registry.provider and .models

Implementation Phases

Phase 1: Agent Integration in find_code Pipeline - See #124

  • Integrate pydantic-ai agents into search pipeline
  • Agent-driven query refinement and strategy selection
  • Tool integration for code-aware reasoning

Phase 2: Data Provider Integration - See #125

  • Integrate external data sources (Tavily, DuckDuckGo, etc.)
  • Context enrichment from documentation and web
  • Data source orchestration

Phase 3: Context Agent Tooling - See #126

  • Internal "context agent" for orchestrated search/response
  • Multi-step reasoning over code context
  • Intelligent result synthesis

Phase 4: pydantic-graph Pipeline Orchestration - See #127

  • Structured pipeline orchestration with pydantic-graph
  • Strategy-based execution paths
  • Complex workflow composition

Phase 5: Evaluation Framework with pydantic-eval - See #128

  • Agent performance evaluation
  • Pipeline quality metrics
  • Continuous improvement infrastructure

Dependencies

Success Criteria

  • Agents successfully enhance search quality
  • External data sources integrated seamlessly
  • Context agents provide intelligent multi-step reasoning
  • Pipelines are composable and maintainable via pydantic-graph
  • Evaluation framework enables continuous improvement
  • Performance remains acceptable (< 2x baseline latency)

Constitutional Alignment

Empirical Approach (Principle III): Evaluation framework enables evidence-based improvements
Proven Patterns (Principle II): Leverages pydantic-ai, pydantic-graph, pydantic-eval
AI-First Context (Principle I): Agents enhance code understanding
Simplicity (Principle V): Graph-based orchestration clarifies complex workflows

Related Work

This work complements but is distinct from:

Source

  • Scaffolded code: src/codeweaver/providers/agent/, src/codeweaver/providers/data/
  • Registry integration: src/codeweaver/common/registry/
  • Branch: 003-our-aim-to

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions