semsearch
Semantic code search that just works. Ask questions in plain English, get ranked file locations.
Usage
Auto-indexes on first run, caches for instant subsequent searches.
Options
semsearch [OPTIONS] [QUERY]
Arguments:
[QUERY] Natural language search query
Options:
-n, --limit <N> Max results (default: 10)
-p, --path <DIR> Project path (default: walks up to .git)
--json Output as JSON
--reindex Force full reindex
--stats Show index statistics
-v, --verbose Show progress even when cached
-h, --help Print help
Examples
# Search current project
# JSON output for scripting
|
# Search specific directory
# Check index status
Output
Human-readable (default):
src/auth.rs:42 0.89 pub async fn validate_token...
src/handlers/login.rs:1 0.82 //! Login and authentication...
JSON (--json):
How It Works
- Detects project root (walks up to
.git) - Indexes all text files via fsindex
- Chunks content, embeds with BGE-small-en-v1.5 via fastembed
- Stores vectors in usearch index
- Caches at
~/.cache/semsearch/<project-hash>/ - Incremental updates on file changes
Install
License
None (unpublished)