**sgrep** is a semantic and hybrid code search tool that understands what you mean, not just what you type.
Performs semantic code search that understands intent and concepts, not just text. Use when grep misses relevant code or exploring unfamiliar codebases by searching for concepts like "authentication logic" or "error handling.
/plugin marketplace add XiaoConstantine/sgrep/plugin install sgrep@sgrepThis skill inherits all available tools. When active, it can use any tool Claude has access to.
sgrep is a semantic and hybrid code search tool that understands what you mean, not just what you type.
Use sgrep instead of grep/ripgrep when:
--hybrid)# Semantic search (understands intent)
sgrep "error handling logic"
sgrep "database connection pooling"
# Hybrid search (semantic + exact term matching)
sgrep --hybrid "JWT token validation"
sgrep --hybrid "OAuth2 refresh"
# With code context
sgrep -c "authentication middleware"
# JSON output
sgrep --json "rate limiting"
# Quiet mode (paths only)
sgrep -q "logging"
| Mode | Best For | Example |
|---|---|---|
| Default (semantic) | Conceptual queries | "how does caching work" |
--hybrid | Queries with specific terms | "parseConfig function" |
Use --hybrid when your query contains function names, API names, or technical terms that should match exactly.
--hybrid for specific function/class names-c to see code snippets in results--json for programmatic parsingfile:startLine-endLine format