<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Adarsh Puri</title>
    <description>The latest articles on DEV Community by Adarsh Puri (@adarshpuri20).</description>
    <link>https://dev.to/adarshpuri20</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4281837%2F8be92587-ba4d-4b0a-b25d-8be0a178b15d.png</url>
      <title>DEV Community: Adarsh Puri</title>
      <link>https://dev.to/adarshpuri20</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adarshpuri20"/>
    <language>en</language>
    <item>
      <title>How we built a haunted maze from real streets, spec-first with Kiro</title>
      <dc:creator>Adarsh Puri</dc:creator>
      <pubDate>Fri, 04 Dec 2026 05:16:30 +0000</pubDate>
      <link>https://dev.to/adarshpuri20/how-we-built-a-haunted-maze-from-real-streets-spec-first-with-kiro-4m7b</link>
      <guid>https://dev.to/adarshpuri20/how-we-built-a-haunted-maze-from-real-streets-spec-first-with-kiro-4m7b</guid>
      <description>&lt;p&gt;&lt;em&gt;This post was written as part of the Kiroween 2026 hackathon.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/tYfbWJp7C8U" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Four monsters are hunting a puppy through a real city, and every monster is an AI agent. That's &lt;strong&gt;Woody's Haunted Run&lt;/strong&gt;, our Frankenstein entry for Kiroween 2026: real OpenStreetMap streets turned into an arcade maze, AI agents behind an MCP server inside a 60 Hz game loop, a Three.js night city, and every sound made live in the browser with Web Audio.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Play it:&lt;/strong&gt; &lt;a href="https://adarshpuri20.github.io/kiroween-game/" rel="noopener noreferrer"&gt;https://adarshpuri20.github.io/kiroween-game/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code (MIT):&lt;/strong&gt; &lt;a href="https://github.com/adarshpuri20/kiroween-game" rel="noopener noreferrer"&gt;https://github.com/adarshpuri20/kiroween-game&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The idea
&lt;/h3&gt;

&lt;p&gt;We follow a blue dot everywhere and never learn the streets we live on. Game mazes are made up, so they mean nothing to us. So we made the maze your street. Pick one of seven built-in cities, or paste the coordinates of any spot on Earth: the game downloads that square of OpenStreetMap in the browser and turns it into a maze, with the real street names in the monsters' speech bubbles.&lt;/p&gt;

&lt;h3&gt;
  
  
  Monsters as MCP agents
&lt;/h3&gt;

&lt;p&gt;Once a second, the game sends a snapshot of the world to an MCP server, and each monster's agent sends back a plan: Wolfy follows Woody's scent, Drac goes where he's heading, Mummie cuts him off at junctions, and Franky wanders, then charges. The same deterministic planner runs in the browser and checks every server plan, so if the server is slow or down, a badge turns amber and the game carries on. Kiro is connected to the same server over stdio, so the agents that hunt Woody are also tools Kiro could call while it built them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Spec-first, for real
&lt;/h3&gt;

&lt;p&gt;Every piece of work went through a Kiro spec: requirements in EARS style, a design, then tasks. There are 23 of them in &lt;code&gt;.kiro/specs/&lt;/code&gt;. Two habits made the difference:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Decisions get a date and an owner.&lt;/strong&gt; Rules such as the approved 12 m junction merge are written into the specs and steering docs with who decided them and when. Later work builds on the recorded rule, and a change replaces it on purpose instead of drifting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Play-test notes become requirements before they become fixes.&lt;/strong&gt; One evening's note was "right makes Woody go left when he runs down the screen". That became a spec (&lt;code&gt;play-feel&lt;/code&gt;): on maps with a street grid, the camera now turns to line the main streets up with the screen (on Manhattan, the share of street length within 15° of an arrow key went from 10% to 96%), and key-cap hints show which key takes which street at the next junction.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Hooks that say no
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;post-task-tests&lt;/code&gt; runs the suite after every spec task and refuses "done" while tests fail.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;shell-guard&lt;/code&gt; blocks Windows-hostile shell commands.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ip-guard&lt;/code&gt; checks saved files against protected names, so the cast stays original.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Property tests that caught real bugs
&lt;/h3&gt;

&lt;p&gt;123 of our 501 test files are dedicated fast-check property tests. They caught a broken dual-carriageway merge on the real Gaslamp data, a monster whose stride landed out of reach of its own leg, and a test oracle that was itself wrong (the game was right; the seed is now pinned as a regression test).&lt;/p&gt;

&lt;h3&gt;
  
  
  The experiment we'd repeat: Kiro reviews another AI
&lt;/h3&gt;

&lt;p&gt;We also used another AI assistant on this project. Near the end we asked Kiro to review its commits as a read-only spec task. Kiro returned 46 findings with file and line citations, then 13 more in a second review, including a blocker: turn hints appeared only 0.6 seconds before a junction at Woody's speed. Each finding became a task in a fix spec, and each one's status is recorded in &lt;code&gt;docs/reviews/&lt;/code&gt;. Two AIs checking each other, with the spec as the referee, beat either one alone.&lt;/p&gt;

&lt;h3&gt;
  
  
  What's next
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A story mode.&lt;/strong&gt; Woody's run becomes a journey across the cities, chapter by chapter, with the monsters' lore told through voiced lines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cleaner maps, rendered on the GPU.&lt;/strong&gt; A WebGPU renderer with physically based materials and real-time shadows, and more of the real city from the same OpenStreetMap data: building shapes, street furniture and terrain height.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;From arcade maze to a 3D character platformer.&lt;/strong&gt; Woody runs, jumps and climbs through the real streets, with GPU-simulated particles, cloth and fluids that react to him and to the monsters, at a locked 60 fps, plus gamepad rumble that matches what he touches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More monster personalities as MCP tools,&lt;/strong&gt; and MCP planning on custom maps too.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your street could be the next maze.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Adarsh Puri and Yanmiao Du&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>gamedev</category>
      <category>mcp</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
