Repository navigation
A phone companion app: watch sessions and answer agent prompts from the phone #1003
NaikSoftware
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I run several agent sessions at once, and most of the time what they need from me is small: a permission prompt, a yes/no, a glance at whether a run finished. A phone companion app would let me answer from the couch or the kitchen instead of walking back to the desk, while the sessions keep running on the computer as they are.
The idea
A phone app that pairs with a running agterm and works with its sessions:
A working version
We built this for agterm-qt, a Qt/KDE port that follows agterm. The Android app is in mobile/, written in Flutter, merged in agterm-qt#15. Here it is running screens:
How it works, in case it helps decide the shape for agterm:
agtermctl mobile serveis a small relay that forwards each request line to the app's control socket and returns the answer tagged with the phone's request id. Events come fromevents.read.session textreports the pane's grid size.session type --pane righttypes into the split pane.session grid <cols>x<rows> | --resetsets a pane's grid apart from its window.session scroll <lines>sends wheel notches as a mouse would.On macOS this would naturally be an iOS app, and the remote-session work (agterm-server, zmx attach) might already cover the transport. Would you be interested in something like this upstream, or in a relay mode that a third-party phone client could use? I'm glad to share details or help with a port.
All reactions