Skip to content

Terminals

Polygraph coordinates work across multiple repositories by spawning one child agent per repo. Running a session inside a terminal multiplexer opens each child agent in its own pane, tab, or window — so you can watch all of their live logs side by side, rather than attaching to each one separately.

Polygraph works much better in multiplexer mode, where you can see all child logs side by side.

Polygraph supports the following choices for --multiplexer:

ChoiceDescription
autoDefault. Detects the best available option for your environment.
tmuxtmux
iterm2iTerm2 (macOS)
kittykitty terminal
ghosttyGhostty terminal
cmuxcmux
zellijZellij
noneDisable multiplexer support.

Pass --multiplexer (alias -m) when starting a session:

Terminal window
polygraph session start --multiplexer <choice>

The default is auto, which picks the best available option for your environment.

To bring an existing session into a multiplexer, resume it with the flag:

Terminal window
polygraph session resume --multiplexer <choice>

This is how you add multiplexer support to a session that was started without one.

Set multiplexer in the Polygraph config so every session uses it without passing the flag each time:

Terminal window
polygraph config set multiplexer tmux

If the selected multiplexer is not installed or configured correctly, Polygraph prints a warning and continues without one for that run.

View child agent logs without a multiplexer

Section titled “View child agent logs without a multiplexer”

When no multiplexer is active, attach to a single child agent's live logs with:

Terminal window
polygraph agent attach -s <sessionId> -r <repo>

When you start a session without a multiplexer, the session welcome card lists these agent attach commands under a View child agent logs section — one per repo in the session.

You do not need to restart from scratch. Exit the current agent session and resume it with a multiplexer:

Terminal window
polygraph session resume --multiplexer auto

Polygraph reconnects to the session and opens each child agent in its own pane, where you can see all logs side by side.