Machine output stays on stdout and progress stays on stderr, so a pipeline can parse --json without filtering log lines. The TUI does not use exit codes for turns. Ctrl+C interrupts a turn, and a second idle Ctrl+C exits.