Help us improve
Share bugs, ideas, or general feedback.
From sgrep
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.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin rika-labs-sgrepHow this skill is triggered — by the user, by Claude, or both
Slash command
/sgrep:sgrepThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use `sgrep` to search code semantically using natural language queries. sgrep understands code meaning, not just text patterns.
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.
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.
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.
Share bugs, ideas, or general feedback.
Use sgrep to search code semantically using natural language queries. sgrep understands code meaning, not just text patterns.
Ensure sgrep is installed:
curl -fsSL https://raw.githubusercontent.com/rika-labs/sgrep/main/scripts/install.sh | sh
sgrep search "your natural language query"
Find functionality:
sgrep search "where do we handle user authentication?"
Search with filters:
sgrep search "error handling" --filters lang=rust
sgrep search "API endpoints" --glob "src/**/*.rs"
Get more results:
sgrep search "database queries" --limit 20
Show full context:
sgrep search "retry logic" --context
--limit <n> or -n <n>: Maximum results (default: 10)--context or -c: Show full chunk content instead of snippet--path <dir> or -p <dir>: Repository path (default: current directory)--glob <pattern>: File pattern filter (repeatable)--filters key=value: Metadata filters like lang=rust (repeatable)--json: Emit structured JSON output (agent-friendly)--threads <n>: Maximum threads for parallel operations--cpu-preset <preset>: CPU usage preset (auto|low|medium|high|background)If no index exists, sgrep will automatically create one on first search. To manually index:
sgrep index # Index current directory
sgrep index --force # Rebuild from scratch
For real-time index updates during development:
sgrep watch # Watch current repo
sgrep watch --debounce-ms 200
Check or create embedding provider configuration:
sgrep config # Show current configuration
sgrep config --init # Create default config file
sgrep config --show-model-dir # Show model cache directory
sgrep config --verify-model # Check if model files are present
sgrep uses local embeddings by default. Config lives at ~/.sgrep/config.toml.
If HuggingFace is blocked (e.g., in China), set HTTPS_PROXY environment variable or see the offline installation guide.
Find authentication code:
sgrep search "how do we authenticate users?"
Find error handling:
sgrep search "error handling patterns" --filters lang=rust
Search specific file types:
sgrep search "API rate limiting" --glob "src/**/*.rs"
Get detailed results:
sgrep search "database connection pooling" --context --limit 5
Agent-friendly JSON output:
sgrep search --json "retry logic"
Results show:
--filters lang=rust to narrow by language--glob "src/**/*.rs" to search specific directories--context when you need full function/class definitions--json for structured output in scripts