How mohit-rocky-25/repopilot works
RepoPilot is a repository exploration and code-intelligence platform. A user imports a public GitHub repository, pins a revision, then browses and searches its files, views architecture, asks grounded questions, or investigates a stack trace and reviews a proposed patch. The graph includes documented capabilities whose implementation paths are present in the tree, but not sampled. Edges are limited to relationships visible in excerpts or explicitly documented in the README; unsampled wiring is not inferred.
Main entry points: ask/route.ts Assistant endpoint · client.ts GitHub client · analyze/route.ts Analysis endpoint · page.tsx File browser
Components 28
Product interface
- Workspace
src/app/page.tsx - Repository state
src/context/RepositoryContext.tsx - File browser
src/app/explore/page.tsx - File tree
src/components/explorer/FileTree.tsx - Code viewer
src/components/ui/CodeViewer.tsx - Search interface
src/app/search/page.tsx - Architecture view
src/app/architecture/page.tsx - Interactive map
src/components/architecture/ArchitectureMap3D.tsx - Assistant interface
src/app/assistant/page.tsx - Debug interface
src/app/debugging/page.tsx - Patch review
src/app/patches/page.tsx
Repository access
- GitHub API
- GitHub client
packages/github/src/client.ts - Response cache
packages/github/src/cache.ts - URL validation
packages/github/src/validator.ts
Code intelligence
- Shared contracts
packages/core/src/schemas.ts - Symbol extraction
packages/indexer/src/symbolExtractor.ts - Ranked search
packages/search/src/searchEngine.ts - Architecture analysis
packages/analysis/src/architectureAnalyzer.ts - Assistant endpoint
src/app/api/ai/ask/route.ts - Prompt builder
packages/ai/src/promptBuilder.ts - Local inference
packages/ai/src/ollamaClient.ts - Citation validation
packages/ai/src/citationValidator.ts
Debugging and review
- Analysis endpoint
src/app/api/debugging/analyze/route.ts - Stack parser
packages/debugging/src/stackTraceParser.ts - Hypothesis engine
packages/debugging/src/hypothesisEngine.ts - Execution policy
packages/execution/src/executionPolicy.ts
Other components
- Developer
Connections 33
- Developer → Workspace: opens
README.md - Workspace → Repository state: updates
src/app/page.tsx - Repository state → File browser: supplies repository
- File browser → File tree: renders
- File browser → Code viewer: shows source
- Developer → GitHub API: imports repository
README.md - GitHub API → GitHub client: serves requests
packages/github/src/client.ts - GitHub client → Response cache: caches responses
packages/github/src/client.ts - GitHub client → URL validation: validates references
- GitHub client → Repository state: provides pinned files
- Developer → Search interface: searches code
README.md - Search interface → Ranked search: submits query
- Ranked search → Symbol extraction: searches extracted symbols
README.md - Developer → Architecture view: views architecture
README.md - Architecture view → Interactive map: renders graph
src/app/architecture/page.tsx - Architecture view → Architecture analysis: requests analysis
- Architecture analysis → Shared contracts: uses contracts
packages/analysis/src/architectureAnalyzer.ts - Developer → Assistant interface: asks question
README.md - Assistant interface → Assistant endpoint: submits question
- Assistant endpoint → GitHub client: fetches repository
src/app/api/ai/ask/route.ts - Assistant endpoint → Ranked search: retrieves matches
src/app/api/ai/ask/route.ts - Assistant endpoint → Prompt builder: builds prompt
src/app/api/ai/ask/route.ts - Assistant endpoint → Local inference: runs inference
src/app/api/ai/ask/route.ts - Assistant endpoint → Citation validation: validates citations
src/app/api/ai/ask/route.ts - Developer → Debug interface: submits trace
README.md - Debug interface → Analysis endpoint: requests analysis
- Analysis endpoint → GitHub client: loads repository
src/app/api/debugging/analyze/route.ts - Analysis endpoint → Stack parser: parses trace
src/app/api/debugging/analyze/route.ts - Analysis endpoint → Hypothesis engine: ranks causes
src/app/api/debugging/analyze/route.ts - Hypothesis engine → Stack parser: uses parsed frames
packages/debugging/src/hypothesisEngine.ts - Hypothesis engine → Patch review: proposes patch
- Patch review → Developer: presents for review
README.md - Developer → Execution policy: reviews safely
README.md