Skip to Content
DocumentationIntroduction

Introduction

dev-agent provides semantic code search to AI assistants like Cursor and Claude Code via MCP.

We built this for ourselves. When exploring large codebases, we found AI tools spending too much time grepping through files and reading entire files to find relevant code. dev-agent gives them a faster path: search by meaning and get code snippets.

What it does

  1. Indexes your codebase locally with embeddings (BAAI/bge-small-en-v1.5)
  2. Returns code snippets β€” not just file paths, reducing input tokens by 99%
  3. Provides semantic search β€” find code by meaning, not just keywords

Measured impact

We benchmarked dev-agent against baseline Claude Code across different task types:

Task TypeCost SavingsTime SavingsWhy
Debugging42%37%Semantic search beats grep chains
Exploration44%19%Find code by meaning
Implementation29%22%Semantic search finds relevant code

Key insight: Savings scale with task complexity. Simple lookups show no improvement; complex debugging shows 42% cost reduction.

Trade-off: Faster but sometimes less thorough. Baseline Claude provides more diagnostic shell commands.

Why it saves money

What dev-agent doesManual equivalentImpact
Returns code snippets in searchRead entire files99% fewer input tokens
Semantic search finds relevant codegrep chains + filtering42% cost reduction

Key Features

FeatureDescription
Code SnippetsSearch returns code, not just file paths
Semantic SearchFind code by meaning, not keywords
100% LocalYour code never leaves your machine

Architecture

dev-agent is a monorepo:

  • @prosdevlab/dev-agent-core β€” Scanning, vector storage, GitHub integration
  • @prosdevlab/dev-agent-cli β€” Command-line interface
  • @prosdevlab/dev-agent-mcp β€” MCP server with 6 tool adapters
  • @prosdevlab/dev-agent-subagents β€” Planner, explorer agents

Next Steps

Last updated on