Skip to content
docs/guides
Get started

The TUI and tmux

The dashboard is where most of this product is used, and this page is the part that is not. If you live in a terminal, you can list the fleet, attach to any session, and drive the lifecycle without a browser — because both are views of the same daemon.

What is not here: the board, reviews, planning workspaces and the Manage screens have no terminal equivalent, and are not meant to.

Terminal window
pm ls # every bucket, project and live session, most recent first
pm attach 23 # the session's terminal, in your shell
pm interrupt 23 # send Ctrl-C into it
pm kill 23 # stop the agent process

pm attach replays the scrollback first and then goes live, so you are not dropped into the middle of a sentence. Ctrl-\ detaches and leaves the agent working — it is not a way to stop anything.

The same session can be attached here and open in the browser at the same time. Type in either.

Terminal window
pm tui

The fleet, full screen. j and k move through sessions, h and l switch between a session’s agent terminal and the shells beside it, Enter attaches into the selected one, and Ctrl-\ comes back out with it still running. q quits.

It is the same list the dashboard shows, with the same ordering and the same needs-input sessions at the top.

For people who already live in tmux, there is glue rather than a replacement.

Terminal window
pm tmux status # one-line fleet summary in status-line markup
pm tmux open 12 23 # open these sessions as tmux windows
pm tmux open --needs-input # open every session currently waiting on you
pm tmux pick # choose one from a tmux menu
pm tmux workspace # list saved workspaces
pm tmux workspace fleet # recreate one's layout as native splits

pm tmux status is meant for status-right polling, so the fleet’s state ends up in the status line you already have.

pm tmux open --needs-input is the one worth binding to a key: it opens exactly the sessions that are asking for you, and nothing else.

Each window or pane it creates is running pm attach, so they are ordinary attachments — detach, close, or leave them.

Everything above also works against a daemon on another machine. Sign in to its dashboard address once, under a name you choose:

Terminal window
pm login https://pm.example.com --name work # asks for your username and password
pm ls # the sessions on "work"
pm attach 23 --name work
pm tui --name work
pm remotes # saved logins
pm logout --name work # revoke it and forget it

Which daemon a command talks to:

  • No saved login: the daemon on this machine, over its unix socket.
  • One saved login and no local daemon running: that login.
  • More than one choice, a local daemon plus a login or several logins: every command needs --name. --name local is the daemon on this machine.
  • --socket or PM_SOCKET always selects the local daemon.

--name goes before or after the subcommand. The exception is pm worker, which has a --name of its own, so write pm --name work worker ... there.

A login is a device on the controller, listed under Devices in Settings next to any phones, and revoking it there signs the CLI out. Its tokens are refreshed for you. pm transcript and pm terminal transcript read files on the controller’s disk and work only on the machine running the daemon.

If the controller serves a certificate your system does not trust, such as a self-signed one, pm login shows the SHA-256 of its public key and asks before pinning it. The daemon logs the same fingerprint when it starts, so you can compare the two. Pass --pin <sha256> to skip the prompt, for example from a script with --password-stdin. Over plain http:// the password and tokens cross the network in the clear, and pm login says so.

The dashboard is the frontend and has things the terminal does not: the board, reviews, plans, published previews. The TUI and the tmux glue are for when you are already in a terminal and want the fleet without leaving it, on this machine or on one you have signed in to.

Neither is a degraded mode. A session answered from pm attach is answered.