Usmansayed / scubiee
git clone https://github.com/Usmansayed/scubiee.git
Save up to 30% of your AI coding tokens. Scubiee turns any codebase into searchable context for your AI coding agent. A local context engine for Cursor, Claude Code, Copilot, Codex, and more: semantic search, code relationships, live sync, MCP integration, and code that never leaves your machine.
+11
stars, 24h Β· #3,248
+~77
stars, 7 days Β· #2,760
+~330
stars, 30 days Β· #2,506
52
β
total Β· +77% this week
2
forks Β· 0 open issues
Star history (as recorded here)
LanguagePython
LicenseApache-2.0
Created2026-08-08 (2mo ago)
Last push3d ago
Watchers1
OwnerUser
GitHub topics
ai-agentsai-codingclaude-codecode-searchcoding-agentcontext-engineharness-engineeringopen-sourceopenairag
Links
- GitHub: github.com/Usmansayed/scubiee
- Homepage: https://scubiee.com
- Releases Β· Issues Β· Hacker News mentions
README excerpt
A local code-context engine for AI coding agents. Index your repository on your own machine, and let agents find code by meaning β so they read the few spans that matter instead of grepping blindly through files. Quick start Β· What your agent gets Β· How it works Β· Docs --- Run `scubiee connect` once and your AI assistant gets a **local, always-fresh index** of your repo β ranked discovery and deep symbol focus β without uploading a single line of code. - **Local-first.** Tree-sitter parsing + on-disk embeddings. Code never leaves your machine; the only network step is a one-time model download (~270 MB) during setup. - **Built for agents.** Ships as an MCP server β works in Cursor, Claude Code, Copilot, Kiro, and other MCP clients. - **A real engine, not cloud RAG.** A local daemon with live Merkle sync keeps the index current as you edit and pull β index once, stay fresh. Ranked map find hits and focused symbol spans β all against a local index. --- ## Quick start **Prerequisite:** Python 3.11+. We recommend uv as the installer. [code] > `init` indexes the repo; `connect` wires up the assistant. You need **both**, then reload MCP > (Cursor: Settings β MCP β refresh). Other clients: `--claude-code`, `--copilot`, `--kiro`, > `--all`. See getting started. Prefer pip? [code] On **Windows with a GPU**, install so DirectML isn't clobbered on upgrade β see Windows / DirectML install. --- ## What your agent gets One MCP tool β **`map`** β with two configs. The agent picks one by what it knows, acts on the first good answer, and stops. | `map` config | Use when | Returns | |---|---|---| | **`find`** | You don't know where the code lives | Ranked locations **with the top result's code inline** β usually no follow-up read | | **`focus`** | You know the symbol name(s) | The symbol's full body **+ callers/callees + sibling names**, in one unit | | **`gate` / `status`** | At session start | A tiny managed-repo check + engine health | Scubiee is a **locate layer**, not a replacement for your editor. Exact string / path lookups stay on the host's native **Grep / Glob / Read**, and history stays on **git** β a one-line grep is faster and more precise than a semantic search for a known string. The CLI mirrors the tool: `scubiee map --config find|focus`. β Full tool reference: MCP tools Β· the two configs, in depth --- ## How it works [code] A small local daemon serves retrieval over three fused channels β a code **graph** (calls/imports/defines), **BM25** lexical match, and **dense** embeddings (CodeRankEmbed, FAISS). Background sync keeps enrolled repos fresh with a Merkle diff, so edits show up in seconds without a full reindex. Everything β indexing, embedding, retrieval β runs on your machine. β Architecture deep-dive: how everything works Β· system overview --- ## Everyday commands [code] Pause / stop / wipe and the full lifecycle are in repo lifecycle. Every command and flag: commands reference. --- ## Privacy - **Your code** is parsed