Homework AI gives answers. Students learn nothing.
Ask an AI, get the solution, copy it, feel done. We're students ourselves, and we know how easy it is to feel productive while learning nothing. Teachers can't see it happen.
So we built a tutor that holds back.
AI Tutor: it guides, it doesn't solve
- Hint ladder (L1 → L4): from a small nudge to a bigger clue, never the finished answer.
- A guard you can't talk around: every reply is checked. If it contains a final number, finished code or a full solution, it is blocked and regenerated. Reference solutions stay on the server, and prompt attacks ("ignore your rules...") are detected and logged.
- It knows each student: a profile card built from their prompts shows level, strengths, common misconceptions, how they ask for help and how independent they are. It is versioned and linked to the original messages.
- Teachers stay in the loop: notes, flags and praise, plus the full prompt history.
- Real course content: the "Binas OS" Python course (8 tasks with tests and hints, plus lessons) and a multi-file MicroPython lab from our IoT course with 14 in-browser tests. In that lab the tutor gives no code at any hint level.
Why we built it
The hackathon asks how to raise the bar in education. Our answer: don't make answers faster, make understanding deeper. A tutor that makes you think is worth more than one that makes you finish.
How we built it
Python 3.11, FastAPI, SQLAlchemy 2 and Alembic on the backend. The interface is Jinja2 + HTMX. Data lives in MySQL, with SQLite in tests. The model sits behind a provider layer that works with any OpenAI-compatible endpoint, and we ran it with DeepSeek. Student code can run in the browser through Pyodide. A mock provider lets us test offline. We demo it with a 24-student class.
What was hard
Language models love to help, so they leak answers. Polite instructions in the prompt were not enough. We moved the rule outside the model: a deterministic guard checks every reply and forces a regeneration. We test it with a golden set of cases.
What we learned
Teaching rules work best as code around the model, not as wishes inside the prompt.
What's next
Spaced reviews that bring old topics back before they are forgotten, a study plan with small goals, hints that fade automatically as a student improves, and more learning-science principles (active recall, interleaving).
Our goal: deeper understanding, not faster answers.
Built With
- alembic
- fastapi
- htmx
- jinja
- mysql
- python
- sqlalchemy
- sqlite