This post was written as part of the Kiroween 2026 hackathon.

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".

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.

What it is

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.

The costume is the warning

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.

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.

How Kiro built it

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.

  • Steering 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).
  • Four specs: 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.
  • The CLI did the long part. 418 tasks, one task and one file per kiro-cli chat --no-interactive 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.
  • Property tests 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.
  • Hooks: tests on save, a secret scan on save, and a voice check when a language table changes.
  • A custom agent 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.

What fought back

The browser's voice. 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.

Privacy for a voice service. 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.

The hook that paid for itself. 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.

Sounding smart. 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.

What I'd tell another builder

  • Put the rules in steering, once.
  • Let tests be the gate between the agent and your history.
  • Use the IDE for decisions and the CLI for the long mechanical run.
  • Write hooks for the mistakes your tests cannot see.

Next: a real phone gateway, so unanswered calls go to the machine, and shared scam reports between owners.