r/AgentsOfAI • u/Lyfzxd • 11d ago
I Made This 🤖 I built a human-in-the-loop layer for coding agents: answer their permission prompts from the notch, by voice or from your phone
Coding agents like Claude Code and Codex are useful precisely because they stop and ask before doing something risky: "Run this migration?", "Delete these files?". But that human-in-the-loop step is also where most of my time went. With three or four agents running, one is always waiting on me while I'm looking at another, and when I close my laptop, they all stop.
I built Okey, a Mac app, to make the human part fast without removing it:
How the loop works
- Each agent runs in a terminal session Okey can see. When one asks a question, Okey reads it off the screen, shows it in the Mac's notch with the exact command, and types your answer back. Nothing leaves the Mac for this.
- You answer with 1, 2 or 3, by typing, or by holding fn and saying it (speech is turned into text on the Mac). You have 2 seconds to undo.
- Every command gets a risk label from built-in rules, so the dangerous ones stand out.
Away from the desk
- An iPhone app gets the same questions as notifications, end-to-end encrypted (HPKE with Curve25519 keys; the relay can't read them). Face ID is required before any answer that runs a command.
When the laptop closes
- Okey Cloud moves the agent to its own small machine (one per user, in the EU, no open ports). It keeps working, and its questions still come to the phone. Code comes back as a new branch.
Agents talking to each other
- Claude Code, Codex and OpenCode can ask each other questions. Simple questions go straight through; anything that would change code waits for the human. That was the rule I cared most about: agents can coordinate, but they can't approve each other's changes.
What I learned building it
- Fewer prompts isn't the goal; faster, better-informed answers are. Turning approvals off ("yolo mode") is what people do when answering is painful.
- A permission card must show the whole command. My first version showed only the first line, and a harmless first line can hide a dangerous second one.
Works with Claude Code, Codex, Mistral Vibe, OpenCode and Grok. Mac with Apple silicon, macOS 14+. Link in the comments.
How do you handle approvals for your agents today: answer every prompt, allow-list, or let them run?
1
u/AutoModerator 11d ago
Thank you for your submission! To keep our community healthy, please ensure you've followed our rules.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/dbenc 11d ago
i built something similar 😅 https://notibuddy.app