← Back to library

Hands-free voice loop for a coding agent

yberreby, on Hacker News, put together, in one afternoon, an on-device voice layer for Claude Code on an M4 Pro Mac: Parakeet transcribes speech, Pocket TTS speaks replies, and a custom MCP server links them, with an AirPods stem click captured to interrupt. Claude narrates in short updates, mirrored to a TV, and one bug got fixed during tooth brushing.

  • OutcomeAdd on-device voice input and spoken replies to your coding agent, with a tap to interrupt, so you can steer it while cooking or cleaning.
  • SetupAn afternoon+
  • LevelAdvanced
  • Credityberreby on Hacker News
View original
Works with
Claude Code

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

When should you use it?

  • Ideas come while you are away from the keyboard
  • Your back or wrists need breaks
  • Your machine can run speech models locally

Not for: Shared offices; Changes that need careful reading of diffs

What do you need, and what do you get?

You need

  • Speech recognition and speech models
  • An MCP bridge to your agent
  • A button or click to interrupt

You get

  • Spoken narration of what the agent does
  • Voice instructions sent on a pause
  • Screen view on a TV

How does it work, step by step?

  1. Pick local modelsPick fast on-device models for hearing you and for talking back.
  2. Bridge to the agentWrite a small MCP server that passes speech in and out.
  3. Add an interruptMap a headphone click to start listening.
  4. Ask for short narrationHave the agent describe each step in brief messages.
  5. Review laterRead the diffs at the keyboard before merging.

The prompt

Our own prompt, inspired by yberreby on Hacker News and written to work in Claude Code. Values in lime are placeholders.

Prompt0 variables
Narrate what you are doing in short spoken messages of one or two sentences. When I interrupt, stop and listen.
Before running any command that deletes files, pushes code or installs packages, ask me out loud and wait for a clear yes. At the end, summarize the changes so I can review the diff at my desk.

Inspired by yberreby on Hacker News: Comment in Nanobot: Ultra-Lightweight Alternative to OpenClaw. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Spoken summaries hide detail; review code on screen.
  • Voice can trigger the wrong action; keep approvals for risky commands.
  • Microphones pick up others; keep it local.

Our take

yberreby's build answers a familiar frustration: good ideas show up while cooking or cleaning, far from the keyboard. Keeping both speech models on the laptop is what makes it practical, since round trips stay fast and nothing you mutter leaves the machine. The interrupt is the design choice that turns a demo into a tool. Without a quick way to cut the agent off, a wrong turn keeps talking at you; the stem click gives a physical stop button. Asking for brief, frequent narration is the other smart move, because spoken output is hard to skim and long explanations get lost. If you copy this, keep the same permission settings you use at the desk, so a misheard instruction cannot push or delete anything, and treat voice sessions as exploratory work you review on screen before committing. A short spoken confirmation before any command that touches files outside the project folder is cheap insurance. The TV mirror is a nice touch for glancing at diffs from across the room.

Where the time goes back: You can keep working on a bug away from the desk and review it when you sit down.

FAQ

Does it need the cloud?
No, the author runs the voice stack locally and says it is fast.
How do you interrupt?
With a headphone stem click that starts listening.

Source and credit

Inspired by yberreby on Hacker News. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Comment in Nanobot: Ultra-Lightweight Alternative to OpenClaw
Creator
yberreby on Hacker News
Published on
Hacker News
Original date
Feb 5, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Claude Code
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends, bookings or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Compare an agent run with a task you did by hand

Before you believe big productivity claims, time and cost one routine agent task against a similar one you did yourself, counting review and cleanup.

Credit: Chris_Newton on Hacker News

Under an hour
IT & SecuritySkill✓ AI dry run

Find repeat fixes and good habits in your team's PRs

Have Claude Code look across a chosen window of commits and pull request review comments for the same fix or review note coming up again and again, suggest turning the top ones into a project rule or skill you write in your own words, and list good practices already in the repo that other teams could copy.

Credit: anthropics

Under an hour
IT & SecurityWorkflow✓ AI dry run

Isolated VM coding agent that can only open PRs

Put the coding agent on a separate virtual machine with tight network rules, feed it secrets from a secrets store, and give its git account only issue and PR rights.

Credit: spacephysics on Hacker News

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Keep a working understanding of code agents write

Pair agent coding with an interview-style spec, your own decisions on what differentiates the product, and agent-made explainers and quizzes about the system.

Credit: iamwil on Hacker News

Under an hour