sgreplisted
Install: claude install-skill XiaoConstantine/sgrep
# sgrep - Smart Code & Conversation Search
Use `sgrep` for semantic and hybrid search across **code** and **agent conversations**. It understands intent, not just exact strings.
## When to Use
### Code Search
- Finding code by **concept**: "error handling", "authentication logic", "rate limiting"
- Searching for **specific terms** with semantic context: use `--hybrid`
- Best code-search accuracy after indexing: use `--hybrid --colbert`
- Exploring unfamiliar codebases
- When ripgrep patterns keep missing relevant code
### Conversation Search
- Finding past discussions with **Claude Code**, **Codex CLI**, **Cursor**, **OpenCode**, or **Pi**
- Recalling how you solved a similar problem before
- Building context from previous sessions for new tasks
- Searching across all your coding agent interactions
## Commands
```bash
# First time only
sgrep setup
sgrep setup --with-rerank # optional, only for --rerank
# Index current directory; builds compact TQ-MSE chunk/file vectors by default
sgrep index .
# Optional ColBERT segment codec override
sgrep index . --colbert-codec tqmse
sgrep index . --colbert-codec int8
sgrep index . --colbert-codec pq6
# Legacy compatibility: also persist full SQL vectors
sgrep index . --sql-vectors
# Watch mode keeps SQL vectors for incremental updates; rerun index to compact
sgrep watch .
# Balanced semantic + lexical code search (default)
sgrep "database connection pooling"
sgrep "how are errors handled"
# Fast semantic-only search
sgrep --p