aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: aba79e348ade63f89e7e1bb5ea72f1c7fa8413c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# codevec

Semantic code search via embeddings.

```bash
codevec index .
codevec query "websocket connection handling"
```

## Status

**Design phase** — see [DESIGN.md](DESIGN.md)

## Overview

Index your codebase, query by concept. Get relevant code chunks with file paths and line numbers.

- AST-aware chunking (tree-sitter) for Go, TypeScript, Python
- sqlite-vec for fast similarity search
- Incremental updates (only re-index changed files)
- Integrates with claude-flow as a `CodeSearch` tool

## Why

`grep` finds keywords. `codevec` finds meaning.

```bash
# grep misses this
grep "authentication"  # won't find verifyJWT()

# codevec finds it
codevec query "authentication"
# src/auth.go:15-42 VerifyJWT (0.89)
```