CodeCompass helps developers tackle legacy or existing codebases by giving AI coding assistants the context they need to deliver spot-on suggestions. Legacy code is tough for AI—it’s often messy, outdated, and lacks clear documentation. CodeCompass solves this by analyzing your codebase with Qdrant Vector Store and powering AI with Ollama (local) or cloud agents like DeepSeek, using its Agentic RAG feature to make suggestions smarter and more relevant. It’s like giving your AI a roadmap to your code, so you can vibe code effortlessly.
- Codebase Analysis: Maps your repository's structure and dependencies.
- Smart AI Context: Uses Agentic RAG to make AI suggestions fit your code perfectly.
- Flexible Setup: Runs locally with Ollama or connects to cloud AI like DeepSeek.
- Node.js v20+ (nodejs.org)
- Docker for Qdrant (docker.com)
- Ollama with models
nomic-embed-text:v1.5
andllama3.1:8b
(ollama.com) - DeepSeek API Key (optional, for cloud; get from Deepseek)
-
Install Ollama:
- Linux:
curl -fsSL https://ollama.com/install.sh | sh
- macOS/Windows: Download from ollama.com.
- Start and pull models:
ollama serve ollama pull nomic-embed-text:v1.5 ollama pull llama3.1:8b
- Linux:
-
Install Qdrant:
docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant
Verify at http://localhost:6333/dashboard.
-
Install CodeCompass:
npx -y @alvinveroy/codecompass@latest /path/to/your/repo
Set environment variables (optional; defaults work for local setup):
LLM_PROVIDER
:ollama
(local) ordeepseek
(cloud).DEEPSEEK_API_KEY
: Your DeepSeek API key for cloud use.
- Edit
~/.cursor/mcp.json
:{ "mcpServers": { "codecompass": { "command": "npx", "args": ["-y", "@alvinveroy/codecompass@latest", "/path/to/your/repo"], "env": { "DEEPSEEK_API_KEY": "your_deepseek_api_key" } } } }
- Replace
your_deepseek_api_key
with your DeepSeek API key (or omit for Ollama). - Restart Cursor.
Note: For Cline in VSCode, configure similarly in cline_mcp_settings.json
(see Cline Docs).
With CodeCompass set up, use natural language prompts in Cursor or other AI tools to vibe code—interact with your codebase intuitively. The Agentic RAG feature, powered by Qdrant and Ollama/DeepSeek, ensures your AI understands your code’s context for precise results. Here are some examples:
- “Hey CodeCompass, find any unused functions in my codebase.”
- “Can CodeCompass suggest modern JavaScript updates for this old module?”
- “Show me how my repo’s architecture fits together, CodeCompass.”
- “CodeCompass, check for risky patterns like
eval()
and suggest fixes.” - “Help me add a login feature by finding similar code in my repo, CodeCompass.”
These prompts let you work naturally, making coding feel like a conversation with your codebase.
Fork, branch, and submit a pull request. See CONTRIBUTING.md.