A cartoonish, student-friendly local AI developer tool built by @harshitethic for his college bhais โค๏ธ
RepoPilot lets you paste a public GitHub repository, clone it locally, inspect its structure, search its source code, calculate transparent project-health signals, and ask a local AI engineer questions about how the codebase works.
No OpenAI. No Gemini. No paid API keys.
Everything important runs locally with Git + FastAPI + React + Ollama.
GitHub Repository
โ
Git Clone
โ
Source Indexer
โ โ โ
Search Health File Tree
โ
Relevant Code Context
โ
Ollama + Local LLM
โ
Developer Answer
- ๐ GitHub repository cloning
- ๐ณ Interactive file tree
- ๐ Real source-code search
- ๐ง Ask AI about the codebase
- ๐๏ธ Architecture explanation
- โค๏ธ Repository health score
- ๐ Language and code statistics
- ๐ Local-first AI
- ๐ซ No paid AI API
- ๐ก๏ธ Does not execute cloned repository code
- ๐ Dark mode
- ๐จ Cartoonish / meme-ish student UI
RepoPilot uses Ollama instead of a paid cloud AI API.
Recommended starter model:
llama3.2:1b
Install it:
ollama pull llama3.2:1bRun it:
ollama run llama3.2:1bYou can also change the model through the OLLAMA_MODEL environment variable.
For example:
$env:OLLAMA_MODEL="llama3.2:3b"A larger model can provide better explanations if your machine has enough RAM.
| Layer | Technology |
|---|---|
| Frontend | React |
| Build tool | Vite |
| Backend | FastAPI |
| Language | Python |
| Local AI | Ollama |
| LLM | Llama 3.2 |
| Git operations | Git CLI |
| HTTP | REST API |
| Styling | Custom CSS |
| Icons | Lucide React |
Recommended:
- Windows / macOS / Linux
- Python 3.12
- Node.js 18+
- Git
- Ollama
- 8 GB RAM recommended
- Internet connection for cloning public GitHub repositories
Python 3.12 is recommended for a predictable backend setup.
git clone https://github.com/harshitethic/RepoPilot.git
cd RepoPilotInstall Ollama, then:
ollama pull llama3.2:1bTest it:
ollama run llama3.2:1bKeep Ollama running.
Create a Python environment:
py -3.12 -m venv .venvActivate it:
.venv\Scripts\Activate.ps1Upgrade pip:
python -m pip install --upgrade pipInstall dependencies:
pip install -r backend
equirements.txtStart FastAPI:
cd backend
python -m uvicorn app:app --host 127.0.0.1 --port 8000You should see:
Uvicorn running on http://127.0.0.1:8000
Keep this terminal open.
Open another terminal:
cd frontend
npm install
npm run devOpen:
http://localhost:5173
ollama run llama3.2:1b.venv\Scripts\Activate.ps1
cd backend
python -m uvicorn app:app --host 127.0.0.1 --port 8000cd frontend
npm install
npm run devThen visit:
http://localhost:5173
Paste a public GitHub repository such as:
https://github.com/fastapi/fastapi
Then click:
Analyze repository
After indexing, try:
Where is the main application entry point?
How does the API request flow work?
Where is authentication handled?
Where is the database connection created?
Search for:
router
or:
authentication
or:
FastAPI
Click:
Explain architecture
RepoPilot will send relevant repository context to the local Ollama model and generate an explanation.
RepoPilot intentionally uses a transparent heuristic instead of pretending an AI-generated number is an objective engineering metric.
It checks signals such as:
- README
- Tests
.gitignore- Package/dependency manifest
- GitHub Actions / CI
- Docker configuration
- Source files
- Project size
For example:
Repository Health
60 / 100
โ README
โ Package / Manifest
โ Tests
โ .gitignore
โ CI / CD Workflow
โ Docker Support
The score is not a security audit.
It is simply a quick project-quality signal.
RepoPilot is deliberately conservative.
- Clone public GitHub repositories
- Read source/documentation files
- Search source code
- Send selected code context to your local Ollama server
- Execute cloned repository code
- Run
npm installinside the cloned repository - Run arbitrary repository scripts
- Require OpenAI/Gemini API keys
- Upload your repository to a cloud AI service
The local clone directory is ignored by Git:
backend/repos/
RepoPilot/
โ
โโโ backend/
โ โโโ app.py
โ โโโ requirements.txt
โ โ
โ โโโ repos/
โ โ
โ โโโ services/
โ โโโ analyzer.py
โ โโโ github.py
โ โโโ ollama.py
โ
โโโ frontend/
โ โโโ package.json
โ โโโ vite.config.js
โ โ
โ โโโ src/
โ โโโ main.jsx
โ โโโ styles.css
โ
โโโ screenshots/
โ โโโ dashboard.png
โ โโโ repository-analysis.png
โ โโโ ask-ai.png
โ โโโ code-search.png
โ โโโ architecture.png
โ โโโ file-tree.png
โ
โโโ .gitignore
โโโ README.md
The FastAPI backend exposes:
GET /api/health
POST /api/analyze
POST /api/search
POST /api/ask
POST /api/architecture
GET /api/health
Checks whether Ollama is reachable and reports available models.
POST /api/analyze
Clones and indexes a public GitHub repository.
POST /api/search
Searches indexed source files.
POST /api/ask
Builds relevant code context and asks the local LLM.
POST /api/architecture
Generates an architecture explanation using repository context.
RepoPilot combines several real engineering concepts in one application:
React
+
FastAPI
+
Git
+
Code indexing
+
Search
+
Local LLM
+
REST APIs
+
Repository analysis
It is also easy to demonstrate in a viva:
"Give me a GitHub repository and I can locally clone it, inspect it, search its code, analyze project health, and ask an open-source local LLM questions about its architecture."
That's a much better demonstration than a static AI chatbot.
This version intentionally supports public GitHub repositories only.
It does not currently:
- Analyze private repositories
- Execute project code
- Build dependency graphs
- Parse every programming language with a full AST
- Perform a real security audit
- Guarantee that the LLM's explanation is correct
The AI is only as reliable as the repository context and local model.
Possible upgrades:
- ZIP repository upload
- Private GitHub OAuth
- GitHub App integration
- AST-based code analysis
- Dependency graph visualization
- Call graph visualization
- Git commit history analysis
- Security smell detection
- Automatic README generation
- Local embeddings / RAG
- Multiple Ollama models
- Export architecture report as PDF
- Repository comparison
- Code-quality trends
Built by @harshitethic
Made for students who want to build, understand, customize, and actually explain their projects in the viva.
No fake demo.
No:
"Please enter your OpenAI API key"
Just clone it, run it, understand it, and make it better. ๐
Star the repository โญ
Fork it ๐ด
Break it ๐
Fix it ๐ง
And most importantly:
Understand your code before your viva. ๐ญ
MIT License.





