Goldziher has released Basemind, an open-source tool that indexes code repositories locally and serves the data via the Model Context Protocol (MCP). This allows developers to feed repository context to local coding models without exhausting their context windows.

  • The index covers over 300 programming languages, git history, blame information, and document RAG for more than 90 formats.
  • Query tools return specific signatures and line numbers rather than entire files, significantly reducing token usage.
  • An expand tool is available to fetch full function bodies only when necessary.
  • The project is written in Rust, licensed under MIT, and runs as an MCP server, CLI, or Claude Code plugin.

Basemind enables fully offline, self-hosted repository indexing for local AI workflows, though users should note that the index may lag behind edits between scans.