This post was written as part of the Kiroween 2026 hackathon.
I built Sanitarium Chaos for Kiroween 2026, using the Kiro IDE: an API resilience tester styled as a haunted 1980s hospital. You admit an endpoint as a patient, hostile inputs flatline it, an AI autopsy explains why, and Verify Cure replays the exact payload that broke it. The room decays as results come in (sterile, stained, dimming, dark), and the EKG beats only from recorded results.
This post is about how Kiro shaped the build, including what did not pay off.
Specs beat vibe coding where it counts
I used Kiro's spec workflow: requirements, then design, then tasks. The design numbered its correctness properties, and each one became a single property-based test with fast-check. That mapping was the most valuable thing Kiro gave me. Two of those tests caught bugs I would never have written an example for:
- A payload with an own
__proto__: nullkey crashed the Prisma JSON serializer. - A stalled process could keep writing into an Examination that had already been marked interrupted.
With vibe coding I would have shipped both. The spec forced me to state the invariant first, and the property test then hunted for the counterexample.
Steering kept the app honest
I wrote five steering files: product, tech, security, testing and UI/UX. They held rules the agent kept applying without me repeating them: every result is labeled "controlled in-process simulation", the UI never claims anything is "secure", untrusted AI output is treated as data, and every color pair is declared and contrast-checked. A CI check even bans one word from the UI strings. Written once as steering, those rules applied to hundreds of changes.
Hooks and a custom agent
I configured agent hooks to run lint and related tests on backend saves, contracts tests plus a frontend typecheck when shared code changes, and Prisma validation on schema edits.
I also created a read-only security-review custom agent from my security checklist. Its one run found problems in my CLI that I had missed: URLs with credentials could be written to a saved file, a saved file could aim a replay at internal addresses, and redirects could leak custom headers. I fixed all three and recorded the run in the repo.
What I would do differently
Full spec and test rigor cost a lot of time and tokens, and most of it protected a simulated target: the three hosted demo patients are rule tables inside the backend. That made a nice demo but a weak tool. The fix was a small CLI that tests your own API from your own machine:
npx sanitarium-cli examine http://localhost:3000/your-route --body '{"key":"value"}' Crashing payloads are saved to a "morgue" file, and sanitarium-cli replay fails a CI build if an old crash comes back. It found six crashes in one of my own NestJS endpoints, and its replay caught that my first fix was incomplete. Next time I would start with that useful core and spend spec effort only where correctness is hard.
I used an MCP fetch server only for small lookups (checking npm package names), and I did not use Kiro powers.
Try it
- App: https://sanitarium-web.onrender.com/ (the free backend takes 20 to 30 seconds to wake up)
- Code: https://github.com/Muntasir-Zin-Alabadin/Sanitarium-Chaos
- CLI: https://www.npmjs.com/package/sanitarium-cli
Written for the Kiroween 2026 hackathon. #KiroweenHackathon26




