Skip to content

Terminals

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

Polygraph detects and configures your terminal automatically, but you can pass the --multiplexer flag to override the behavior.

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>

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 the default multiplexer in $HOME/.polygraph/config.json:

{
"multiplexer": "tmux"
}

In general, you don't need to set it — Polygraph detects your terminal automatically.

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>