diff --git a/website/content/docs/cli.mdx b/website/content/docs/cli.mdx
index f6c4c3d..b3d8810 100644
--- a/website/content/docs/cli.mdx
+++ b/website/content/docs/cli.mdx
@@ -168,8 +168,8 @@ dev index
# Search for code
dev search "user authentication"
-# Explore code patterns
-dev explore pattern "error handling"
+# Find similar code
+dev search --similar-to src/utils/helpers.ts
```
### Integration with Cursor
diff --git a/website/content/docs/index.mdx b/website/content/docs/index.mdx
index 79d040e..bb489c3 100644
--- a/website/content/docs/index.mdx
+++ b/website/content/docs/index.mdx
@@ -1,12 +1,12 @@
# Introduction
-**dev-agent** provides semantic code search and context bundling to AI assistants like Cursor and Claude Code via MCP.
+**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, get code snippets, bundle context.
+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 (all-MiniLM-L6-v2)
+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
diff --git a/website/content/docs/tools/dev-health.mdx b/website/content/docs/tools/dev-health.mdx
index c2f6ccd..0910b47 100644
--- a/website/content/docs/tools/dev-health.mdx
+++ b/website/content/docs/tools/dev-health.mdx
@@ -48,7 +48,7 @@ Components:
┌─────────────────┬────────┬──────────┬─────────────────────┐
│ Component │ Status │ Latency │ Details │
├─────────────────┼────────┼──────────┼─────────────────────┤
-│ Vector Storage │ ✅ Pass │ 24ms │ LanceDB connected │
+│ Vector Storage │ ✅ Pass │ 24ms │ Antfly connected │
│ Repository Index│ ✅ Pass │ 12ms │ 1,832 components │
│ GitHub Index │ ✅ Pass │ 8ms │ 172 documents │
│ Rate Limiter │ ✅ Pass │ <1ms │ 89/100 tokens │
@@ -70,7 +70,7 @@ CPU: 2.3%
| Component | What It Checks |
|-----------|----------------|
-| **Vector Storage** | LanceDB connection and query capability |
+| **Vector Storage** | Antfly connection and query capability |
| **Repository Index** | Index exists and is readable |
| **GitHub Index** | GitHub metadata is accessible |
| **Rate Limiter** | Token bucket has capacity |
diff --git a/website/content/docs/tools/dev-map.mdx b/website/content/docs/tools/dev-map.mdx
index 1381570..c08795c 100644
--- a/website/content/docs/tools/dev-map.mdx
+++ b/website/content/docs/tools/dev-map.mdx
@@ -34,7 +34,7 @@ This helps AI assistants quickly understand codebase organization and activity.
## Hot Paths (most referenced)
1. `packages/core/src/indexer/index.ts` (RepositoryIndexer) - 47 refs
-2. `packages/core/src/vector/store.ts` (LanceDBVectorStore) - 32 refs
+2. `packages/core/src/vector/store.ts` (AntflyVectorStore) - 32 refs
3. `packages/mcp-server/src/server/mcp-server.ts` (MCPServer) - 28 refs
## Directory Structure
diff --git a/website/content/docs/tools/dev-search.mdx b/website/content/docs/tools/dev-search.mdx
index df5b5ca..3dd998f 100644
--- a/website/content/docs/tools/dev-search.mdx
+++ b/website/content/docs/tools/dev-search.mdx
@@ -77,8 +77,8 @@ This surfaces test files without affecting semantic search rankings — tests ar
## How It Works
-1. **Query embedding** — Your query is converted to a vector using MiniLM-L6-v2
-2. **Vector search** — LanceDB finds semantically similar code components
+1. **Query embedding** — Your query is converted to a vector using BAAI/bge-small-en-v1.5
+2. **Vector search** — Antfly finds semantically similar code components
3. **Ranking** — Results are sorted by cosine similarity score
4. **Formatting** — Results are formatted for LLM context windows
diff --git a/website/content/docs/tools/dev-status.mdx b/website/content/docs/tools/dev-status.mdx
index ac29d7a..2ac08fa 100644
--- a/website/content/docs/tools/dev-status.mdx
+++ b/website/content/docs/tools/dev-status.mdx
@@ -52,7 +52,7 @@ Index Duration: 12.3s
```
## Index Status
-Vector Storage: LanceDB
+Vector Storage: Antfly
Location: ~/.dev-agent/indexes/my-project
Size: 24.5 MB
Components: 1,832
diff --git a/website/content/index.mdx b/website/content/index.mdx
index 71f1743..25b487b 100644
--- a/website/content/index.mdx
+++ b/website/content/index.mdx
@@ -2,7 +2,7 @@
title: dev-agent
---
-import { Callout, Steps, Tabs, FileTree } from 'nextra/components'
+import { Callout, Steps, Tabs } from 'nextra/components'
import { latestVersion } from './latest-version'
# dev-agent
@@ -11,87 +11,26 @@ Local semantic code search for Cursor and Claude Code via MCP.
[Get Started](/docs) · [View on GitHub](https://github.com/prosdevlab/dev-agent)
-
- **Project moved.** dev-agent started as a hack project at [Lytics](https://github.com/lytics/dev-agent) and is now maintained independently at [prosdevlab/dev-agent](https://github.com/prosdevlab/dev-agent). All future development happens here.
-
-
**New in v{latestVersion.version}** — {latestVersion.summary} [See what's new →](/updates)
- **Built by engineers, for engineers.** An MCP server that gives your AI tools semantic code search and context bundling. Savings scale with task complexity — up to 42% on debugging tasks.
+ **Built by engineers, for engineers.** An MCP server that gives your AI tools semantic code search — find code by meaning, not keywords. Everything runs locally. Your code never leaves your machine.
-## Why it saves money
-
-dev-agent doesn't just search — it **bundles context** so Claude reads less:
-
-| What dev-agent does | Manual equivalent | Savings |
-|---------------------|-------------------|---------|
-| Returns code snippets in search | Read entire files | 99% fewer input tokens |
-| Semantic search finds relevant code | grep chains + manual filtering | 42% cost reduction |
+## What it does
-**The harder the task, the bigger the savings.**
-
-## Measured results by task type
-
-| Task Type | Cost Savings | Time Savings | Why |
-|-----------|--------------|--------------|-----|
-| **Debugging** | **42%** | 37% | Semantic search beats grep for "where is the bug?" |
-| **Exploration** | **44%** | 19% | Find code by meaning, not keywords |
-| **Implementation** | **29%** | 22% | Semantic search finds relevant code |
-| **Simple lookup** | ~0% | ~0% | Both approaches are fast |
-
-
- **Trade-off:** Faster but sometimes less thorough. Baseline Claude provides more diagnostic shell commands. dev-agent excels when you need to explore or understand code.
-
+Your AI tool gets 6 MCP tools that understand your codebase:
-## Same question, different approach
-
-We asked Claude Code: *"Debug why search returns duplicates"*
-
-
-
- **Claude's approach:**
-
-
-
-
-
-
-
-
-
-
-
- **Result:** 18+ tool calls, 10 files read → **$1.37, 12 minutes**
-
- *18,800 input tokens consumed*
-
-
- **Claude's approach:**
-
-
-
-
-
-
-
-
-
-
-
-
- **Result:** 6 tool calls, 5 files read → **$0.79, 7.5 minutes**
-
- *65 input tokens consumed (99.7% less)*
-
-
-
-
- **Same root cause identified. 42% cheaper. 37% faster.**
-
+| Tool | What it does |
+|------|--------------|
+| [`dev_search`](/docs/tools/dev-search) | Hybrid search (BM25 + vector + RRF) — returns code snippets, not just file paths |
+| [`dev_refs`](/docs/tools/dev-refs) | Find callers/callees of any function |
+| [`dev_map`](/docs/tools/dev-map) | Codebase structure with hot paths (most referenced files) |
+| [`dev_patterns`](/docs/tools/dev-patterns) | Compare coding patterns against similar files |
+| [`dev_status`](/docs/tools/dev-status) | Repository indexing status and health |
+| [`dev_health`](/docs/tools/dev-health) | Server health checks |
## How it works
@@ -117,7 +56,22 @@ flowchart LR
D <--> E
```
-**Key insight:** dev-agent returns **code snippets with context** using hybrid search (keyword matching + semantic understanding) — Claude doesn't read entire files. This is why input tokens drop by 99%.
+1. **Index** — Scanner parses your code (ts-morph for TypeScript, tree-sitter for Go), extracts functions, classes, types, imports, and call graphs
+2. **Embed** — Antfly generates vector embeddings locally via Termite (ONNX, BAAI/bge-small-en-v1.5)
+3. **Search** — Hybrid search combines BM25 keyword matching with vector similarity, fused via Reciprocal Rank Fusion (RRF)
+4. **Auto-update** — File watcher detects changes and re-indexes automatically while the MCP server is running
+
+## Why it helps
+
+Instead of grep chains and reading entire files, your AI tool can ask conceptual questions:
+
+| Question | Without dev-agent | With dev-agent |
+|----------|-------------------|----------------|
+| "Where do we handle auth?" | `grep -r "auth"` → 200 matches | `dev_search "authentication"` → 5 ranked results with code |
+| "What calls this function?" | Manual file reading | `dev_refs "validateUser"` → callers + callees |
+| "What's in this codebase?" | `ls`, `find`, read READMEs | `dev_map` → structure with component counts |
+
+The key difference: semantic search finds code by **meaning**, not text matching. "Where do we handle errors?" finds try/catch blocks, error middleware, and validation functions — even if none contain the word "error."
## Quick Start
@@ -125,13 +79,14 @@ flowchart LR
### Install
```bash
-npm install -g dev-agent
+npm install -g @prosdevlab/dev-agent
+brew install --cask antflydb/antfly/antfly
```
-### Index your repository
+### Setup and index
```bash
-cd your-project
+dev setup
dev index
```
@@ -143,37 +98,18 @@ dev mcp install # For Claude Code
```
-## 6 MCP Tools
-
-| Tool | What it does |
-|------|--------------|
-| [`dev_search`](/docs/tools/dev-search) | Semantic code search — returns snippets, not just paths |
-| [`dev_refs`](/docs/tools/dev-refs) | Find callers/callees of any function |
-| [`dev_map`](/docs/tools/dev-map) | Codebase structure with change frequency |
-| [`dev_patterns`](/docs/tools/dev-inspect) | Inspect files (compare implementations, check patterns) |
-| [`dev_status`](/docs/tools/dev-status) | Repository indexing status |
-| [`dev_health`](/docs/tools/dev-health) | Server health checks |
-
-## When to use it
-
-| Scenario | dev-agent? | Expected Savings |
-|----------|------------|------------------|
-| Debugging unfamiliar code | ✅ Yes | **42% cost** |
-| Exploring large codebase | ✅ Yes | **44% cost** |
-| Implementing GitHub issues | ✅ Yes | **29% cost** |
-| Small codebase you know | ❌ Skip | ~0% |
-| Need exhaustive file reads | ⚠️ Maybe | Trade speed for thoroughness |
-
## Features
-- **Code Snippets** — Search returns code, not just file paths
+- **Hybrid Search** — BM25 keyword + vector semantic, fused with RRF
+- **Code Snippets** — Search returns actual code, not just file paths
+- **Call Graph** — Callers/callees extracted from AST at index time
- **Multi-Language** — TypeScript, JavaScript, Go, Markdown
-- **100% Local** — Your code never leaves your machine
-- **Sub-second Search** — Fast even on large repos with LanceDB
-- **1500+ Tests** — Production-grade reliability
+- **100% Local** — Antfly runs on your machine. No data leaves.
+- **Auto-Index** — File watcher re-indexes on save while MCP server runs
+- **1,600+ Tests** — Production-grade reliability
---
-[Read the story behind dev-agent →](https://www.devbypros.com/blog/10-days-of-vibe-coding)
+MIT License
-MIT License • Built by [prosdev](https://github.com/prosdev)
+[Read the story behind dev-agent →](https://www.devbypros.com/blog/10-days-of-vibe-coding)