Local retrieval for coding agents

Search the code.
Recover the context.

sgrep searches codebases by intent and retrieves decisions, fixes, and context from Claude Code, Codex, Cursor, OpenCode, and Pi sessions.

brew tap XiaoConstantine/tap
brew install sgrep
sgrep setup
01

Code search

Semantic, hybrid, and ColBERT retrieval with explicit speed and quality profiles.

02

Conversation search

Search, inspect, export, and resume work across five coding-agent histories.

03

Agent integration

Install the shared skill and teach agents when to use semantic, structural, or exact search.

04

Local architecture

Understand indexing, embeddings, adaptive vector storage, lexical fusion, and reranking.