Featured image of post I Don't Know VR. My IDE Does

I Don't Know VR. My IDE Does

Building a Mixed-Reality AI Companion Entirely Through Kiro

Introduction

I don’t know how to write VR software. I have never touched WebXR, never loaded a GLTF, never debugged a frame budget. And yet, as of this week, there is a mixed-reality AI companion standing in my living room — an anime-style avatar who perches on my desk, looks where I point, and turns my real lamps on and off with a flick of her hand and a spray of “hacking” particles. She’s live at https://project-capri.sanyamchhabra.in, running on a Quest 3, entirely in the browser.

I built her in a couple of days. I did not write her code. Kiro did. This post is being written as part of the Kiroween 2026 hackathon, and it’s the story of what it’s actually like to ship a real product through Kiro when you barely know the domain.

The idea

Capri (yes, after the Edgerunners character) is a spatial AI companion for Meta Quest: passthrough AR, hand tracking only, fully usable seated. She understands deictic speech — “turn that off” resolves to the lamp your index finger is pointing at — controls real lights through Home Assistant, and answers free-form questions through my self-hosted Hermes agent. The avatar, her spatial awareness, and her personality are the product; the backends are plug-ins. That was the whole spec, more or less. One paragraph.

Why not just vibe code it?

I love vibing with an AI as much as anyone. But VR punishes vibes. You cannot A/B test a passthrough session from your laptop. Quest Browser turned out to have no speechSynthesis at all — imagine discovering that in week three, after building a TTS pipeline on top of it.

So I let Kiro structure the work the way Kiro wants to work: spec-driven. Before a single line of app code existed, the clarify phase interviewed me (scope, animation approach, hosting), then produced:

  • 34 requirement groups with several hundred testable acceptance criteria, and a visible cut-line so scope could drop under deadline pressure without killing the demo
  • a ~1,400-line design with an assumption register — 22 numbered assumptions, each with a validation plan and a fallback — and 62 numbered correctness properties that later became property-based tests
  • 177 tasks in a validated dependency graph, grouped into waves

Then it executed them, one by one.

The part that felt like cheating

The first thing Kiro built wasn’t the app. It was a feasibility spike: five items to verify on my actual Quest 3 — AR session and hand joints, planes/anchors/hit-test, microphone capture, offline speech recognition, and speechSynthesis. I put on the headset, ran the harness, and pasted the report back. Four items passed. SpeechSynthesis didn’t exist. That failure was folded back into the spec as a capability flag, and the design’s three-tier voice fallback (pre-generated Piper library → bubble + chirp) was already waiting for it. One line of spec, instead of a week of heartbreak.

The same discipline caught the Hermes integration. The spec had a hard gate: no client code until the agent has investigated the real API from primary sources and the user has supplied an endpoint, auth, and one working call. Kiro read the upstream source, confirmed the exact endpoints, headers, and event stream shapes, verified my CORS preflights — and only then wrote the adapter. Nothing was invented.

Sub-agents, or: how one person runs a team

The build ran on two custom agents: one that authors and revises the spec, and one (spec-task-execution) that implements exactly one task per dispatch — read the spec, implement, typecheck, test, build, report. Across the project that’s roughly 120 dispatches, with up to five implementers running concurrently in a wave. The dependency graph was designed so tasks touching the same file never shared a wave, so five agents could hack on one codebase without stepping on each other.

My favorite glitch: early on, the requirements agent ran without the full brief and guessed the contents of the on-device spike. The orchestrator noticed the guessed items, threw the output away, and re-ran the phase with the authoritative brief embedded. The AI caught the AI. That’s when I stopped thinking of this as autocomplete.

Property-based testing found a real bug

The design’s properties became fast-check tests (100–300 runs each). One of them — “every gesture play() must resolve, for any subset of loaded clips and any gesture sequence” — shrank down to a case where the gesture router’s active-gesture state stayed set forever after an animation clip finished and a posture played. Idle behaviours would have been silently suppressed in production. No example-based test would have found that sequence. PBT did.

MCP deserves a mention too: context7 let the design phase check live library reality (the Vosk typings have no setGrammar, so grammar changes had to be measured as recreate-the-recognizer — 4 ms, fine), and the IWSDK bridge gave the agents runtime verification — real screenshots, ECS queries, console logs from a live XR session — instead of “it probably renders.”

What I actually did

I can’t lie to you: the human still matters. I wore the headset. I pasted spike reports back. I taught Capri where my lamps are. And when the first build hit the Quest, I came back with a list of ten real complaints — push-to-talk firing when my hand left view, a cluttered HUD, an anchor landing on my knuckle instead of the lamp. I couldn’t fix them. So I handed the list to Kiro, and it turned each complaint into a new requirement group with its own tasks — superseding the old criteria in the spec, never deleting them, so the document stayed a truthful history of the product. Then the agents fixed them.

That’s the reframe, and it’s the thing I’d tell anyone: I stopped being the person who writes code and became the person who reviews reality. My job became knowing what “good” looks like from inside a headset, and Kiro’s job became everything else.

Go break it

Capri is live at https://project-capri.sanyamchhabra.in — opens in Mock Mode with three virtual bulbs, zero setup, hands only. Point at a bulb, say “turn that on,” and enjoy the particles. If you have a Home Assistant and a spare agent, there’s a Live Mode too.

Built for the Kiroween 2026 hackathon, with Kiro doing, conservatively, all of it.

Built with Hugo
Theme Stack designed by Jimmy