TechGuru is an interactive AI code-teaching agent built for software students who need:
- A teacher
- A mentor
- A tech lead
- A code reviewer
- A bug fixer
- A test writer
- A project generator
Instead of just answering questions, TechGuru teaches you how to think like a real software engineer.
It’s powered by:
- FastAPI backend
- Gemini 2.0 Flash Lite (affordable, fast, highly capable)
- Fully custom ChatGPT-style UI with streaming
- Multiple intelligent agents (
explain,generate-tests,bughunt,scaffold) - Local project generation & auto-pytest execution
📌 This project is submitted to the Kaggle Agents Capstone competition. Check the writeup here: https://kaggle.com/competitions/agents-intensive-capstone-project/writeups/techguru
┌────────────────────┐
│ Web UI │
│ (streaming + Prism │
└─────────┬──────────┘
│ /stream
┌─────────▼──────────┐
│ FastAPI Backend │
│ - explain │
│ - generate-tests │
│ - bughunt │
│ - scaffold │
│ - run-tests │
└─────────┬──────────┘
│
┌─────────▼──────────┐
│ Agent Layer │
│ ExplainAgent │
│ TestGenAgent │
│ BughuntAgent │
│ ScaffoldAgent │
└─────────┬──────────┘
│
┌─────────▼──────────┐
│ Gemini API 2.0 Lite │
└─────────────────────┘
Below are actual screenshots from your Images/screenshots/ folder.
Replace filenames if needed.
git clone https://github.com/shubhamranswal/TechGuru
cd TechGurupython -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activatepip install -r requirements.txtWindows:
setx GOOGLE_API_KEY "your_key_here"Mac/Linux:
export GOOGLE_API_KEY="your_key_here"uvicorn demo.demo_fastapi:app --reloadhttp://127.0.0.1:8000/chat
POST /explain
POST /generate-tests
POST /bughunt
POST /scaffold
GET /run-tests
POST /stream <-- streaming UI endpoint
Example:
curl -X POST "http://127.0.0.1:8000/explain" \
-H "Content-Type: application/json" \
-d "{\"code\":\"def add(a,b): return a+b\"}"Generated automatically:
myproject/
├── README.md
├── src/
│ └── main.py
├── tests/
│ └── test_main.py
└── .github/workflows/ci.yml
TechGuru/
├── app/
│ ├── agent_core.py
│ ├── code_tools.py
│ ├── srs_scheduler.py
│ └── scaffolder.py
├── demo/
│ ├── demo_fastapi.py
│ └── sample_project/
├── notebooks/
│ └── techguru_demo.ipynb
├── data/
│ └── sample_projects/
├── tests/
│ └── test_agent_core.py
├── requirements.txt
├── README.md
└── .github/workflows/ci.yml
python -m pytestScaffold-generated projects also include their own tests.
👉 https://kaggle.com/competitions/agents-intensive-capstone-project/writeups/techguru
- VS Code extension
- More languages (JS, Java, C++)
- Better patch viewer
- Multi-file understanding
- Real-time tutoring mode
- Deploy live demo server
- Student progress tracking
Shubham Singh Ranswal Software Engineer
Pull requests are welcome! If you want to add test templates, fix prompts, or extend to new languages - feel free to contribute.
This project is licensed under the MIT License.
TechGuru started as a simple agent… and became a friendly, powerful personal tech lead for students everywhere.
If you like the project, ⭐ star the repo and share it!





