# Mohamed Belhassen

- **Event:** [Meta Global AI Developer Hackathon](https://cerebralvalley.ai/e/meta-ai-developer-hackathon)
- **When:** Oct 26, 12:00 PM – Nov 4, 9:00 PM (EST)
- **Where:** Online
- **Team:** [Mohamed Belhassen](https://cerebralvalley.ai/u/mbelhassen)
- **GitHub:** https://github.com/mohamedbelhassen/meta-hackathon-socratix-java-oop-mentor.git
- **Demo video:** https://youtu.be/Ffn0IdPTNHE
- **Gallery:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/4256

## Inspiration (Build for Your World)
As a CS lecturer at the Faculty of Sciences of Gabès, my programming labs faced two issues: generic LLMs letting students copy-paste solutions without learning, and instructor blindness across 25+ PCs. Also, campus PCs forbid IDE plugins. I built Socratix: a course-agnostic, zero-install Pedagogical ERP.

## What It Does
**1. Zero-Install Student Workspace:** Links local IDE folders via the browser's File System Access API. `muse-spark-1.3` guides students with Socratic questions (80-110 words) without leaking code. It cites exact lecture slides in a 3-Mode Smart Slide Viewer (EN/FR/PDF), translating missing slides just-in-time while enforcing the course's `tutor_language`. 
**2. Teacher ERP Hub:** Features live WebSocket telemetry and automatic Classroom Bottleneck Alerts. Instructors get `file:location` drill-downs, live code snapshots, and Remediation-Aware Mastery (failed concepts become "Mastered after remediation"). A Course Studio digests raw PDFs into complete AI courses.

## 6 Layers of Meta AI (muse-spark-1.3)
Socratix uses deterministic algorithms paired with 6 AI pipelines:
1. **Pre-Flight:** Syllabus ordering with verbatim Grounding Evidence.
2. **Slide Distillation:** Bilingual Markdown (FR/EN) retaining code identifiers.
3. **2-Pass Synthesis:** Compiles full taxonomies without character truncation.
4. **Lab Decomposition:** Generates sequential activities and Buggy/JURY presets.
5. **Live Tutor:** Uses 24h Prefix KV Caching and runtime-compiled strict JSON schemas to prevent hallucinated IDs.
6. **Silent Telemetry:** Emits structured per-turn diagnostic mastery evaluations.

## Engineering Challenges
We bypassed serverless timeouts via 2-pass compilation, eliminated hallucinations using dynamic JSON schemas matching DB enums, and built a Dual-Track Architecture to instantly switch between frictionless Hackathon Jury evaluation and strict classroom mode.

## Real-World Validation
Deployed for Java OOP and Web Dev (HTML/CSS) at FSG.
- Tested live in lab room A1-12 with 04 undergraduate students working on local folders across 03 workstations and 1 laptop.
- Key observation: The Teacher Hub's Bottleneck Alert surfaced 2 students stuck on Milestone 2 within minutes, allowing targeted whiteboard intervention. Meta Prefix KV Cache hit rate reached 95% across classroom turns.

## More from Meta Global AI Developer Hackathon

- [StartHustler](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/4253)
- [Oera](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/4254)
- [ConVía](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/4255)
- [Cetchup](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/4257)
- [rob](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/4258)
- [AIGIS](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/4259)

---

Markdown version of https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/4256. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
