Skip to content
Edith

Agent docs

Command referenceBeta

ed crew attach

Attaches the current terminal to one live agent pane.

Output
ed crew attach <pane> [--machine <name>] [--session <name>] [--json]

--machine and --session disambiguate matches in the same way as ed crew command. The plain form hands the terminal to the agents engine locally or to SSH for a remote pane. Its exit status is the attached process status.

--json is non-interactive. It resolves the pane and prints the exact executable, arguments, command and target fields with attached: false. This makes automation safe without pretending that an interactive session ran.

Output
ed crew attach w3:p1N --machine localed crew attach w3:p1N --machine devbox --json

Unknown or ambiguous panes exit 3. An unavailable machine exits 4.

Where to go next