Vite MF Monorepo RAG

•

Enables Claude Code to semantically recall legacy codebase chunks for migration and pattern finding.

This local Retrieval-Augmented Generation (RAG) system empowers Claude Code to intelligently navigate and understand a legacy codebase by meaning rather than rigid file paths or regex searches. It indexes a designated legacy project, breaking files into semantically rich chunks, embedding them using a local Ollama model, and storing them in MongoDB Atlas. When Claude Code queries the system, it performs a vector search to retrieve the most semantically relevant code snippets, significantly easing tasks like codebase migration and pattern identification in complex projects.

Key Features

01Automated indexing pipeline for chunking and embedding source files.
02Seamless integration with Claude Code via a standard I/O (stdio) server.
03Semantic recall of legacy codebase content for AI interaction.
04Local embedding generation using Ollama with `nomic-embed-text`.
05Vector storage and search powered by MongoDB Atlas.
060 GitHub stars

Use Cases

01Assisting AI in migrating large legacy codebases to new frameworks (e.g., Vite to Next.js).
02Allowing AI to semantically search for code patterns and solutions in historical projects.
03Improving AI's understanding and interaction with complex, undocumented legacy systems.