πŸ” 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.

RepoLens Railtracks Augment


πŸ’‘ 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

  1. πŸ“Ž Paste a GitHub repo URL
  2. πŸ€– AI agents analyze the entire codebase β€” architecture, modules, data flows, patterns
  3. πŸ“Š 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
  4. πŸ’¬ 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

Built With

Share this project:

Updates