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!





