cd /news/ai-tools/labcode-fixer-viva-coach · home › topics › ai-tools › article
[ARTICLE · art-144368] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

LabCode Fixer & Viva Coach

A college student developer built LabCode Fixer & Viva Coach, an AI-powered tool that debugs programming assignments and generates viva questions so students can explain their fixes rather than just copy solutions. The application runs a Streamlit frontend against a FastAPI backend that calls the Gemma 2B model through Ollama, returning an error explanation, corrected code, and three technical viva questions based on the student's actual code. The source code is published on GitHub, with the virtual environment and downloaded model files excluded from the repository.

by read2 min views3 publishedOct 3, 2026

Don't just fix the bug. Learn how to defend the code.

LabCode Fixer & Viva Coach is an AI-powered debugging and viva preparation tool built for me and a fellow college student who work with programming assignments and laboratory exercises.

While debugging a program, fixing the error is only one part of the problem. During a laboratory viva, a student may also be asked:

I wanted to build something that helps with more than just getting code to run.

The idea is simple:

Debug → Understand → Correct → Defend

The student provides:

The application then provides:

The current version supports:

The goal is not just to help students fix errors, but to help them understand the fix and prepare to explain their code during a viva.

The demo shows the complete workflow:

Enter code → Enter error → Analyze → Understand the error → See corrected code → Practice viva questions

Demo video:

The demo is approximately 1 minute and 31 seconds long and focuses on the working application.

The complete source code is available on GitHub:

LabCode Fixer & Viva Coach is a student-focused AI debugging and viva preparation tool.

It helps students understand programming errors instead of simply copying a solution. The application explains why the code failed, provides a corrected version, and generates three technical viva questions based on the student's actual code.

Students often use AI tools to fix compiler or runtime errors, but they may still struggle to explain the solution during a laboratory viva.

A professor may ask:

LabCode Fixer & Viva Coach is designed to help students understand their errors and prepare for these questions.

The application…

The repository contains:

backend/main.py`` backend/requirements.txt``frontend/app.py`` README.md``LICENSE``.gitignore The Python virtual environment and downloaded AI model files are not included in the repository.

The project uses a simple architecture where each component has a clear responsibility.

text
Student
   |
   v
Streamlit Frontend
   |
   v
FastAPI Backend
   |
   v
Ollama
   |
   v
Gemma 2B
   |
   v
AI Analysis
   |
   v
Streamlit Frontend
── more in #ai-tools 4 stories · sorted by recency
── more on @labcode fixer & viva coach 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/labcode-fixer-viva-c…] indexed:0 read:2min 2026-10-03 · —