Dev Agent is a repository-aware context provider that helps AI tools like Claude Code understand codebases more deeply without having to process the entire repository. By providing relevant context, Dev-Agent reduces hallucinations, improves the accuracy of AI responses, and optimizes token usage.
# dev-agent
[](https://nodejs.org/)
[](https://pnpm.io/)
[](LICENSE)
**Local semantic code search for Cursor and Claude Code via MCP.**
## What it does
dev-agent indexes your codebase and provides 9 MCP tools to AI assistants. Instead of AI tools grepping through files, they can ask conceptual questions like "where do we handle authentication?"
- `dev_search` — Semantic code search by meaning
- `dev_refs` — Find callers/callees of functions
- `dev_map` — Codebase structure with change frequency
- `dev_history` — Semantic search over git commits
- `dev_plan` — Assemble context for GitHub issues
- `dev_inspect` — Inspect files (compare similar code, check patterns)
- `dev_gh` — Search GitHub issues/PRs semantically
- `dev_status` / `dev_health` — Monitoring
## Measured results
We benchmarked dev-agent against baseline Claude Code across 5 task types:
| Metric | Baseline | With dev-agent | Change |
|--------|----------|----------------|--------|
| Cost | $1.82 | $1.02 | **-44%** |
| Time | 14.1 min | 11.5 min | **-19%** |
| Tool calls | 69 | 40 | **-42%** |
**Trade-offs:** Faster but sometimes less thorough. Best for implementation tasks and codebase exploration. For deep debugging, baseline Cursor may read more files.
## When to use it
**Good fit:**
- Large or unfamiliar codebases
- Implementation tasks ("add a feature like X")
- Exploring how code works
- Reducing AI API costs
**Less useful:**
- Small codebases you already know well
- Deep debugging sessions
- When thoroughness matters more than speed
## Quick Start
```bash
# Install globally
npm install -g dev-agent
# Index your repository (initial indexing can take 5-10 minutes for large codebases)
cd /path/to/your/repo
dev index .
# Install MCP integration
dev mcp install --cursor # For Cursor IDE
dev mAgent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.