A fully local, self-hosted repo index for coding agents (Rust, MIT, runs offline)

Reddit r/LocalLLaMA Tools

Summary

Basemind is an open-source tool that indexes repositories locally and serves context to coding agents via the MCP protocol, offering code maps, git history, and document RAG without cloud dependencies.

If you run local models for coding, feeding them repo context without blowing the context window is half the battle. I built basemind to index a repo locally and serve it over MCP: a code map across 300+ languages, git history and blame, and document RAG over 90+ formats, all on your machine, no cloud. The query tools return signatures and line numbers instead of whole files, so a structural question costs a fraction of the tokens of reading source, which matters more when your context budget is tight. There's an expand tool to fetch a full function body only when needed. It runs as an MCP server, a CLI, or a Claude Code plugin over one local index. Rust, MIT. Honest limitation: the index lags edits between scans (watch mode + rescan handle most of it), and the first cold scan of a big repo takes a bit. https://github.com/Goldziher/basemind Curious how folks here are wiring repo context into local coding setups.
Original Article

Similar Articles

Using Local Coding Agents

Hacker News Top

A tutorial by Sebastian Raschka on setting up a fully local coding agent using open-source tools and open-weight LLMs, covering motivations, setup, and advantages over proprietary services.

rohitg00/agentmemory

GitHub Trending (daily)

agentmemory is an open-source persistent memory layer for AI coding agents (Claude Code, Cursor, Gemini CLI, Codex CLI, etc.) that uses knowledge graphs, confidence scoring, and hybrid search to give agents long-term memory across sessions via MCP, hooks, or REST API. Built on the iii engine, it requires no external databases and exposes 51 MCP tools.