Searches codebase using hybrid semantic embeddings + BM25 keyword + identifier boosting. Returns top matches with file paths, line ranges, scores, and code previews.
From beaconnpx claudepluginhub sagarmk/beacon-plugin<query> [query2] [--top-k N] [--threshold F]/search-codeSearch for code patterns and examples from public GitHub repositories using Grep.
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 chunk