/beacon:search-code <query> [query2] [--top-k N] [--threshold F]from beacon
Searches the codebase using hybrid semantic + keyword + BM25 matching. Returns ranked file matches with previews and similarity scores.
Ships in beacon. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
code-search, semantic-search, hybrid-search, beacon, code-retrieval
Search the codebase using Beacon hybrid search (semantic embeddings + BM25 keyword matching + identifier boosting).
node ${CLAUDE_PLUGIN_ROOT}/scripts/search.js "$ARGUMENTS"file, lines, similarity, score, and previewpreview field first — it often contains enough context to answer the queryPass multiple quoted queries for a single HTTP round-trip:
node ${CLAUDE_PLUGIN_ROOT}/scripts/search.js "auth flow" "session handling"
Returns [{query, matches}, ...] grouped by query.
--top-k N — number of results (default: 10)--threshold F — minimum score cutoff (default: 0.35)--path <prefix> — scope results to files under a directory (e.g. --path src/middleware/)--no-hybrid — disable hybrid scoring, use pure vector searchfile — file pathlines — matched line range (e.g. "45-78")similarity — vector cosine similarityscore — final hybrid score (semantic + BM25 + identifier boost)preview — first 300 chars of matched code chunk7-day visitors to each command page
9 commands in this plugin
/blacklist/blacklistManage Beacon indexing blacklist — prevent indexing of dangerous directories/config/configView and modify Beacon configuration — providers, thresholds, indexing rules/index/indexVisual overview of Beacon index — chunks, coverage, provider. Pass --files to list indexed files./index-status/index-statusShow Beacon embedding index health — file count, chunk count, last sync/reindex/reindexForce a full re-index of the codebase (escape hatch if index gets corrupted)/run-indexer/run-indexerManually trigger Beacon indexing (useful when auto-index is off)npx claudepluginhub sagarmk/beacon-plugin --plugin beaconOther plugins' commands for the same job