/semantic-search:searchfrom semantic-search
Semantic codebase search using natural language, identifiers, or file paths. Returns ranked results via embedding similarity, BM25, symbol matching, import graph analysis, and git recency. Best for exploring large codebases when exact keywords are unknown.
Ships in semantic-search. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
search is one optional tool in your exploration toolkit — best for open-ended exploration of a large code or text corpus (especially code repos) when you don't know the exact keywords. Use grep when you already know the exact text or pattern you're looking for.
The first query builds the index — this may take 10–60 seconds depending on project size. Subsequent queries are fast because the index is incrementally updated (only changed files are re-processed).
The search tool supports three kinds of queries, automatically classified:
AuthMiddleware, handleRequest, SearchEngine — finds definitions, usages, and related code for a specific symbolwhere is rate limiting handled, how does authentication work — semantic search across code and documentationsrc/auth/, packages/ai — finds code within a directory structure| Parameter | Required | Description |
|---|---|---|
query | Yes | Search query — natural language, identifier, or path |
searchDir | Yes | Directory to index and search — each unique value gets its own independent index |
restrictToDir | No | Filter results to files under this subdirectory within the already-built index (does not affect which files are indexed) |
limit | No | Maximum number of results to return (default: 20) |
rebuild | No | Force a clean index rebuild — use when files have changed significantly |
Results are ranked using 6 signals fused via POEM (Pareto-Optimal Embedded Modeling):
The weight given to each signal varies by query type. Identifier queries emphasize symbol match and BM25; natural language queries emphasize cosine similarity; path queries emphasize path match.
Each result includes:
restrictToDir if you get too many results from different areaslimit to get more results when exploring a broad topic (e.g. limit: 50)rebuild: true after major refactors, branch switches, or large file changesgrep for a powerful workflow: search to find the right files, then grep for exact patterns within themWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aebrer/dreb --plugin semantic-searchOther plugins' skills for the same job