git-semantic
Semantic search for your codebase.
Ask in plain English, get back the exact function — not a file to skim, not 80 grep matches.
cargo install gitsem
git-semantic index
git-semantic grep "how incoming requests are validated"
git push origin semantic
How it works
01
Parses every tracked file with tree-sitter, splitting on function and class boundaries.
02
Embeds each chunk using OpenAI or a local ONNX model — no code leaves your machine if you prefer.
03
Stores vectors in a local SQLite index and on a Git orphan branch so the whole team shares embeddings without re-indexing.
04
Searches with KNN similarity. Results include the full matched chunk — ready to use, no file reading needed.
Links