Skip to content

Commit 6ee9fe2

Browse files
prosdevclaude
andcommitted
docs(website): add v0.9.0 release notes, update homepage and troubleshooting
- Add Antfly troubleshooting section (server not running, port conflicts, old data) - Update homepage diagram (Vector DB → Antfly hybrid search) - Update latest-version.ts to v0.9.0 - Add full v0.9.0 release notes to updates page - Update "clear everything" quick fix to use dev setup Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b9b17f1 commit 6ee9fe2

4 files changed

Lines changed: 110 additions & 15 deletions

File tree

website/content/docs/troubleshooting.mdx

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,51 @@ gh auth login
126126
dev github index # Re-index
127127
```
128128

129+
## Antfly Issues
130+
131+
### Antfly server not running
132+
133+
If you see `Failed to initialize Antfly store` or `fetch failed`:
134+
135+
```bash
136+
# Run setup (starts the server via Docker or native)
137+
dev setup
138+
139+
# Or start manually
140+
antfly swarm
141+
```
142+
143+
### Port conflict on startup
144+
145+
Antfly uses port 18080 (Docker) or 8080 (native). If another service is using that port:
146+
147+
```bash
148+
# Check what's using the port
149+
lsof -i :18080
150+
151+
# Use a custom port via environment variable
152+
ANTFLY_URL=http://localhost:19090/api/v1 dev index .
153+
```
154+
155+
### Old LanceDB data
156+
157+
If you're upgrading from a previous version that used LanceDB:
158+
159+
```bash
160+
# Old indexes are not compatible — re-index with Antfly
161+
dev index . --force
162+
163+
# Optionally clean up old LanceDB data
164+
rm -rf ~/.dev-agent/indexes/*/vectors*
165+
```
166+
129167
## Quick Fixes
130168

131169
### Clear everything and start fresh
132170

133171
```bash
134-
rm -rf ~/.dev-agent/indexes/*
135-
dev index .
136-
dev github index
172+
dev setup # Ensure Antfly is running
173+
dev index . --force # Re-index from scratch
137174
dev mcp install --cursor
138175
```
139176

website/content/index.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,24 +134,24 @@ flowchart LR
134134
subgraph IDE["Your AI Tool"]
135135
A["Cursor / Claude Code"]
136136
end
137-
137+
138138
subgraph Agent["dev-agent"]
139139
B["MCP Server"]
140140
C["9 Tools"]
141141
end
142-
143-
subgraph Local["Local Storage"]
144-
D["Vector DB"]
145-
E["Embeddings"]
142+
143+
subgraph Local["Antfly (local)"]
144+
D["Hybrid Search"]
145+
E["BM25 + Vector + RRF"]
146146
end
147-
147+
148148
A <-->|"MCP Protocol"| B
149149
B --> C
150150
C <--> D
151151
D <--> E
152152
```
153153

154-
**Key insight:** dev-agent returns **code snippets with context** — Claude doesn't read entire files. This is why input tokens drop by 99%.
154+
**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%.
155155

156156
## Quick Start
157157

website/content/latest-version.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
*/
55

66
export const latestVersion = {
7-
version: '0.8.5',
8-
title: 'Enhanced Pattern Analysis & Performance',
9-
date: 'December 14, 2025',
7+
version: '0.9.0',
8+
title: 'Antfly Hybrid Search',
9+
date: 'March 29, 2026',
1010
summary:
11-
'Refactored dev_inspect with 5-10x faster pattern analysis, comprehensive code comparison across 5 pattern categories, and improved semantic search accuracy.',
12-
link: '/updates#v085--enhanced-pattern-analysis--performance',
11+
'Replaced LanceDB with Antfly — dev_search now uses hybrid search (BM25 + vector + RRF). New `dev setup` command handles backend installation.',
12+
link: '/updates#v090--antfly-hybrid-search',
1313
} as const;

website/content/updates/index.mdx

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,64 @@ What's new in dev-agent. We ship improvements regularly to help AI assistants un
99

1010
---
1111

12+
## v0.9.0 — Antfly Hybrid Search
13+
14+
*March 29, 2026*
15+
16+
**Replaced LanceDB + @xenova/transformers with [Antfly](https://antfly.io) — a major upgrade to search quality and architecture.**
17+
18+
### What's Changed
19+
20+
**🔍 Hybrid Search (BM25 + Vector + RRF)**
21+
22+
`dev_search` now combines keyword matching and semantic understanding in every query. Searching for "validateUser" finds the exact function (BM25) AND semantically related authentication code (vector), fused into one ranked result set via Reciprocal Rank Fusion.
23+
24+
**⚡ New: `dev setup` Command**
25+
26+
One command handles the entire search backend:
27+
28+
```bash
29+
dev setup
30+
```
31+
32+
- Docker-first: pulls the Antfly image, starts a container
33+
- Native fallback: detects or installs the Antfly binary, pulls the embedding model
34+
- Auto-start: all commands (`dev index`, `dev mcp start`) auto-start Antfly if needed
35+
36+
**🧠 Auto-Embedding via Termite**
37+
38+
No more managing an embedding pipeline. Antfly generates embeddings locally via Termite (ONNX-optimized models). Insert documents, search immediately — Antfly handles the rest.
39+
40+
**🔑 Direct Key Lookup**
41+
42+
Document retrieval by ID is now instant via `tables.lookup()`, replacing the previous O(n) zero-vector scan workaround.
43+
44+
### Architecture
45+
46+
```
47+
Before: Scanner → @xenova/transformers (embed) → LanceDB (store) → vector search
48+
After: Scanner → Antfly (embed + store + hybrid search)
49+
```
50+
51+
- Removed ~1,400 lines of vector plumbing code
52+
- `@lancedb/lancedb` and `@xenova/transformers` fully removed
53+
- `@antfly/sdk` added as the sole search dependency
54+
- VectorStorage facade preserved — all consumers unchanged
55+
56+
### Breaking Changes
57+
58+
- **Requires Antfly server.** Run `dev setup` (one-time) to install and start.
59+
- **Existing LanceDB indexes are not migrated.** Run `dev index . --force` to rebuild with Antfly.
60+
- **Default port changed to 18080** to avoid conflicts with common dev servers on 8080.
61+
62+
### Testing
63+
64+
- 1,935 tests passing, 0 failures
65+
- 20 new AntflyVectorStore integration tests (insert, upsert, hybrid search, delete, count, model mismatch detection)
66+
- VectorStorage mock for tests that don't need a live server
67+
68+
---
69+
1270
## v0.8.5 — Enhanced Pattern Analysis & Performance
1371

1472
*December 14, 2025*

0 commit comments

Comments
 (0)