Every codebase has a past, yet most developer tools only show its present. When a function breaks across releases or a feature disappears without explanation, the real answers sit scattered across commits, code blame, pull requests, and old issues.

For Kiroween 2026, I built SEAN—an AI-powered repository investigation tool wrapped in a 3D psychological horror experience. Instead of scrolling through plain Git logs, developers uncover a codebase's history through an Ouija-inspired cinematic sequence, explore a dark 3D environment with a flashlight, and survive an escalating threat while reconstructing real engineering evidence.

Building a project that mixes fictional horror with strict software forensics created an immediate engineering risk: how do you stop AI agents from hallucinating or fabricating repository findings just to keep a dramatic narrative moving?

Here is how I used Kiro as the architectural backbone of SEAN to keep both the engineering and the horror under control.

The Architecture: Local-First Meets the Web

Before writing feature code, I needed an architecture that kept private repositories safe on the developer's machine while still offering an accessible web interface:

  • Frontend (React + Vite + TypeScript + Three.js): Deployed publicly on Netlify, rendering both the 3D horror exploration and the structured 7-tab investigation report (Overview, History, Answer, Findings, Kiro Advice, Roadmap, and Transparency). It also includes a standalone demo mode so anyone can test the experience without connecting a local repo.
  • Companion Agent (Python + FastAPI): Runs locally on the user's machine to execute all Git and repository operations.
  • Origin-Authorized Pairing: The deployed frontend connects to the local FastAPI agent through an explicit -AllowedOrigin startup flag and a terminal pairing code flow, ensuring repository data never has to be uploaded to a cloud backend.

5 Ways Kiro Shaped SEAN's Development

Rather than treating Kiro as an autocomplete box, I structured the repository around Kiro's agentic primitives so every workstream had clear boundaries.

1. Spec-Driven Development Over Unstructured Vibe Coding

With 3D rendering, audio-visual cues, cross-origin pairing, and Git evidence parsing happening in parallel, open-ended prompting quickly loses track of edge cases. I broke the core workstreams into formal Kiro Specs (requirements, design, and tasks) covering evidence retrieval, the Ouija cinematic, immersive gameplay, and engineering intelligence. Having explicit task checklists made incremental verification straightforward and kept multi-file refactors predictable.

2. Steering Documents as Evidence-Integrity Guardrails

Persistent Kiro Steering documents established the core product rule across every session:

"The horror is the experience. The investigation is the product."

I encoded strict evidence-integrity constraints directly into steering: SEAN's atmosphere can be fictional, but its repository findings must clearly separate verified evidence, inference, and explicit uncertainty. If a commit lookup fails or historical context is missing, the system must surface that gap rather than inventing a plausible story.

3. Protecting Approved Docs with a PreToolUse Hook and .kiroignore

When iterating fast with AI agents, one of the biggest headaches is an agent unintentionally rewriting approved architectural documents or reading noisy build artifacts.

  • Agent Hooks: I configured a custom PreToolUse hook that intercepts file modifications and asks for explicit confirmation before any agent edits or deletes designated approved documentation.
  • Context Hygiene: Using .kiroignore, I excluded secrets, dependencies, generated builds, and test artifacts so Kiro's working context stayed focused strictly on project-owned code and specs.

4. Scoped Custom Agents, Skills, and Workflows

Instead of relying on one generalist agent for every task, I split responsibilities across Custom Agents with scoped permissions (code-reviewer, security-auditor, and test-engineer), reusable Kiro Skills for repeatable validation steps, and Kiro IDE Workflows to isolate startup behavior, cinematic sequences, and archive views.

5. Reusing Backend Logic via a Custom Read-Only MCP Server

To give Kiro direct visibility into repository history during development without duplicating logic, I built a read-only Python MCP server wrapping the FastAPI backend's investigation engine—exposing Git history search, code blame, pull request retrieval, and issue inspection as structured tools. For deployment, the Netlify Kiro Power guided frontend production checks while keeping the local agent decoupled.

Verification and Testing Lessons

Testing across a deployed frontend and a local companion service exposed production-only browser and origin issues that never appeared on localhost. I paired pytest (backend), Vitest (frontend), and Playwright (end-to-end browser flows) with workstream verification reports to track every fix. (While property-based testing with Hypothesis was scoped in the initial specs, the shipped build validates invariants through enumerated and parameterized test suites.)

Key Takeaways from Building with Kiro

  1. Constraints unlock creativity: Writing down strict rules in steering docs freed me to push the 3D horror aesthetic further without worrying that the underlying Git analysis would break trust.
  2. Context boundaries matter: Smaller, scoped agents combined with .kiroignore and PreToolUse hooks produced cleaner diffs than giving a single session unrestricted access to the entire workspace.
  3. Production parity is non-negotiable: Local-first web architectures require testing real cross-origin pairing against live production builds, not just local dev servers.

Try SEAN

Every codebase has a story—and not everything hiding in yours wants to be found.