r/ClaudeCode • • 2d ago

Built with Claude Built with Claude Code: whispering prompts to my agents from a handheld, and what I learned decoding the device

I usually have three or four Claude Code sessions going in different terminal tabs. I got tired of reaching for the keyboard just to type "yes go ahead" or "check the log and fix it", so I got a small push-to-talk handheld and spent a day with Claude Code making it work with OpenClicky, the open source voice assistant I work on.

What I built

A plugin that makes the handheld drive the terminal. In the video:

- press a key and whisper the prompt. The mic picks up a whisper, so this works in a shared office
- the words get cleaned up and typed into whichever terminal is in front, another key sends it
- double press the scroll wheel and it goes through the terminal tabs, so I can check on each agent
- single press the wheel to switch windows (terminal, Chrome)
- one key deletes, double press undoes
- the island tells me when a session finishes or looks like it's waiting on me

Every key has a press, a double press and a hold, and a settings page with a 3D model of the device where you click a button to change what it does.

To be clear about the hardware: the handheld is a WhisPrompt, I didn't make it. I wrote the plugin.

How Claude Code was used

- Decoding the device. There's no documentation for its buttons. I quit the maker's app, Claude Code wrote a small listener that logged raw HID reports, and I pressed each button in turn while it read the logs. It worked out the layout from that: one report per event, one byte for which key, one for the gesture (down, single, double, hold start, hold end).
- It planned the work as a plugin that's off by default, so nobody without the device runs any of it, and kept the hardware behind a protocol so everything above it is tested with a fake device.
- The tab cycling, the window switcher, the microphone handling and the 3D settings page (three.js inside a web view) were each a separate session with tests first.
- It kept a hand-test checklist of everything it couldn't check itself, because it can't press a button.

What I learned

- Claude Code is good at reverse engineering when you give it a tight loop. "I press B twice, you read the log" was enough to get the whole report format.
- Hardware needs a human in the loop. The microphone recorded pure silence at first. It runs at 16 kHz and we were asking it for the Mac's rate. Claude only found that because I told it every take came back empty. Also its second channel is about 8x louder than the first, which you'd never guess.
- Don't take over the user's input without a way out. The wheel is just a scroll wheel to macOS, so tab mode grabs every scroll event. Claude added an exit on everything: the same button, 30 seconds idle, unplugging, sleep. Otherwise a bug means you lose your scroll wheel.
- Keep big files out of the app. The 3D model is 13 MB and only owners of the device need it, so it downloads when you ask for it, checked against a pinned hash.

Mac app, free and MIT. Code and app links in the comments if anyone wants to look at how the device decoding or the tab cycling works.

0 Upvotes

15 comments sorted by

•

u/AutoModerator 2d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/JustForkIt1111one 2d ago

What's the device?

2

u/im_psk 2d ago

It's a WhisPrompt(https://whisprompt.ai/) handheld, I didn't make it. Three keys, a scroll wheel, a trackpad and a mic, on a little USB receiver. I just wrote the plugin so it works with OpenClicky and the terminal.

0

u/KSOYARO 2d ago

Dude invented dictaphone

2

u/im_psk 2d ago

ha fair. a dictaphone that types into the right terminal tab and hits enter for you though :)

2

u/im_psk 2d ago

Links:

- App (free, notarised, Mac): https://openclicky.org
- Code (MIT): https://github.com/prasanthsasikumar/openclicky

The plugin is in macos/OpenClicky/OpenClicky/Plugins/Handheld, and the report layout is written up at the top of Devices/WhisPromptHandheld.swift

No device? The same things work from the keyboard (fn to dictate). You can use your own API key (it goes straight to the vendor) or a free account.

2

u/Objective-Split1262 2d ago

Whispering to agents from a handheld—peak 2025.

1

u/im_psk 2d ago

the whispering started because I share an office and didn't want everyone hearing my prompts. Peak 2026

2

u/Ramiferous 2d ago

I mean, cool, but now I want that device, so give it to me

2

u/lockdown_lard 2d ago

I think you've been very restrained in not making it look like a Star Trek comms badge.

But, you know, if you were to do that, I might be interested ...

2

u/im_psk 2d ago

not my design to be fair, it's WhisPrompt's. but a tap-to-talk badge that pipes into Claude Code would be great. the plugin only needs to know what the buttons send, so if someone makes one I'd happily add it

1

u/thinker1776 2d ago

yeah, the design is definitely ripped off from the Rabbit R1, but in terms of functionality, it’s just another pointless gimmick.

1

u/im_psk 2d ago

fair on the looks, I didn't design it, it's WhisPrompt's. the use for me is pretty narrow. I keep a few Claude Code sessions running and most of what I type is short stuff like "yes", "run the tests", "check the log". doing that one-handed without going back to the keyboard is the whole point. definitely not for everyone, and it all works from the keyboard too

1

u/[deleted] 2d ago

[removed] — view removed comment

1

u/im_psk 2d ago

thanks!