Menu

Push-to-talk for coding agents on a Mac, with a game controller and on-device speech
📰

Push-to-talk for coding agents on a Mac, with a game controller and on-device speech

DEV Community: swift·Himanshu·3 days ago
#88xfOI5J
#devtoswift#devto#dev#codepad#agent
Long article (1001 words) — no AI summary yet.
Reading 0:00
15s threshold

Most of my coding now is a conversation with an agent: Claude Code, Codex, OpenCode or Pi in a terminal. Typing long prompts at midnight got old, so I built CodePad . It's a macOS menu-bar app that turns an Xbox or PlayStation controller into a remote for those agents.

You hold the left trigger and talk. When you let go, the text appears in the agent. Press A to send. The other buttons are the agent's own commands: switch model, thinking effort, plan mode, resume, interrupt, and switching between terminal tabs.

It's MIT-licensed: github.com/Himanshu8881212/codepad

This post covers the parts that were interesting to build.

Speech-to-text that never leaves the Mac

I didn't want audio going to a server, so recognition runs locally with Phonon-2 , a Core ML port of NVIDIA's Parakeet TDT, on the Apple Neural Engine. A typical sentence takes about 10 ms.

The audio path is small. AVAudioEngine taps the mic only while the trigger is held.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.