💡 Inspiration

We started this hackathon by arguing about how to study for the same exam, and realised the argument was the problem.

One of us is a fast learner: give them three bullet points and they're gone, already bored by paragraph two. One of us is a deep diver, who can't move on until they know why, and reads the footnotes of the footnotes. One of us can't hold focus for more than ten minutes, however much they care. One of us only gets it when they can see it move: a diagram, a simulation, something alive. And one of us is a little Socrates: don't tell me it's true, prove it, show me the experiment, let me try to break it.

Same lecture. Same textbook. Five completely different brains.

And yet every tool we use, AI included, hands all five of us the same wall of text. The AI tools only made it faster: they summarise our notes, but they don't teach, they don't know us, and sometimes they confidently make things up. Worse, our lecturers only find out what we misunderstood when the exam marks come back.

So we asked: what if a lesson could reshape itself around the way you think?

🧩 What it does

Mosaic is an AI study companion built for every kind of learner, because a class is a mosaic of different minds.

  • 🧪 Learn by doing: ask any science question and an AI agent builds a predict → run → explain experiment, with live scenes: a cannon game on the Moon, a particle chamber, a predator–prey meadow. Little Socrates gets the proof.
  • 🌱 Knows you, without labels: Mosaic watches what you do (focus span, skimming, depth, practice) and finds your learning mix: deep diver, quick answers, hands-on, listener… then reshapes the lesson. Every finding shows its evidence, and you can disagree.
  • 🐣 Pip, the Socratic coach: answers only from your lecture, cites the slide, gives hints, not answers, and pauses for your lecturer when it isn't sure. Friendly, funny or 🎮 quest mode.
  • 📅 Plans your path: exam plans sized to your real focus span, extra time on weak topics, and a two-minute "tiny first step" for the days starting is the hardest part.
  • 👩‍🏫 Teacher Studio: lecturers see what the class misunderstands ("64% predicted the heavy ball lands first"), never the individual child, and approve AI-built experiments before students see them.

🛠️ How we built it

Mosaic is a Next.js + TypeScript app with Claude as its agents, and one rule at its heart:

The AI is never allowed to do the maths.

Instead of letting a model invent physics, we wrote six small, tested scientific models. The AI only chooses a model and writes the story around it. The engine computes the truth. Free fall without air:

$$ t = \sqrt{\frac{2h}{g}} $$

A projectile's range:

$$ R = \frac{v^2 \sin 2\theta}{g} $$

Reaction rates follow the Arrhenius equation, which is why a hotter or catalysed reaction visibly fizzes faster in our particle chamber:

$$ k = A\, e^{-E_a / RT} $$

And foxes and rabbits rise and fall with the Lotka–Volterra equations, integrated with RK4:

$$ \frac{dR}{dt} = \alpha R - \beta R F, \qquad \frac{dF}{dt} = \delta R F - \gamma F $$

Every prediction is checked by a fair test: the engine runs both conditions and compares the results itself. A change smaller than 5% counts as "about the same":

$$ \frac{|y_{\text{after}} - y_{\text{before}}|}{|y_{\text{before}}|} < 0.05 $$

If the AI's explanation disagrees with what the engine measured, the work is sent back to the AI, up to three times. The AI can't quietly be wrong.

Around that sits a full agent pipeline:

  • an input guard against prompt injection
  • a designer agent that returns structured specs, never code
  • an engine verifier
  • a coach agent grounded in retrieved slides, with citation checks
  • an output guard
  • checkpointed human-in-the-loop pauses

It all streams live (server-sent events) and runs offline when the AI is unavailable. Students' data stays on their own device. We also exposed the lab as an MCP server, so any AI client can build and run experiments.

We tested it like we meant it: 183 unit tests and 44 end-to-end browser journeys.

🧗 Challenges we ran into

  • An AI can be confidently wrong about physics. Our first idea, letting the model generate simulations, would have taught students wrong science with total confidence. Splitting the work so the AI designs and the engine decides became the core of the whole product.
  • "Learning styles" are a myth, and we almost built one. Research doesn't support fixed visual/auditory types. So we threw out labels and adapted to behaviour and results instead: patterns that change week to week, always shown with their evidence.
  • Hallucinations in a tutor are dangerous. A coach that invents facts is worse than no coach. Pip may only answer from retrieved lecture slides; every claim must cite one, and invented citations are deleted before the student sees them.
  • Privacy with students under 18. We wanted teachers to see misconceptions without exposing anyone. Teachers see counts only, never names, and any group smaller than five is hidden, so no one can be singled out.
  • Making the AI fail gracefully. The night before an exam is exactly when the Wi-Fi drops. Every AI feature has an offline fallback, so Mosaic keeps teaching.
  • Five brains, one codebase. Merging everyone's branches (the coach, the zodiac Pip avatars, the human-review queue) taught us that a test suite is the best teammate you can have.

📚 What we learned

  • Personalisation isn't a quiz about your brain. It's paying attention to what someone actually does, and being honest about it.
  • The best use of AI is knowing what not to let it do. Trust came from the guardrails, not from the model.
  • Doing beats reading. Watching a bowling ball and a football hit the ground together teaches more in ten seconds than a page of explanation.
  • Teachers aren't an afterthought. Keeping a human in the loop made the AI more useful, not less.

🚀 What's next

Real classroom pilots, school sign-in with teacher roles, more subjects (every new topic is a new spec, not new code), and audio and visual lessons for every learner.


Every lesson, shaped for the way you learn.

Built With

Share this project:

Updates

Submission history