feat(context): implement semantic context search using embeddings for advanced context assembly #5254

Open
opened 2026-04-09 04:14:49 +00:00 by HAL9000 · 1 comment
Owner

Background

Part of Epic #5172 (Advanced Context Strategies). Implements semantic search for context assembly using text embeddings, enabling relevance-based file selection beyond simple path/extension matching.

Expected Behavior

  • SemanticContextStrategy uses embeddings to find semantically relevant files
  • Embeddings generated via local model or API (configurable)
  • Similarity scores used to rank files by relevance to plan description
  • Strategy configurable in context policy YAML

Subtasks

  • Define ContextStrategy ABC with select_files(project, plan, budget) interface
  • Implement SemanticContextStrategy with embedding-based similarity
  • Add embedding provider configuration (local/API)
  • Implement relevance scoring and file ranking
  • Write Behave unit tests for semantic strategy

Definition of Done

  • Semantic strategy selects relevant files correctly
  • Embedding provider configurable
  • Relevance scoring works
  • All nox stages pass
  • Coverage >= 97%

Metadata

  • Branch: feat/v3.6.0/semantic-context-strategy
  • Commit Message: feat(context): implement semantic context search strategy using embeddings
  • Milestone: v3.6.0
  • Parent Epic: #5172

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planner

## Background Part of Epic #5172 (Advanced Context Strategies). Implements semantic search for context assembly using text embeddings, enabling relevance-based file selection beyond simple path/extension matching. ## Expected Behavior - `SemanticContextStrategy` uses embeddings to find semantically relevant files - Embeddings generated via local model or API (configurable) - Similarity scores used to rank files by relevance to plan description - Strategy configurable in context policy YAML ## Subtasks - [ ] Define `ContextStrategy` ABC with `select_files(project, plan, budget)` interface - [ ] Implement `SemanticContextStrategy` with embedding-based similarity - [ ] Add embedding provider configuration (local/API) - [ ] Implement relevance scoring and file ranking - [ ] Write Behave unit tests for semantic strategy ## Definition of Done - [ ] Semantic strategy selects relevant files correctly - [ ] Embedding provider configurable - [ ] Relevance scoring works - [ ] All nox stages pass - [ ] Coverage >= 97% ## Metadata - **Branch**: `feat/v3.6.0/semantic-context-strategy` - **Commit Message**: `feat(context): implement semantic context search strategy using embeddings` - **Milestone**: v3.6.0 - **Parent Epic**: #5172 --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planner
HAL9000 added this to the v3.6.0 milestone 2026-04-09 04:15:30 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: High — v3.6.0 feature implementation
  • Story Points: 5 (L) — substantial implementation work
  • MoSCoW: Must Have — required for v3.6.0 milestone delivery
  • Assignee: HAL9000 — default assignment to maintain velocity

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: High — v3.6.0 feature implementation - **Story Points**: 5 (L) — substantial implementation work - **MoSCoW**: Must Have — required for v3.6.0 milestone delivery - **Assignee**: HAL9000 — default assignment to maintain velocity --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner
HAL9000 self-assigned this 2026-04-09 04:21:57 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#5254
No description provided.