AI-Powered Repository Intelligence

Understand Any Repository Instantly

AI-powered repository analysis using embeddings, semantic search, and Retrieval-Augmented Generation. Connect a GitHub repo and start chatting with your code.

Everything You Need

A complete platform for AI-powered repository analysis, built with modern tools and production-grade architecture.

AI Repository Chat

Ask natural-language questions about any codebase. Get contextual answers powered by RAG.

Semantic Search

Search code by meaning, not just keywords. Find relevant functions, classes, and patterns instantly.

Background Workers

BullMQ-powered async job processing for repository ingestion, embedding, and AI review pipelines.

GitHub Integration

OAuth login, webhook-driven PR reviews, installation management, and incremental sync.

Vector Embeddings

768-dimensional embeddings via nomic-embed-text stored in PostgreSQL with pgvector and HNSW indexing.

Docker Ready

Full Docker Compose setup for development and production. One command to start everything.

Production Architecture

Express API, Next.js frontend, background workers — all battle-tested and production-ready.

CI/CD

GitHub Actions workflows for linting, type checking, building, and automated deployment.

Monorepo

Turborepo + pnpm workspaces. Shared packages for database, UI, types, and configuration.

Local AI with Ollama

Run AI models locally with Ollama. No external API keys required. Full privacy and control.

Architecture Preview

From repository to AI-powered answers — the complete ingestion and retrieval pipeline.

Click any step to explore • Press ↑↓ to navigate

Get Started in Minutes

Four commands to go from zero to a running instance.

Terminal
# Clone the repository
$ git clone https://github.com/lovesinghal31/codepilot.git
# Install dependencies
$ cd codepilot && pnpm install
# Start PostgreSQL & Redis
$ docker compose up -d
# Start all services
$ pnpm dev

Ready to understand your codebase?

Set up CodePilot in minutes and start asking questions about any repository. No external API keys required.