I wrote this post as part of the Kiroween 2026 hackathon.
I'm a first-year programming student in Spain. In class I'm learning Java. Outside class, I build projects by telling an AI what to do. Before this, I studied law.
In my last hackathon project the code worked, and nobody on the team had read it. Me neither. If someone had asked me what one of the files did, I would have had to ask the AI.
That gap has a name: comprehension debt. It's the distance between the code your project has and the code you actually understand. I read about it in a post by Addy Osmani, and I recognised myself straight away.
So for Kiroween I built Haunted Repo.
What it does
Haunted Repo turns a GitHub repository into a haunted house. It picks up to five key files and gives each one a difficulty from 0 to 100. Those files are the ghosts. Easy ones live in the attic, hard ones in the basement.
To make a ghost leave, you have to understand it. A Tutor explains the file in plain words, then asks you three questions about what the code does. If you say "I don't know", you get a simpler explanation and the same question again. Two good answers out of three and the ghost is gone.
The real tool is a Kiro Power. You install it in Kiro and your own Kiro becomes the Tutor, so there's no paid AI and nothing to sign up for. The rules for passing are in tested code, not in the chat. There's also a website where you can try three ghosts with nothing to install.
How I built it when I can't read TypeScript
This is the part I want to talk about. Every change in the repository went through Kiro: every commit and every pull request. I can't review the code, so I had to find another way to know it was right.
Specs. Every feature started as a spec: requirements, then design, then tasks. I approved each one before any code existed. I can't judge TypeScript, but I can read "WHEN a file is bigger than 100 KB, the detector SHALL skip it" and say yes or no. The spec was the only place where my decisions could reach the code.
Steering. I wrote rules that load in every conversation: I'm a beginner, explain every new word, ask before changing code, never merge. One rule only loads when Kiro touches the website's visuals. I added it after one animation needed three rounds of fixes because I had never said what "done" meant.
A hook. After every task, a hook runs lint, build and all the tests. Over 1,100 of them by the end, many property-based. A property is a rule I can read even if I can't read the test, like "the score is always a number from 0 to 100".
A second AI as reviewer. I used Claude outside the repository as a project manager. It helped me plan, reviewed Kiro's pull requests in read-only mode, and for many visual fixes it measured a prototype first. Kiro then applied it and ran the tests. I declare all of this in the submission, including the AI tools I used for the art.
The moment Kiro surprised me
I asked Kiro to replace the house it had drawn in code with an illustration. Before writing anything, it told me that my request broke two requirements I had approved myself. I didn't expect an agent to hold me to my own decisions.
Another time, my own rules beat me. In a live test of the Power I got two answers out of three right, and the ghost stayed. My second "I don't know" was on the main question, and I had approved a rule that says the main question can't be wrong. I had forgotten that rule. The code hadn't.
What I learned
"I don't know" is the most useful answer a learner can give, if the tool does something with it.
Writing requirements first let me direct a project I couldn't have coded. And "make it look good" is not a task. A table of what each layer does at each moment, with numbers to check, is.
I still can't read most of this repository. But I know where to start: the attic.
Links
- Demo video: https://youtu.be/frjs4b9tGpM
- Try the website: https://devcaos.github.io/haunted-repo/
- Code: https://github.com/devcaos/haunted-repo
Claude helped me organise this post.
