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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sgrep:sgrepThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**sgrep** is a semantic and hybrid code search tool that understands what you mean, not just what you type.
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 formatnpx claudepluginhub xiaoconstantine/sgrep --plugin sgrepPerforms semantic code searches in codebases using natural language queries to find concepts like authentication logic, error handling patterns, or database connections via sgrep CLI.
Semantic code search using `colgrep` CLI with natural language queries, file filtering, and hybrid text+semantic search. Replaces standard grep/glob for intuitive code exploration.
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.