How we stopped guessing when CLI coding agents wait for approval (hooks vs terminal scraping)
I'm building TernaryCode (free, MIT, native Rust workspace for macOS, Windows, and Linux) because running 4–5 CLI coding agents (Claude Code, Codex, OpenCode, Antigravity CLI) across projects meant constantly Alt+Tabbing just to check which agent was stuck on an approval prompt.
The first idea most people try is scraping terminal output for spinners or "Do you want to proceed?". It breaks constantly: wording changes across CLI updates, long tool calls look identical to idle prompts, and once a status badge lies twice, you stop trusting it.
What worked instead:
1. Hook into each agent's own lifecycle events per launch (passing --settings to Claude Code, -c overrides to Codex, and a tiny plugin for OpenCode) without modifying the user's global config files.
2. Collapse everything into Needs input / Running / Done / Failed — and when an agent has no hooks yet, honestly show "Active" rather than guessing.
3. Order waiting agents oldest-first in an Inbox so one shortcut (⌘J / Ctrl+Shift+J) jumps straight to the next agent waiting on you, or lets you approve from your phone over local Wi-Fi.
4. While we were fixing multi-agent friction in v0.3.5, we also added multi-account failover for Claude Code and Codex (isolated CLAUDE_CONFIG_DIR / CODEX_HOME, real 5h/weekly usage tracking, resuming the same conversation on the next account) plus a native embedded browser agents drive over MCP while you watch.
Repo: https://github.com/ilhamnadhif/t...
Website: https://ilhamnadhif.github.io/te...
Curious how other makers here manage 4+ parallel coding agents without missing prompts or hitting 5-hour limits!
p/heynews
p/runevr
p/gatrends
p/google-cloud-platform
p/producthunt
p/contral
p/meridian-16
p/murror
p/kodlo
p/statefold-2
p/chickytutor
p/expert-chase-deleted-1107920
p/inquir
p/pagecloud
p/reso
p/findergit
p/talanoa-2
p/fable-fiesta
p/screencursor
p/touchdeck
Replies
Be the first to reply
Have a question or a thought to share? Add a comment above to start the conversation.