🔗 Live Demo · GitHub Repo
Hosted on Render's free tier — the backend sleeps after inactivity, so the first request after a while may take 30–60s to wake up.
DevLens AI is a codebase intelligence platform. Paste any GitHub repository URL and instantly get:
- 🗂️ A navigable file structure with noise (
node_modules, lockfiles, build artifacts) filtered out - 🔥 Git-history hotspot detection — surfaces the files changed most often, statistically the riskiest to touch
- 🤖 AI-generated plain-English explanations for any file, cached so they're instant on repeat views
- 🔍 Hybrid semantic search — ask "where is authentication handled?" in plain English and get a grounded, cited answer synthesized from the actual code, not a hallucinated guess
- 🗺️ An interactive architecture map showing how files depend on each other
- 📚 Auto-generated module documentation, exportable as Markdown
- 🧭 An AI-synthesized "where should I start?" onboarding guide for new contributors
- 📊 A code quality score combining churn, size, and complexity signals
- 🔗 A blast radius view — see every file that depends on a given file before you change it
- 🔒 Secret redaction — accidentally-committed API keys and credentials are detected and masked before any code is sent to the AI provider
Every developer who joins an unfamiliar codebase hits the same wall: hundreds of files, no map, and no fast way to answer "where does X happen?" or "what will break if I change this?"
Most tools that attempt this stop at a thin wrapper around an embedding API. DevLens AI is built differently — it combines real static analysis (AST-aware parsing, git history mining, dependency graphs) with an LLM that acts as an explanation layer on top, not the whole product.
┌─────────────────────────┐
│ GitHub URL │
└────────────┬─────────────┘
▼
┌─────────────────────────┐
│ Shallow Clone (temp) │
└────────────┬─────────────┘
▼
┌────────────────────────┼────────────────────────┐
▼ ▼ ▼
┌───────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ AST Parsing │ │ Git History │ │ Content Capture │
│ (tree-sitter) │ │ Mining (churn) │ │ (pre-cleanup) │
└───────┬────────┘ └────────┬──────────┘ └────────┬─────────┘
▼ ▼ ▼
┌───────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ Chunking + │ │ Hotspot Ranking │ │ AI Summarization │
│ Embeddings │ │ │ │ (Groq) │
└───────┬────────┘ └────────┬──────────┘ └────────┬─────────┘
▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────┐
│ Supabase (Postgres + pgvector + full-text) │
└──────────────────────────────┬────────────────────────────────────┘
▼
┌─────────────────────────┐
│ Hybrid Search (RRF) + │
│ RAG Answer Generation │
└────────────┬─────────────┘
▼
┌─────────────────────────┐
│ React Frontend (UI) │
└─────────────────────────┘
| Layer | Technology |
|---|---|
| Frontend | React · Vite · TypeScript · Tailwind CSS · React Flow |
| Backend | Python · FastAPI |
| Database | Supabase (Postgres) · pgvector · full-text search (GIN) |
| AST Parsing | tree-sitter (Python, JS, TS/TSX) |
| Embeddings | sentence-transformers (all-MiniLM-L6-v2, local, free) |
| LLM | Groq (llama-3.3-70b-versatile) |
| Git Analysis | GitPython |
|
Most student RAG projects:
|
DevLens AI:
|
🔍 Hybrid Semantic Search + RAG
Ask a natural-language question about the codebase. DevLens embeds the query, retrieves candidates via both keyword and vector search, fuses the rankings, and asks the LLM to synthesize a grounded answer — citing exact files and line ranges. If nothing relevant is found, it says so explicitly.
🔥 Git Hotspot Detection
Mines full commit history via git log --numstat to rank files by churn frequency — a well-established proxy for bug-proneness and complexity.
🗺️ Interactive Architecture Map
Renders the extracted import/dependency graph as a zoomable, clickable node-link diagram via React Flow, with hotspot files visually flagged.
📚 Auto-Generated Documentation
Synthesizes per-file AI summaries into cohesive, module-level documentation — exportable as a single Markdown file.
🧭 Onboarding Guide
Combines detected entry points, structurally central files (high import in-degree), and hotspots into an AI-suggested reading order for new contributors.
📊 Code Quality Score
A composite, repo-relative score per file combining churn, size, and complexity — surfaced directly in the file tree.
🔗 Blast Radius (Impact Analysis)
Select any file and see every other file that depends on it, direct and transitive, with the actual import chain shown — answers "what breaks if I change this?" before you touch a line of code.
🔒 Secret Redaction
Every file is scanned for common secret patterns (API keys, tokens, private keys, database credentials) before its content is sent to the LLM. Matches are masked, never logged, and never forwarded to the AI provider — protecting against accidentally-committed secrets in public repos.
Most RAG projects claim their search "works" without ever measuring it. DevLens AI includes an evaluation harness that runs a curated set of real queries against the codebase and compares keyword-only, vector-only, and hybrid (RRF) retrieval, reporting recall@5 and Mean Reciprocal Rank (MRR) for each.
See
eval/EVALUATION_RESULTS.mdfor the full comparison table and example queries once generated for your repo.
# Clone the repo
git clone https://github.com/<your-username>/DevLens-AI.git
cd DevLens-AI
# Backend setup
cd backend
python -m venv .venv
.venv\Scripts\Activate.ps1 # Windows
pip install -r requirements.txt
cp .env.example .env # add your Supabase + Groq keys
python app/main.py
# Frontend setup (new terminal)
cd frontend
npm install
cp .env.example .env # set VITE_API_BASE_URL=http://localhost:8000
npm run devDeployed as two independent services:
| Service | Platform | Notes |
|---|---|---|
| Frontend | Vercel | Reads VITE_API_BASE_URL at build time — a redeploy is required after changing it |
| Backend | Render | Free tier (512MB RAM) — embedding model is lazy-loaded on first use to fit within the memory limit; service sleeps after inactivity |
- Repo ingestion + file tree
- Git hotspot detection + dependency parsing
- AI file explainer (cached, plain-language)
- AST-aware chunking (tree-sitter)
- Embeddings + pgvector storage
- Hybrid search (keyword + vector, RRF)
- RAG answer generation with citations
- Interactive architecture map
- Auto-generated documentation
- Onboarding guide
- Code quality score
- Blast-radius impact analysis
- Secret detection & redaction before LLM calls
- Retrieval evaluation harness (recall@k, MRR benchmarking)
- Animated landing page + loading experience
- Deployed live (Vercel + Render)
All core phases shipped. Future ideas: custom domain, demo video, multi-language chunking beyond Python/JS/TS.
Built by Rishabh · B.Tech AI & Data Science, VESIT