semantic-search
Skill44 starsChanged 3 months agoMITView on GitHub
Code search for this repo — pick the right Beacon tool for the question: exact symbol lookup, reference tracing, file outline, or semantic search.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- wrg32786/aigent-ostheir own version, first seen Jul 19, 2026
- myths-labs/musetheir own version, first seen Apr 10, 2026
- ZhuBit/cowork-semantic-searchtheir own version, first seen Mar 24, 2026
- ahmedibrahim085/Claude-Multi-Agent-Research-System-Skilltheir own version, first seen Dec 10, 2025
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- myths-labs/muse★ 35same name
- ZhuBit/cowork-semantic-search★ 29same name
- wrg32786/aigent-os★ 19same name
- ahmedibrahim085/Claude-Multi-Agent-Research-System-Skill★ 11same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 51
If tools report an empty symbol graph, the index predates symbol extraction — run /reindex.
- Distinctive: line 56
If the MCP tools are unavailable:
- Very specific: line 76
Only a description? → search_code
- Distinctive: line 77
Read the top files at the reported line ranges
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Search (Beacon)
This repo has a Beacon index: semantic embeddings, BM25 keyword matching, and a symbol reference graph. Beacon exposes MCP tools you call directly — prefer them over shelling out.
Pick the tool by what you are actually asking
| You want | Use | Cost |
| Where a known symbol is defined | find_symbol(name) | ~0.01 ms, exact |
| Every call site of a symbol | find_references(name) | ~0.01 ms, exhaustive |
| A file's symbols / functions / structure, with line numbers | outline(file) | ~0.01 ms |
| Code matching a concept you can only describe | search_code(query) | ~200 ms, ranked |
| Literal text — regex, punctuation, exact case | Grep | — |
The first three are indexed SQL lookups. If you already know the name, do not pay for a semantic search and get back a ranked top-10 for a question that has one exact answer.
find_references is exhaustive, search_code is a ranked sample. For
"what breaks if I change this", only find_references actually answers it.
search_code
search_code(query: "how are failed payments retried", top_k: 10, path: "src/billing/", mode: "hybrid")mode: "hybrid"(default) — embeddings + BM25 + reference graphmode: "semantic"— embeddings onlymode: "lexical"— keyword only; no embedding model, much fasterpath— restrict to a repo-relative prefix
Results carry file, lines, score, and a preview. Read the file at those
line ranges for real context — the preview is a fragment, not the answer.
When Beacon cannot help
find_symbol returning nothing means the symbol is not indexed — it may live
in a dependency, be constructed dynamically, or differ in case. Fall back to
Grep. Grep is also the right tool for text inside strings and comments, which
the reference extractor deliberately strips.
If tools report an empty symbol graph, the index predates symbol extraction —
run /reindex.
Fallback CLI
If the MCP tools are unavailable:
node ${CLAUDE_PLUGIN_ROOT}/scripts/search.js "<query>" [--top-k N] [--path PREFIX] [--no-hybrid]Multiple queries in one call share a single round-trip:
search.js "auth flow" "session handling" "token refresh"
Grep interception
Grep is not blocked. A hook may add a note suggesting a Beacon tool when the
pattern looks like a concept or a bare identifier; grep still runs, and you
should keep it when you want literal matching. Set intercept.mode in
.claude/beacon.json to "redirect" to block grep instead, or "off" to
silence the hook.
Workflow
- Known name? →
find_symbol/find_references - Only a description? →
search_code - Read the top files at the reported line ranges
outlinea large file before reading it whole- Cite
file:line
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

