Skip to main content

Module files

Module files 

Source
Expand description

Files on an SSH host, through AgentMux’s helper (spec §6.3 of SPEC_REMOTE_TERMINALS_AND_DURABLE_SESSIONS_2026_10_02.md): one ssh -T host -- agentmux-remote serve --stdio per connection, kept open while it is used and closed after IDLE_CLOSE without a call, speaking agentmux_remote::fsproto. Requests carry ids, so any number can be in flight on one connection.

A host without this version’s helper gets it installed on first use (helper_install::ensure), as a durable pane does. ssh’s prompts go to the user in the window of the pane that asked (connect’s ask).

Structs§

RemoteError
Why a remote file operation failed.
RemoteFiles
One open connection to a host’s helper.

Constants§

IDLE_CLOSE
A connection nobody has used for this long is closed.

Functions§

close
Drop the connection to conn’s helper, if there is one (its ssh ends): the helper was removed from the host.
close_idle
Drop every connection idle for after or more (each ssh then ends).
connect
The open connection to conn’s helper, made (and the helper installed) if there is none. ask: where ssh’s prompts go, if any are needed.
connect_quiet
connect for something that asks every few seconds on its own (a pane’s stats badge), not on the user’s word: the open connection, or a new one only on a host the helper is known to be on (helper_hosts), never an install, a consent question or an ssh prompt (a login that needs one fails instead; a pane’s shared connection usually makes it unneeded).