From sgrep
Performs semantic code searches by intent (e.g., 'error handling logic', 'database connection pooling') and hybrid searches with exact terms (e.g., 'JWT token validation'). Includes code context (-c), JSON output, for exploring unfamiliar codebases.
npx claudepluginhub xiaoconstantine/sgrep --plugin sgrepThis skill uses the workspace's default tool permissions.
**sgrep** is a semantic and hybrid code search tool that understands what you mean, not just what you type.
Performs semantic code searches in codebases using natural language queries to find concepts like authentication logic, error handling patterns, or database connections via sgrep CLI.
Uses colgrep CLI for semantic code search with natural language queries, file/dir filtering, hybrid pattern+semantic matching, and grep-compatible flags.
Searches codebases semantically with natural language queries to find implementations by concept (e.g., 'where is X', 'how does Y work'). Returns file paths, lines, and snippets.
Share bugs, ideas, or general feedback.
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