Remote agent access: shared local + remote terminal (multi-viewer) over iroh #478
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Remote access to running agents: spin an agent up locally and watch/drive the same session from a phone, with multiple viewers on one session.
Context
PRD 0070's plane separation puts the remote-access transport (iroh) in the orchestrator (control plane). Terminal access is
BottleBackend.exec_agent(ssh -t/container exec --tty/docker exec) — an orchestrator-owned exec operation. The gateway is never in the PTY path (it only sees agent network traffic), so remote terminal is inherently a control-plane feature, not a data-plane one.Goal
--remoteflag onstart(andresume) that gives the usual local terminal and publishes the same session for remote attach.Resolved (per PRD 0070)
execis a private PTY. Local and remote clients are both clients of the one multiplexed session.Open design decisions
--remote— always run the session under the multiplexer (any local session can be published later; every agent runs under it) vs. plainexecunless--remote.Related