Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By aebrerv2.83.1MITIn 1 marketplace
Finds code by meaning, so you can ask in natural language or by identifier and get ranked matches across a project's code and docs. Needs Node.js 26 LTS, since it uses the built-in node:sqlite module.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Semantic codebase search engine with embedding-based ranking and an MCP server. Extracts and indexes code using tree-sitter for AST-aware chunking and a transformer embedding model (all-MiniLM-L6-v2), then ranks results using 6-signal fusion via POEM.
^26.13.0) — uses the built-in node:sqlite modulenpm install @dreb/semantic-search
The package ships as a Claude Code plugin. Add the dreb marketplace and install:
/plugin marketplace add aebrer/dreb
/plugin install semantic-search@dreb
Or from the CLI outside a session:
claude plugin marketplace add aebrer/dreb
claude plugin install semantic-search@dreb
Alternatively, register the MCP server directly without the plugin system:
claude mcp add --transport stdio semantic-search -- npx @dreb/semantic-search semantic-search-mcp
For local development from a cloned repo:
claude --plugin-dir ./packages/semantic-search
The package exposes a search tool over the Model Context Protocol (stdio transport). The tool accepts:
| Parameter | Required | Description |
|---|---|---|
query | yes | Natural language, identifier, or path query |
searchDir | yes | Directory to index and search — each unique value gets its own independent index |
restrictToDir | no | Filter results to files under this path within the already-built index (does not affect indexing) |
limit | no | Maximum results to return (default: 20) |
rebuild | no | Force a clean index rebuild (default: false) |
Start the server standalone:
npx @dreb/semantic-search semantic-search-mcp
Results are ranked by fusing 6 independent signals using POEM (Pareto-Optimal Embedded Modeling) weights that vary per query type:
| Signal | Description |
|---|---|
| BM25 | Keyword matching via FTS5 full-text search |
| Cosine similarity | Embedding-based semantic similarity using all-MiniLM-L6-v2 |
| Path match | Query terms appearing in the file path |
| Symbol match | Query terms matching function, class, or type names |
| Import graph | Proximity to high-scoring files in the import/dependency graph |
| Git recency | Recently modified files ranked higher |
Queries are automatically classified as identifier, natural language, or path queries, and each type applies different POEM column weights. POEM constructs a Pareto front over all signal dimensions and assigns ranks based on dominance depth — no manual weight tuning required. See Pareto-Optimal Embedded Modeling for the theoretical foundation.
import { SearchEngine } from "@dreb/semantic-search";
const engine = new SearchEngine("/path/to/project", {
indexDir: "/custom/index/path", // default: <projectRoot>/.search-index
globalMemoryDir: "~/.dreb/memory", // additional directory to index
modelCacheDir: "~/.cache/models", // default: ~/.cache/semantic-search/models
visibleDirs: (root) => [`${root}/.special`], // extra dirs (bypasses .gitignore)
});
// First call builds the index (10-60s); subsequent calls are fast
const results = await engine.search("where is auth handled", {
limit: 20,
pathFilter: "src/",
onProgress: (phase, current, total) => console.log(`${phase}: ${current}/${total}`),
});
const stats = engine.getStats(); // { files, chunks } | null
await engine.resetIndex(); // delete index, next search rebuilds
await engine.close(); // dispose resources
SearchEngine.isAvailable(); // check for node:sqlite
.tscn), resource (.tres), and project (.godot) files as plaintext.globalMemoryDir or visibleDirs, scanned even if gitignored.The index is stored in .search-index/search.db at the project root (add .search-index/ to .gitignore).
MIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub aebrer/dreb --plugin semantic-searchPlugins from other owners that cover similar ground