<?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: Akshat Agrawal</title>
    <description>The latest articles on DEV Community by Akshat Agrawal (@anchor369).</description>
    <link>https://dev.to/anchor369</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%2F4283390%2F7fcc8e51-b267-47a9-ae07-911a905e7453.jpeg</url>
      <title>DEV Community: Akshat Agrawal</title>
      <link>https://dev.to/anchor369</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anchor369"/>
    <language>en</language>
    <item>
      <title>How Kiro's specs turned an old phone into a home listener for Deaf users (Kiroween 2026)</title>
      <dc:creator>Akshat Agrawal</dc:creator>
      <pubDate>Fri, 04 Dec 2026 18:41:38 +0000</pubDate>
      <link>https://dev.to/anchor369/how-kiros-specs-turned-an-old-phone-into-a-home-listener-for-deaf-users-kiroween-2026-569i</link>
      <guid>https://dev.to/anchor369/how-kiros-specs-turned-an-old-phone-into-a-home-listener-for-deaf-users-kiroween-2026-569i</guid>
      <description>&lt;p&gt;&lt;em&gt;I wrote this post for the &lt;strong&gt;Kiroween 2026&lt;/strong&gt; hackathon. It's about how I used Kiro to build my entry, Betaal.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Video (under 3 min):&lt;/strong&gt; &lt;a href="https://youtu.be/aPk6uGMd2sw" rel="noopener noreferrer"&gt;https://youtu.be/aPk6uGMd2sw&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Live app:&lt;/strong&gt; &lt;a href="https://betaal.vercel.app" rel="noopener noreferrer"&gt;https://betaal.vercel.app&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Code:&lt;/strong&gt; &lt;a href="https://github.com/anchor369/betaal" rel="noopener noreferrer"&gt;https://github.com/anchor369/betaal&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea: one phone in a drawer, one ghost
&lt;/h2&gt;

&lt;p&gt;Every Indian kitchen speaks in sounds: the pressure cooker's whistles, the doorbell, the smoke alarm. People who are Deaf or hard of hearing miss all of them, and so do parents who live alone and whose children live in another city.&lt;/p&gt;

&lt;p&gt;Almost every home also has an old phone sitting in a drawer. &lt;strong&gt;Betaal&lt;/strong&gt; turns that phone into a home listener. You teach it a sound three times, or switch on one of 12 sounds it already knows. When it hears that sound, every phone and screen in the house flashes, vibrates in that sound's own pattern, and speaks the alert in English, Hindi or Kannada. It can also push a notification to family phones anywhere. The name comes from &lt;em&gt;Vikram aur Betaal&lt;/em&gt;, a folk tale about a talkative ghost. Our ghost sits on your shelf and speaks for the machines that can't.&lt;/p&gt;

&lt;p&gt;That's why I entered it in the &lt;strong&gt;Resurrection&lt;/strong&gt; category: it brings back an obsolete phone, and it gives a voice to old machines that can't speak.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I went spec-first in Kiro
&lt;/h2&gt;

&lt;p&gt;Betaal has a lot of logic that has to be exactly right. Examples: counting "three whistles" without double-counting, two Betaals hearing the same doorbell but raising only one alert, and learning from a "that was not the cooker" tap without suppressing real alerts. I didn't want to vibe-code that.&lt;/p&gt;

&lt;p&gt;So every feature started as a Kiro spec in &lt;code&gt;.kiro/specs/&lt;/code&gt;: &lt;code&gt;requirements.md&lt;/code&gt; with numbered acceptance criteria, then &lt;code&gt;design.md&lt;/code&gt; with numbered &lt;strong&gt;correctness properties&lt;/strong&gt;, then &lt;code&gt;tasks.md&lt;/code&gt;, where every task links back to both. I reviewed each spec before any code was written, and Kiro then worked through the tasks one group at a time. The project ended up with &lt;strong&gt;9 specs&lt;/strong&gt;: feasibility spike, spike bug fixes, rule engine, sensor app, accessible alerts, dashboard, plain-language rules, multi-Betaal, and feedback learning.&lt;/p&gt;

&lt;p&gt;Reviewing specs turned out to matter as much as writing code. While reviewing the feedback-learning design, I caught two problems before any code existed. First, an all-zero sound average would have let any "wrong example" block real alerts. Second, a limit set to &lt;code&gt;Infinity&lt;/code&gt; silently kept only one example. Both were fixed in the documents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steering docs: the same rules in every session
&lt;/h2&gt;

&lt;p&gt;Five steering docs in &lt;code&gt;.kiro/steering/&lt;/code&gt; covered the product principles, the design system, the tech stack, the repo structure and my Windows/PowerShell setup. The principles were the most useful ones: &lt;em&gt;the AI never makes live decisions&lt;/em&gt;, &lt;em&gt;raw audio never leaves the phone&lt;/em&gt;, &lt;em&gt;accessible first&lt;/em&gt;. They meant I didn't have to repeat the ground rules every session.&lt;/p&gt;

&lt;h2&gt;
  
  
  A hook plus property-based testing
&lt;/h2&gt;

&lt;p&gt;One agent hook, &lt;code&gt;core-tests-on-save&lt;/code&gt;, runs the core unit and property tests every time a file in &lt;code&gt;packages/core&lt;/code&gt; changes. When a property fails, it fixes the code, not the test, and logs each real bug to &lt;code&gt;docs/pbt-findings.md&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The correctness properties from the design docs became &lt;strong&gt;fast-check&lt;/strong&gt; property tests, with coverage counters so a test can't pass without actually exercising the case. The core now has &lt;strong&gt;437 passing tests&lt;/strong&gt;. Between the tests and the spec reviews, &lt;strong&gt;11 bugs&lt;/strong&gt; were caught. Some of my favourites:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The rule engine's "once per run" flag went stale between machine runs.&lt;/li&gt;
&lt;li&gt;A sound named &lt;code&gt;constructor&lt;/code&gt; leaked &lt;code&gt;Object.prototype.constructor&lt;/code&gt; into the alert text.&lt;/li&gt;
&lt;li&gt;A user-given name containing &lt;code&gt;{n}&lt;/code&gt; was substituted again inside alert sentences.&lt;/li&gt;
&lt;li&gt;The audio resampler dropped a sample whenever an output landed exactly on a chunk boundary, which happens all the time when converting 48 kHz to 16 kHz.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Plain-language rules, checked with an eval set
&lt;/h2&gt;

&lt;p&gt;You can tell Betaal, &lt;em&gt;"कुकर विसल तीन बार बजे तो मुझे बताओ"&lt;/em&gt; ("tell me when the cooker whistles three times"). It turns that into a rule and shows it to you before saving: it asks before it acts. The plain-language rules spec includes an eval set of 23 sentences in English, Hindi and Kannada, and the live endpoint compiles all 23 to the expected rule.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest split
&lt;/h2&gt;

&lt;p&gt;Kiro built the pure core package from the specs: the rule engine, multi-Betaal fusion and brain election, and feedback learning. The React web app, the Supabase wiring and the late bug-fix rounds were written with Claude (Anthropic) assistance, following the same Kiro specs and steering docs. The specs kept the two consistent.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell another builder
&lt;/h2&gt;

&lt;p&gt;Write the correctness properties before the code. In Kiro they become tests almost for free, and they find bugs your own examples never would. Then review your specs as seriously as you'd review a pull request.&lt;/p&gt;

&lt;p&gt;Thanks to the Kiro team for Kiroween. 👻&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>hackathon</category>
      <category>webdev</category>
      <category>a11y</category>
    </item>
  </channel>
</rss>
