spardanviro

Semsearch — Development skill for Claude Code

Development community

Local semantic code search for Claude Code: find code by what it does, next to Grep and LSP.

How to install Semsearch

This entry records only its repository, not the path inside it, so there is no exact command to give. Open spardanviro/semsearch and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Semsearch does

Local semantic code search for Claude Code: find code by what it does, next to Grep and LSP. EmbeddingGemma 2 + SQLite, runs fully on your machine. One-line install, see Releases.

Alternatives in Development

README

semsearch

[中文说明](README.zh-CN.md)

Local semantic code search for [Claude Code](https://claude.com/claude-code), powered by [EmbeddingGemma 2](https://developers.googleblog.com/embeddinggemma-2-the-developer-guide/).

Claude Code finds code with Grep and LSP, which works well when you know the name. semsearch is for when you only know **what the code does**. It finds that code by meaning: "where are failed downloads retried", "the code that keeps a crash from corrupting the save file", "anything similar to this snippet". It adds to Grep and LSP and replaces neither.

  • Runs locally. Everything stays on your machine: one background daemon holds the model, and the indexes live in ~/.cache/semsearch.
  • Updates incrementally. Only changed files are re-chunked, and only changed chunks are re-embedded. A hook updates the index after each Claude edit, and a quick scan before each search catches everything else (editor saves, git pull, branch switches).
  • Splits code by syntax. tree-sitter cuts code into functions, methods and classes, and a doc comment stays in the same chunk as the code it describes. Markdown is split by heading.
  • Built into Claude Code. It ships an MCP tool, a semantic-search subagent, an edit hook and routing rules, so Claude picks the right tool by itself.
  • Images, PDFs, audio and video (opt-in). These are searchable by meaning too: "the blue explosion sprite sheet", "the page with the voxel visibility diagram", "the clip where the character goes limp". See Media.

How well it works

Benchmark Questions MRR Answer in top 5
6 private game-modding projects (C#, TS, GDScript, PowerShell, JS; up to 60k chunks) 72 0.83 96%
A public C# mod and this repository (evals/cases/) 54 0.79 91%
  • Who wrote the questions: for the 72-question set, agents that had not seen the implementation, with every expected answer checked against the source. Those case