← all repositories
Davidyz/VectorCode

Teach your LLM the codebase it never trained on

It indexes your local repository so coding LLMs can pull relevant context into prompts instead of hallucinating about private or bleeding-edge code.

873 stars Python Coding AssistantsRAG · Search
VectorCode
Not currently ranked — collecting fresh signals.
star history

What it does VectorCode embeds and indexes a code repository into a local vector database, then surfaces task-relevant snippets to inject into LLM prompts. It ships as a CLI indexer and a Neovim plugin with Lua APIs for building AI-assisted workflows. The target is codebases the model has never seen—private, niche, or newer than the training cutoff.

The interesting bit The tool chunks code using tree-sitter for semantic and syntax awareness rather than naive text splitting, and it exposes an MCP server so compatible Neovim plugins can query the repo like a tool. That turns “find relevant code” from a manual copy-paste chore into something the LLM can request programmatically.

Key highlights

  • Tree-sitter-based chunking with configurable metadata and document selection
  • Neovim plugin with Lua APIs, plus integrations for codecompanion.nvim and minuet-ai.nvim
  • Model Context Protocol (MCP) support for joint search across collections
  • Respects .gitignore and auto-detects project roots via .git or .vectorcode/ anchors
  • Local-first storage via ChromaDB’s persistent client

Caveats

  • Explicitly beta quality; the author warns of rapid iteration and breaking interface changes before a 1.0.0 release
  • Remote ChromaDB authentication and query rewriting are still listed as unfinished TODOs

Verdict Try it if you want your Neovim AI plugins to read your actual repo. Look elsewhere if you need a stable, remote-first, or IDE-agnostic solution right now.

Frequently asked

What is Davidyz/VectorCode?
It indexes your local repository so coding LLMs can pull relevant context into prompts instead of hallucinating about private or bleeding-edge code.
Is VectorCode open source?
Yes — Davidyz/VectorCode is open source, released under the MIT license.
What language is VectorCode written in?
Davidyz/VectorCode is primarily written in Python.
How popular is VectorCode?
Davidyz/VectorCode has 873 stars on GitHub.
Where can I find VectorCode?
Davidyz/VectorCode is on GitHub at https://github.com/Davidyz/VectorCode.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.