{"slug": "i-can-t-read-my-own-code-yet-so-i-built-a-haunted-house-that-makes-me-learn-it", "title": "I can't read my own code yet, so I built a haunted house that makes me learn it", "summary": "A first-year programming student in Spain built Haunted Repo, a Kiro Power that turns a GitHub repository into a haunted house: it selects up to five key files, scores each 0-100 for difficulty, and requires the user to answer three comprehension questions (two correct) before a \"ghost\" is cleared. The student, who says they cannot yet read most of the code they ship, directed the entire project through Kiro using approved specs, steering rules, a post-task hook running lint, build and over 1,100 tests, and Claude as an outside read-only reviewer. They describe the approach as a way to manage \"comprehension debt,\" noting that \"'I don't know' is the most useful answer a learner can give, if the tool does something with it.", "body_md": "I wrote this post as part of the Kiroween 2026 hackathon.\n\nI'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.\n\nIn 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.\n\nThat 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.\n\nSo for Kiroween I built Haunted Repo.\n\nHaunted 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.\n\nTo 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.\n\nThe 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.\n\nThis 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.\n\n**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.\n\n**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.\n\n**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\".\n\n**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.\n\nI 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.\n\nAnother 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.\n\n\"I don't know\" is the most useful answer a learner can give, if the tool does something with it.\n\nWriting 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.\n\nI still can't read most of this repository. But I know where to start: the attic.\n\n*Claude helped me organise this post.*", "url": "https://wpnews.pro/news/i-can-t-read-my-own-code-yet-so-i-built-a-haunted-house-that-makes-me-learn-it", "canonical_source": "https://dev.to/devcaos/i-cant-read-my-own-code-yet-so-i-built-a-haunted-house-that-makes-me-learn-it-1d7m", "published_at": "2026-11-26 22:02:02+00:00", "updated_at": "2026-11-26 22:14:32.524271+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "developer-tools", "ai-products"], "entities": ["Kiro", "Haunted Repo", "Claude", "GitHub", "Addy Osmani", "Kiroween"], "also_reported_by": [], "takeaway": "Directing an agent through approved specs, always-on steering rules and a post-task hook that runs lint, build and 1,100+ tests let a non-coder ship a working tool while keeping decisions reviewable in plain language.", "recommendation": {"advice": "When you can't review agent-written code, approve plain-language specs first and gate every task behind a hook running lint, build and tests, including property-based checks like score bounds.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/i-can-t-read-my-own-code-yet-so-i-built-a-haunted-house-that-makes-me-learn-it", "markdown": "https://wpnews.pro/news/i-can-t-read-my-own-code-yet-so-i-built-a-haunted-house-that-makes-me-learn-it.md", "text": "https://wpnews.pro/news/i-can-t-read-my-own-code-yet-so-i-built-a-haunted-house-that-makes-me-learn-it.txt", "jsonld": "https://wpnews.pro/news/i-can-t-read-my-own-code-yet-so-i-built-a-haunted-house-that-makes-me-learn-it.jsonld"}}