code-context is the retrieval layer under your coding agent: one local
index over the whole repo (keyword, semantic, hybrid, and SQL), reached
through an MCP server and a CLI, with the index living in plain files inside
your repo. Your agent answers questions about the codebase without reading it
file by file.
The rule of thumb: the more a question spans the repo, the more this saves,
because the answer comes from a ranked index instead of pulling source into
context one file at a time.
On your own codebase, ~30-40% fewer tokens and ~50% fewer tool calls
(so answers land faster too - aggregation questions run about 2× quicker).
The harness is in the repo, so you can reproduce it on your own code.
Try it live (early preview): ask questions about any public GitHub repo
at lantern.infino.ai, a demo agent that runs on
code-context.
- 🔎 Find code by words or meaning. One ranked pass fuses exact keyword
matching with semantic similarity, and every hit carries the code with
path:line citations.
- 📊 Ask questions grep can't answer. Search works as a SQL table
function, so "which files have the most code about X" is one query:
ranked by relevance, tallied by
GROUP BY.
- ⚡ Searching in seconds, fresh forever. The keyword index commits
before the embedding model even finishes downloading, vectors backfill in
the background, and edits re-sync incrementally: only changed files
re-chunk and re-embed.
- 🔒 Nothing leaves your machine. No accounts, no API keys, no database
server, no telemetry. Embedding is a small local model, downloaded once;
after that everything works offline.
Built on infino, a fast retrieval
engine that runs SQL, full-text search, and vector search over a single copy
of your data. Text and numeric data is stored as spec-compliant Parquet, and
the same engine handles logs, docs, and agent memory.

Claude Code answering questions about a repo through code-context: index it, then ask, and it reaches for search and SQL on its own.
Quick start
Install the Claude Code plugin - nothing to paste into a config:
/plugin marketplace add infino-ai/code-context
/plugin install code-context@infino-ai
It registers code-context's three tools with alwaysLoad already set, so the
agent keeps them in view and reaches for the index directly instead of falling
back to plain file search.
Not on Claude Code, or prefer a one-line command? Add it as an MCP server:
claude mcp add-json code-context -s user '{"command":"npx","args":["-y","@infino-ai/code-context","mcp"],"alwaysLoad":true}'
The alwaysLoad flag pins this small tool set so that in a setup with many MCP
servers - where clients defer tool definitions behind a tool-search step - the
agent doesn't miss the index and fall back to plain file search. (Use either
the plugin or this command, not both.)
Then just ask a question about the code. The first search or sql on an
unindexed repo builds the index inline and answers on the same call: keyword
search is live in seconds, and vectors backfill in the background. (Prefer to
kick it off yourself? The reindex tool does the same build on demand.)
CI-tested on Linux x64 (glibc) and macOS arm64; linux-arm64, musl, and
Windows-via-WSL are expected to work through the engine's prebuilt bindings
but are not CI-covered.
Evaluation
Real agent runs over a codebase-Q&A suite (claude-sonnet-4-6, the same
minimal prompt for both lanes), on a repo the model has not memorized -
infino, the engine this is built on -
because that is the realistic case for your private code. Baseline is stock
file tools including Bash; the code-context lane is the same tools plus the
MCP server. Measured on three axes:
