<?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: sabr.sf</title>
    <description>The latest articles on DEV Community by sabr.sf (@pythonhack000).</description>
    <link>https://dev.to/pythonhack000</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%2F4274851%2F18e34ccd-c41f-4f96-a172-ed68be8dc292.jpg</url>
      <title>DEV Community: sabr.sf</title>
      <link>https://dev.to/pythonhack000</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pythonhack000"/>
    <language>en</language>
    <item>
      <title>I brought teletext back from the dead with Kiro, and a news update now costs 1.9 KB</title>
      <dc:creator>sabr.sf</dc:creator>
      <pubDate>Mon, 30 Nov 2026 17:50:29 +0000</pubDate>
      <link>https://dev.to/pythonhack000/i-brought-teletext-back-from-the-dead-with-kiro-and-a-news-update-now-costs-19-kb-22d5</link>
      <guid>https://dev.to/pythonhack000/i-brought-teletext-back-from-the-dead-with-kiro-and-a-news-update-now-costs-19-kb-22d5</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;This post was written as part of the Kiroween 2026 hackathon.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Hook.&lt;/strong&gt; Before the internet, your TV had a secret. Press 1-0-0 on the remote and the news appeared in coloured blocks. Teletext died with analogue TV. I rebuilt it for the browser, and the oddest part is that it is useful again.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Try it: &lt;a href="https://pythonhack000.github.io/page-100/" rel="noopener noreferrer"&gt;https://pythonhack000.github.io/page-100/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Video: &lt;a href="https://youtu.be/Rzix8PB7sfg" rel="noopener noreferrer"&gt;https://youtu.be/Rzix8PB7sfg&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Code: &lt;a href="https://github.com/pythonhack000/page-100" rel="noopener noreferrer"&gt;https://github.com/pythonhack000/page-100&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why it matters.&lt;/strong&gt; I live in Dushanbe. A lot of people here read the news on prepaid mobile data. I measured on Nov 30: the HTML alone of one big international news homepage is 370 KB (63 KB gzipped) before a single image or script; another one is 7 MB. Page 100 costs about 31 KB gzipped the first time, font included, and is then cached. After that, every refresh of the news, the weather for nine cities and the exchange rates is &lt;strong&gt;1,906 bytes in total&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The rules are the product.&lt;/strong&gt; Teletext is 40 x 24 cells, eight colours, and mosaic graphics made of 2 x 3 "sixels". These rules went into Kiro steering files before any code. Across about 200 tasks Kiro never broke the grid or invented a ninth colour.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Spec first, one file at a time.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Kiro wrote four specs for Page 100: the renderer, navigation, the haunted page 666, and the content pages with the data pipeline (95 tasks). Each has requirements, a design and tasks. I reviewed them and Kiro revised its own specs.&lt;/li&gt;
&lt;li&gt;Review caught real problems before code: duplicate types across specs, mutable global state in the router design, and a bug in my own layout notes.&lt;/li&gt;
&lt;li&gt;Kiro ran from the CLI, one task and one file per call, with the tests as the gate: green gets committed, red goes back to Kiro with the failure. Claude Code ran that loop and reviewed the diffs. 70 commits in this repo are Kiro's, one task each.&lt;/li&gt;
&lt;li&gt;A fetch MCP server let Kiro compare the live data sources with our parsers. It found three real bugs, among them day labels one day off for Moscow and Istanbul every night after midnight Dushanbe time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The parts that fought back.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Long prompts that touched many files were refused in non-interactive mode. One file per run fixed it and made every step small enough to review.&lt;/li&gt;
&lt;li&gt;Throttling on the free plan: wait, retry the same small task.&lt;/li&gt;
&lt;li&gt;The mosaic bug: leave a page with block graphics, come back, and the blocks were gone. Kiro turned my note into a task and fixed the renderer; the fix has a test.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The data pipeline.&lt;/strong&gt; A GitHub Action runs every 30 minutes: public RSS for news, Open-Meteo for the weather, a free rates API, no keys. It writes four tiny JSON files and fails the build if any page file reaches 2 KB. Kiro hooks run the tests on save and the same size check when a data file changes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The haunted page.&lt;/strong&gt; Page 666 is the ghost of the broadcast. The room turns red, the page you came from hangs in the glass like phosphor burn-in, and if you keep watching, something watches back. Old remotes had a REVEAL button for hidden text. Press it on 666, then dial 999.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I'd tell another builder.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Put the rules of your format in steering. It is the cheapest way to stop drift.&lt;/li&gt;
&lt;li&gt;Let tests be the gate between the agent and your history. Every red result became a better prompt.&lt;/li&gt;
&lt;li&gt;Use the IDE for thinking (it lists its decisions and waits) and the CLI for the long mechanical part.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Page 777 on the set dials our second Kiroween entry, a haunted answering machine.&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>kiroween</category>
      <category>webdev</category>
      <category>typescript</category>
    </item>
    <item>
      <title>I built a haunted answering machine with Kiro, and it keeps scammers busy so I don't have to</title>
      <dc:creator>sabr.sf</dc:creator>
      <pubDate>Mon, 30 Nov 2026 17:49:51 +0000</pubDate>
      <link>https://dev.to/pythonhack000/i-built-a-haunted-answering-machine-with-kiro-and-it-keeps-scammers-busy-so-i-dont-have-to-2pdi</link>
      <guid>https://dev.to/pythonhack000/i-built-a-haunted-answering-machine-with-kiro-and-it-keeps-scammers-busy-so-i-dont-have-to-2pdi</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;This post was written as part of the Kiroween 2026 hackathon.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When you sell a car, you post your phone number. Then the calls start. Some are real buyers. The rest are sales pitches, robocalls, and my favourite: the bank that is not a bank, asking for "the six-digit code we just sent you".&lt;/p&gt;

&lt;p&gt;Scams work because you have to answer live and decide under pressure. The 1980s had the answer: let the machine pick up. So I built one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it is
&lt;/h2&gt;

&lt;p&gt;You share a call link instead of your number. Anyone with the link calls from the browser. A machine with a woman's voice picks up, asks who is calling and why, takes a callback number and reads it back. Then it hangs up and leaves you a typed message slip, sorted REAL, SALES or SCAM.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Try it: &lt;a href="https://answering-machine.pythonhack000.workers.dev/" rel="noopener noreferrer"&gt;https://answering-machine.pythonhack000.workers.dev/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Video (3 min): &lt;a href="https://youtu.be/ap5Kah9YPCA" rel="noopener noreferrer"&gt;https://youtu.be/ap5Kah9YPCA&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Code: &lt;a href="https://github.com/pythonhack000/answering-machine" rel="noopener noreferrer"&gt;https://github.com/pythonhack000/answering-machine&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The costume is the warning
&lt;/h2&gt;

&lt;p&gt;I entered the Costume Contest, so the spooky part had to do a job. On the owner's deck the horror is the risk signal. A real call is a clean, warm track. A scam is "possessed": the room turns red, the tape chews, and the slip gets a DO NOT CALL BACK stamp. You know the danger before you read a word.&lt;/p&gt;

&lt;p&gt;And if the machine is sure it has a scammer on the line, it haunts them. It stalls. Its tape slips. It loses its place and asks them to repeat themselves. In my test call, "the bank" ended up asking the machine: "What? What is happening?" The slip then tells you how long the scammer was kept busy instead of you.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Kiro built it
&lt;/h2&gt;

&lt;p&gt;I did not write the feature code. Kiro did, spec first. Claude Code worked next to it as architect and reviewer: it ran the task loop, reviewed specs and diffs, and wrote the deck's visual polish layer.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Steering&lt;/strong&gt; holds the rules once: the product, the tech stack, the machine's voice (what it may and may not say; Haunt may stall but never give or ask for real data, and never claims to be human) and privacy (no audio stored, 30-day delete).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Four specs&lt;/strong&gt;: the call state machine, the Worker API, the call page and the owner deck. The deck spec was written in the Kiro IDE: requirements first, then design with numbered correctness properties, then tasks. The IDE lists its own decisions and waits for you, which is exactly what you want for the thinking part.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The CLI did the long part.&lt;/strong&gt; 418 tasks, one task and one file per &lt;code&gt;kiro-cli chat --no-interactive&lt;/code&gt; call. After each call the loop ran the type check and 5,000+ tests. Green was committed as "task N by Kiro"; red went back to Kiro once with the failure. 257 of the 284 commits in the repo are Kiro's.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Property tests&lt;/strong&gt; with fast-check: the phone number normaliser round-trips spoken and typed numbers in English, Russian and Tajik; Haunt output never contains digits, URLs or card numbers; a scam track never offers a call-back path.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hooks&lt;/strong&gt;: tests on save, a secret scan on save, and a voice check when a language table changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A custom agent&lt;/strong&gt; that may only write the Russian and Tajik tables. It reviewed every line of both: in Russian the machine now speaks about herself in feminine forms ("я записала"), and long labels that did not fit on the deck keys got shorter.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What fought back
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The browser's voice.&lt;/strong&gt; The first version spoke through the browser's speech synthesis. In desktop Chrome, a cancel() right before speak() silently kills the new line, so the greeting never played and you heard only tape hiss. It can also wedge the synthesiser for the whole browser until you restart it. The fix was to stop trusting it: the machine's lines are now real audio (ElevenLabs, with Workers AI as the English fallback), the 93 fixed lines ship as MP3 files, and the browser voice is only the last fallback.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Privacy for a voice service.&lt;/strong&gt; Sending text to a voice API is a privacy decision. Only the machine's own lines go out. The server voices a line only if the machine really said it in that live call, and any line with a digit, like a number read-back, never leaves the browser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The hook that paid for itself.&lt;/strong&gt; After the custom agent revised the Russian lines, the voice-check hook failed. It turned out the Worker still had an old second copy of the language tables. Had I shipped, the voice endpoint would have refused every revised line, and 48 of the pre-rendered files were recorded from old wording. One source of text later, everything matched. No test was looking for that; the hook was.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sounding smart.&lt;/strong&gt; In an early live test I said "I want to get to know you" in Russian and the machine answered with a word-for-word calque of an English question. It also re-asked the reason after the caller had just given it. Native example lines in the prompt, a rule against repeated or hypothetical questions, and dropping the "subject" slot once name and reason are known fixed it. The buyer in the video gets one question: the callback number.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Put the rules in steering, once.&lt;/li&gt;
&lt;li&gt;Let tests be the gate between the agent and your history.&lt;/li&gt;
&lt;li&gt;Use the IDE for decisions and the CLI for the long mechanical run.&lt;/li&gt;
&lt;li&gt;Write hooks for the mistakes your tests cannot see.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next: a real phone gateway, so unanswered calls go to the machine, and shared scam reports between owners.&lt;/p&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

</description>
      <category>kiro</category>
      <category>kiroween</category>
      <category>cloudflare</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
