MCPcopy Index your code
hub / github.com/Rika-Labs/sgrep

github.com/Rika-Labs/sgrep @v2.0.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.8 ↗ · + Follow
1,094 symbols 2,968 edges 52 files 11 documented · 1% updated 3mo agov2.0.8 · 2026-03-16★ 426 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

sgrep

Fast local semantic code search for private repositories

License: Apache 2.0

Quick Start

curl -fsSL https://raw.githubusercontent.com/rika-labs/sgrep/main/scripts/install.sh | sh
sgrep index
sgrep search "where do we handle authentication?"

What sgrep does

  • builds a local semantic index for your repository
  • searches code with natural-language queries
  • keeps the index fresh with sgrep watch
  • works well for private and offline-friendly workflows once the model cache is warm

Documentation

Guide Description
Quick Start Get searching in a few minutes
Deployment Running sgrep locally
Configuration Flags, env vars, and config files
Agent Integrations Claude Code, Factory, OpenCode
Offline Mode Airgapped and proxy environments
Architecture How indexing and search work
Troubleshooting Common local issues

Integrations

License

Apache License, Version 2.0. See LICENSE.

Extension points exported contracts — how you extend this code

BatchEmbedder (Interface)
(no doc) [18 implementers]
src/embedding/mod.rs
RemoteVectorStore (Interface)
(no doc) [5 implementers]
src/remote/mod.rs

Core symbols most depended-on inside this repo

clone
called by 240
src/embedding/local.rs
len
called by 158
src/store/mmap.rs
is_empty
called by 72
src/store/mmap.rs
get
called by 47
src/search/bm25_cache.rs
load
called by 41
src/store/mod.rs
build_index
called by 39
src/indexer/mod.rs
insert
called by 36
src/search/bm25_cache.rs
score
called by 32
src/fts/mod.rs

Shape

Function 694
Method 279
Class 104
Enum 15
Interface 2

Languages

Rust96%
Python4%
TypeScript1%

Modules by API surface

src/app/mod.rs101 symbols
src/store/mod.rs63 symbols
src/search/tests.rs61 symbols
src/fts/mod.rs58 symbols
src/watch/mod.rs47 symbols
src/indexer/mod.rs42 symbols
src/search/engine.rs39 symbols
src/graph/extractor.rs39 symbols
src/graph/mod.rs36 symbols
src/turbopuffer/store.rs34 symbols
src/threading.rs28 symbols
src/config/mod.rs28 symbols

For agents

$ claude mcp add sgrep \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact