π RepoLens β Understand Any Codebase in Seconds
π§ Paste a GitHub URL. Get a full visual architecture walkthrough, module breakdown, key code flows, and an AI chat to explore deeper.
π‘ The Problem
Every developer knows the pain: you open a new repo and face a wall of unfamiliar code. READMEs are outdated. Architecture docs don't exist. You spend hours jumping between files trying to piece together how things work.
What if you could understand any codebase in under 60 seconds?
β¨ What RepoLens Does
- π Paste a GitHub repo URL
- π€ AI agents analyze the entire codebase β architecture, modules, data flows, patterns
- π Get an interactive visual walkthrough:
- πΊοΈ Architecture Diagram β auto-generated Mermaid diagram showing how components connect
- π¦ Module Breakdown β every major module explained with key files highlighted
- π Key Code Flows β step-by-step walkthroughs of critical paths (auth, API lifecycle, data pipeline, etc.) with annotated code snippets
- π¬ Ask follow-up questions β chat with the codebase using semantic code search
ποΈ How It Works
GitHub Repo URL
β
βΌ
βββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββ
β π Next.js UI βββββΊβ β‘ FastAPI Backend β
βββββββββββββββββββ ββββββββββββββββ¬ββββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββ
β π€ Railtracks Agent Pipeline β
β β
β IndexerAgent βββββββββββββββΊβ
β ArchitectureAgent βββββββββΊβ
β ModuleAgent βββββββββββββββΊβ
β FlowAgent βββββββββββββββββΊβ
β DiagramAgent (+ validator) βΊβ
β ComposerAgent βββββββββββββΊβ
ββββββββ¬βββββββββββ¬ββββββββββββ
β β
ββββββββββββΌβ ββββββββΌβββββββββββ
β 𧬠Augment β β π DigitalOcean β
β Context β β Gradient AI β
β Engine β β Inference β
βββββββββββββ βββββββββββββββββββ
π The Agent Pipeline (Built with Railtracks)
RepoLens uses 7 specialized AI agents orchestrated as a sequential flow with a validation loop:
| Agent | Job |
|---|---|
| ποΈ IndexerAgent | Indexes the repo using Augment Context Engine via MCP |
| ποΈ ArchitectureAgent | Identifies architecture patterns, tech stack, and design decisions |
| π¦ ModuleAgent | Breaks the codebase into logical modules with descriptions |
| π FlowAgent | Discovers 3-5 critical code flows with step-by-step walkthroughs |
| π DiagramAgent | Generates a Mermaid.js architecture diagram |
| β DiagramReviewer | Validates diagram syntax and completeness (validation loop) |
| πΌ ComposerAgent | Assembles everything into a structured response for the UI |
Plus a π¬ ChatAgent for follow-up Q&A powered by semantic code retrieval.
𧬠Augment Code β The Brain of RepoLens
Augment's Context Engine is the centerpiece β it's what makes the analysis actually understand code rather than just pattern-match.
- Context Connectors index any GitHub repo into a semantic search engine
- Agents query the index via MCP (Model Context Protocol) to find relevant code
- The ChatAgent uses semantic retrieval for grounded, accurate answers
- Every code snippet shown in the UI comes from Augment's semantic search β not naive grep
# Railtracks agents connect to Augment via MCP
augment_server = connect_mcp(
MCPHttpParams(url="http://localhost:8081/mcp")
)
ArchitectureAgent = rt.agent_node(
tool_nodes=augment_server.tools, # 𧬠Augment search tools
llm=do_gradient_llm, # π DigitalOcean inference
system_message="Analyze this codebase's architecture..."
)
π DigitalOcean β Infrastructure & Intelligence
- Gradient AI Inference Hub β powers all LLM calls across every agent (OpenAI-compatible API)
- App Platform β one-click deployment for both frontend and backend
- All inference runs through
inference.do-ai.runβ zero infrastructure to manage
π€ Railtracks β The Orchestration Layer
- Flows are just Python β no config files, no DSLs, just async/await
- Sequential pipeline with a validation loop for diagram quality
- Built-in MCP support connects directly to Augment's Context Engine
- Full observability and error handling out of the box
π οΈ Tech Stack
| Layer | Technology |
|---|---|
| π Frontend | Next.js + Tailwind CSS + shadcn/ui |
| β‘ Backend | Python + FastAPI + uvicorn |
| π€ Agents | Railtracks β flows are just Python |
| 𧬠Code Intelligence | Augment Code Context Connectors + Context Engine SDK |
| π§ LLM Inference | DigitalOcean Gradient AI Inference Hub |
| π Diagrams | Mermaid.js |
| π Deployment | DigitalOcean App Platform |
π Quick Start
# Clone
git clone https://github.com/your-org/repolens.git && cd repolens
# Backend
cd backend
cp .env.example .env # Add your API keys
uv sync
uv run uvicorn main:app --reload --port 8000
# Frontend (new terminal)
cd frontend
pnpm install && pnpm dev
Open http://localhost:3000 and paste a GitHub URL π
π Environment Variables
DO_MODEL_ACCESS_KEY= # DigitalOcean Gradient AI key
AUGMENT_SESSION_AUTH= # From `auggie token print`
GITHUB_TOKEN= # GitHub PAT for repo access
π¬ Demo Script (3 Minutes)
| Time | Action |
|---|---|
| 0:00 | π€ "Every developer wastes hours understanding new codebases. We fixed that." |
| 0:15 | π Paste a GitHub repo URL into RepoLens |
| 0:30 | β³ Show the agent pipeline working β "7 AI agents powered by Railtracks, using Augment's Context Engine to deeply understand the code" |
| 1:00 | πΊοΈ Walk through the architecture diagram |
| 1:30 | π¦ Show module breakdown + key code flows with annotated snippets |
| 2:00 | π¬ Ask a follow-up question in the chat β "How does authentication work?" |
| 2:30 | π "Deployed live on DigitalOcean App Platform, LLM inference via Gradient AI" |
| 2:45 | π― "Try it yourself" β share the live URL |
π₯ Team
Built with β€οΈ and β at the Multimodal Hackathon 2026
π€ Built with Railtracks Β· 𧬠Powered by Augment Code Β· π Deployed on DigitalOcean
Log in or sign up for Devpost to join the conversation.