Skip to content

vineethwilson15/codemind

🧠 CodeMind

AI-powered codebase brain β€” understand any codebase, instantly

CI codecov CodeQL License: MIT Python 3.9+ PRs Welcome Open Collective


Index your entire codebase, git history, PRs, tickets and discussions into a knowledge graph β€” then chat with it in plain English.



πŸ€” What problem does this solve?

Every developer has felt this: you join a project (or return to your own after 6 months) and spend days just figuring out how code connects, why decisions were made, what breaks if you change something.

CodeMind fixes that. One command indexes your repo into a queryable knowledge graph β€” then you just ask it.

$ codemind chat
> Why does the auth middleware skip OPTIONS requests?
> Which files would break if I rename UserService?
> Who wrote the payment module and what PR introduced it?

✨ Features

Feature Description
πŸ—ΊοΈ Living architecture map Auto-generated graph of your codebase β€” files, functions, classes and their relationships
πŸ’¬ Chat with your code Natural language Q&A powered by a free local LLM (no API keys needed)
πŸ”— Code + context linked Connects code to the PRs, Jira tickets, and Slack threads that explain why it exists
πŸ”„ Impact predictor Ask "what breaks if I change X?" before touching anything
πŸ‘₯ Onboarding paths Auto-generate "start here" guides for new team members
🚨 Drift detection Alerts when the codebase diverges from its documented architecture

πŸš€ Quick Start

Prerequisites

  • Python 3.9+
  • Docker + Docker Compose β€” runs Neo4j and Qdrant
  • Ollama β€” free local LLM runtime

Install in 5 steps

# 1. Clone
git clone https://github.com/vineethwilson15/codemind.git
cd codemind

# 2. Start databases (Neo4j + Qdrant)
docker compose up -d

# 3. Pull the LLM (free, runs locally β€” no API key needed)
ollama pull codellama

# 4. Install Python dependencies
pip install -r requirements.txt

# 5. Configure environment
cp .env.example .env   # defaults work out of the box

Index & chat

# Index any codebase (yours, an OSS project, anything)
python -m cli index --repo /path/to/your/project

# Start chatting
python -m cli chat

πŸ”Œ Integrations

CodeMind is pluggable β€” connect only what your team uses.

Category Supported
Git Hosts GitHub Β· GitLab Β· Bitbucket Β· Azure Repos
Issue Trackers Jira Β· Azure Boards Β· Linear Β· GitHub Issues
Chat / Discussions Slack Β· Microsoft Teams
LLM Ollama (default, free, local) Β· OpenAI Β· Anthropic

Configure via .env β€” see .env.example for all options.


πŸ—οΈ Architecture

Your Codebase + Git History
          β”‚
          β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚    AST Parser     β”‚  tree-sitter β€” extracts functions,
  β”‚ (core/ast_parsers)β”‚  classes, imports per language
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Neo4j Graph  │◄─────►│  Qdrant Vectors  β”‚
  β”‚  knowledge    β”‚       β”‚  semantic search  β”‚
  β”‚  graph        β”‚       β”‚  (local embeddingsβ”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚
          β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  Ollama LLM   β”‚  free, local β€” codellama by default
  β”‚  (core/chat)  β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚
          β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  CLI  Β·  API  Β·  VS Code β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

By default, everything runs 100% locally β€” no data leaves your machine. Enabling cloud LLMs (OpenAI, Anthropic) or external integrations (GitHub, Jira, Slack) will send the relevant data to those providers.


πŸ›£οΈ Roadmap

  • Phase 1 β€” Core Engine: repo indexer, knowledge graph, local LLM chat, CLI
  • Phase 2 β€” Integrations: GitHub/GitLab, Jira/Azure Boards, Slack/Teams
  • Phase 3 β€” UI & Extension: VS Code extension, web UI with live architecture map

🀝 Contributing

Contributions are welcome and appreciated!

# Run unit tests (no Docker needed)
python -m pytest tests/unit/

# Run integration tests (requires docker compose up -d)
python -m pytest tests/integration/

πŸ“„ License

MIT β€” see LICENSE

About

🧠 Universal AI-powered codebase brain - understand any codebase instantly

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors

Languages