gitwtfhub

wtf is code-context?

infino-ai/code-context — explained in plain English

Analysis updated 2026-05-18

16TypeScriptAudience · developerComplexity · 3/5LicenseSetup · easy

TL;DR

A local, file-based code search index and MCP server that helps AI coding agents find code without reading every file.

Mindmap

mindmap
  root((code-context))
    What it does
      Local code search index
      Keyword plus semantic
      SQL over the index
    Tech stack
      TypeScript
      MCP server
      Infino engine
    Use cases
      Speed up coding agents
      Aggregate questions over repo
      Offline private search
    Audience
      Developers
      AI agent builders
      Claude Code users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Speed up an AI coding agent by giving it a searchable index instead of raw file reads.

REASON 2

Ask aggregate questions like which files have the most code about a topic, answered via SQL.

REASON 3

Add code search to Claude Code or another MCP-compatible agent with a one-line install.

REASON 4

Keep a private, offline index of a codebase with no accounts or API keys involved.

What's in the stack?

TypeScriptNode.jsMCPSQLParquet

How it stacks up

infino-ai/code-contextachrefelouafi/basicproceduralbuildingacoyfellow/tuiport
Stars161616
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatemoderate
Complexity3/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

First index build backfills semantic vectors in the background using a small local embedding model.

Use freely, including for commercial purposes, as long as you keep the license and any copyright notices.

Wtf does this do

code-context builds a local search index over your codebase so an AI coding agent like Claude Code can find relevant code by asking questions instead of reading through files one by one. It ships as both a command line tool and an MCP server, and the index itself is stored as plain files inside your own repository rather than in a database or a cloud account. The core idea is that the more a question spans the whole codebase, such as which files contain the most code related to a topic, the more this approach saves compared to an agent pulling files into context one at a time. Search combines exact keyword matching with semantic similarity in a single ranked pass, and results include the matching code along with the exact file path and line numbers. Search can also be used inside SQL queries, so an agent can ask something like which files have the most code about a given topic and get a ranked, grouped answer in one query rather than reading through the repo manually. Indexing happens in stages. The keyword index builds first and is ready in seconds, even before an embedding model has finished downloading. Semantic vector search fills in afterward in the background, and edits to the codebase are re-synced incrementally, so only changed files are reprocessed. Everything runs locally: there are no accounts, no API keys, and no external server involved, aside from downloading a small embedding model once. The tool is built on top of infino, the authors' own retrieval engine, which stores data as Parquet files and supports full text search, vector search, and SQL over the same copy of the data. It installs easily as a Claude Code plugin or as a generic MCP server for other coding agents. According to the authors' own benchmark against standard file search tools, code-context reduced token usage by around 30 to 40 percent and tool calls by around 50 percent on their own codebase, with the biggest gains on questions that require aggregating information across many files rather than looking up a single symbol. The project is written in TypeScript and released under the Apache 2.0 license.

Yoink these prompts

Prompt 1
Walk me through installing code-context as a Claude Code plugin for my repository.
Prompt 2
Explain the difference between the search, sql, and reindex tools this project provides.
Prompt 3
Show me an example SQL query using bm25_search to find files with the most code about a topic.
Prompt 4
Help me understand how the keyword index and vector index stay in sync as I edit files.

Frequently asked questions

wtf is code-context?

A local, file-based code search index and MCP server that helps AI coding agents find code without reading every file.

What language is code-context written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, MCP.

What license does code-context use?

Use freely, including for commercial purposes, as long as you keep the license and any copyright notices.

How hard is code-context to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is code-context for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.