I have a folder of old study notes. PDFs from last semester, Markdown files I wrote at 2 AM before exams, half-finished revision sheets. I wrote them once and never opened them again.

For Kiroween 2026 I decided to bring them back from the dead. Ghost Tutor is a tutor that lives in your browser, reads only your notes, and answers questions from them, with the exact file and page.

🔗 Live: https://ghost-tutor.vercel.app
🎥 Demo: https://youtu.be/D7kE91KPmd0?si=daL92_ELafjbWuNk
💻 Code: https://github.com/Harini-vm/ghost-tutor

Ghost Tutor welcome screen

Two rules I didn't want to break

  1. The ghost never makes things up. If my notes don't cover a question, it says "The spirits are silent — your notes don't cover this." Ask it who won the cricket World Cup and it refuses.
  2. Notes never leave the device. No login, no server, no API key. Everything is stored in IndexedDB and runs in the browser.

I built the whole thing with Kiro, and those two rules are where Kiro first helped.

Steering first, code later

Before writing any code I wrote four steering docs: product.md, tech.md, structure.md, and ui-haunting.md. The last one only applies to UI files (via fileMatch) and says: spooky, but accessible, with reduced-motion fallbacks.

This sounds boring, but it meant I never had to repeat "don't add a backend" or "always cite the source" in a prompt. Every Kiro session already knew.

Four specs, one at a time

I built the app as four specs, each going requirements → design → tasks:

  • insert-disc: add PDF/Markdown/text notes, chunk them, and index them with BM25
  • seance-chat: ask questions, with a grounding gate and citations
  • haunted-polish: GhostOS 95, a fake 90s desktop with a 3D resurrecting disc (Three.js)
  • pop-quiz: fill-in-the-blank questions generated from your own notes

The spec forced me to decide things I'd normally discover as bugs: what happens with an empty file, what counts as "covered by the notes", what a fair quiz question even is.

Hooks that worked while I wasn't looking

I set up two agent hooks:

  • Test ghost runs the full test suite every time I save a file in src/core.
  • Haunted but accessible reviews UI files on save and flags missing labels, focus problems and animation without a reduced-motion fallback.

The second one fired on its own while I was styling the desktop and pointed out things I had genuinely missed.

Agent hook firing in Kiro

My favourite part: an agent whose job was to attack my design

For the quiz I created a custom agent, exam-skeptic (.kiro/agents/exam-skeptic.md). It's read-only, and its whole personality is "strict examiner". I asked it to review the quiz design, before any code existed.

It found 14 problems. Some of them:

  • The correct answer was the only capitalised choice, so you could guess it without knowing anything.
  • If there weren't enough wrong options, it fell back to random words like "that" or "which".
  • If the answer word appeared twice in a sentence, blanking only the first one left it visible.
  • Pressing Retry gave the same questions again.

I fed the list back into the spec. On re-review, 13 of 14 were fixed.

After the quiz shipped, I asked it to review the real code. It caught something I'd have missed: for "_____ — Function: Release usable energy from food", one of the wrong choices was organelles. But mitochondria are organelles, so that question had two correct answers. I fixed it and added tests so it can't come back.

exam-skeptic review in Kiro

Property-based tests

Kiro wrote property-based tests with fast-check alongside normal unit tests. For the quiz, the properties include:

  • the answer never appears in the question,
  • wrong choices never appear in the source sentence,
  • the same seed always gives the same quiz,
  • a wrong answer key is always rejected.

The project ended with 532 passing tests.

What went wrong

My own laptop couldn't run the AI model. I planned to run Llama 3.2 1B in the browser with WebLLM. My laptop has an AMD integrated GPU with an old driver, and WebGPU kept crashing with "Device lost". So I flipped the design: whisper mode became the default. It's an extractive answer engine that needs no GPU and no download. The full model became an optional "Summon the ghost" button. It works on my phone, and judges don't have to download 0.9 GB to try the app.

Search was too strict, then too loose. Exact word matching silenced real questions. Then prefix matching made "mitochondria" match "mitosis". It took a tighter rule and a few tests to get right.

The quiz was correct but bad. The first version offered wrong choices like "absorbs" and "tiny" next to "oxygen". Grammar gave the answer away. Limiting blanks and choices to real concept terms fixed it. Now the wrong options are things like nucleus, ribosomes and chloroplasts.

Pop Quiz in Ghost Tutor

What I learned

Prompting is fast, but I kept re-explaining myself. Specs plus steering meant I explained things once. The biggest surprise was the custom agent: having something whose only job was to find holes in my design caught bugs before they existed.

What's next

Exporting and sharing discs as .ghost files, spaced-repetition review, and better wrong choices for paragraph questions.

If you have a folder of dead notes too, try it: https://ghost-tutor.vercel.app 👻

KiroweenHackathon26