Terminals, scripts and machines

Terminal panes that keep running after you close Wraithgrid, the wraithgrid command line for scripts and agents, attach, and running a project on another computer over ssh.

Agents that keep running

Terminal panes run in a small background host written in Rust (about 5 MB of memory while idle), not in the window. Close the window with agents running and pick Keep running: a tray icon shows how many, and opening Wraithgrid again shows every pane as it is now. Stop all agents and quit in the tray, or Settings → General → When the window closes, changes that.

The wraithgrid command

Turn on Settings → Advanced → Command line first; it is off by default. Then any terminal, or an agent in another pane, can drive your panes:

wraithgrid list                        # panes: id, title, project, account, state
wraithgrid send alpha "fix the failing test"
wraithgrid wait alpha --until idle     # also: running, blocked, exited
wraithgrid read alpha --lines 50
wraithgrid new --account work --cwd ~/proj/api -- --model opus
wraithgrid split alpha                 # beside alpha, same account and folder
wraithgrid attach alpha                # the pane in this terminal; Ctrl+] leaves it
wraithgrid stop                        # stop every agent

Name a pane by its id or title. Inside a pane, $WRAITHGRID_PANE holds its own id, so an agent can split itself or prompt another pane. The command sees terminal panes only.

Another computer

Add a computer under Settings → Advanced → Machines (a host from ~/.ssh/config, or user@host; Test checks it), then right-click an empty project → Run on …. Its panes start there with that computer’s CLIs, folders and logins, and keep running when you disconnect.

The other computer needs ssh that logs in with a key or an agent. A Linux machine needs nothing else: Wraithgrid copies its host there once per version and removes versions unused for 30 days.