HOW IT WORKS

From GitHub URL to AI Insights

CodeSense AI combines Retrieval-Augmented Generation (RAG) with the power of Gemini 1.5 Pro to provide deep codebase understanding.

01

Paste Repo URL

Drop any public GitHub repository URL. Our system instantly validates the repository and prepares for ingestion.

Technical Detail

GitHub API + Octokit fetches repository metadata and complete file tree

02

AI Indexes Codebase

We scan your codebase, split it into meaningful chunks, and generate high-dimensional embeddings for each part.

Technical Detail

Google text-embedding-004 converts each code chunk into a 768-dimension vector, stored in pgvector (Neon DB) with HNSW indexing for fast similarity search

03

Chat & Analyze

Ask complex questions, get code reviews, or generate documentation. The AI uses your specific code as context.

Technical Detail

RAG retrieves top 8 most relevant code chunks via cosine similarity search. Gemini 1.5 Pro generates accurate responses with full code context

Under The Hood

Next.js 15ClerkNeon DBpgvectorGoogle Gemini 1.5 ProGitHub APIVercel