agent-relay watch

Stream the active session line-by-line from another shell. The watcher reads artifacts as they're written to disk, so it works whether the run is happening in a parent terminal, a tmux pane, a CI job, or on a remote machine you've rsync'd the session directory from.

Synopsis

terminal
agent-relay watch [flags]

Run from inside a repo with no flags to follow the most recent active session.

Options

FlagTypeDefaultDescription
--sessionsession idlatest activeFollow a specific session by ULID.
--fromint0Start from a specific turn number. Useful when re-attaching to a long-running session.
--filterstringnoneOnly show events containing the substring. Repeatable.
--no-colorflagfalseDisable ANSI colors.
--jsonflagfalseEmit one JSON event per line instead of formatted text.

What you'll see

The watcher emits one line per event. Common event types:

TypeExample
promptturn 1 prompt sent 1,420 tokens
outputturn 1 output returned 380 tokens · 2 tool calls
toolturn 2 tool run_tests · exit 1
decisionturn 2 decision switched to pytest
blockerturn 3 blocker test_refresh_flow still red
statusstatus rate-limit reached · checkpoint saved

Examples

terminal
agent-relay watch

Exit codes

CodeMeaning
0Watch stream ended cleanly (session completed or checkpointed).
1The target session doesn't exist.
130Interrupted with Ctrl-C (this is normal — the watcher has nothing to clean up).