toryo docs
Documentation navigation

Watching agents

A Claude Code worker runs in one of two execution modes, and the mode decides where you watch it. In print, the default, you follow it in board's worker feed. In interactive, it is a live Claude Code session in your terminal multiplexer that you can attach to and type into.

A print worker runs Claude Code headless. Its output goes to the job's event log and to the live worker feed in board's Dispatch job detail, not to its terminal. Attaching to its terminal shows an empty pane, under tmux and herdr alike.

What you get in return:

  • A later job can continue the same conversation by passing this job's session id as resumeSessionId. See Dispatch.
  • Each subagent the session starts appears in the worker feed, with its own tool calls nested under it.
  • The job's cost is the figure Claude Code reports for the run. A resumed session is priced from its own token usage instead, because Claude Code's figure would also count the earlier runs.

interactive#

An interactive worker is a live Claude Code session in the worker's tmux or herdr session. You can attach to it, watch it work, and type into it mid-run. Under herdr it also shows herdr's agent status; see Herdr.

What it costs you:

  • It cannot resume. Every interactive session starts a fresh conversation.
  • The worker feed still shows the session's own tool calls and messages, but not its subagents' work.
  • The job's cost is an estimate from token counts against a price table, not the figure Claude Code reports.

Attaching to a worker#

In board, open a running job's detail and press open terminal. From a terminal, run toryo-dispatch terminal <jobId>, which prints the attach command for that job: tmux attach -t <session> under tmux, hc attach <name> under herdr.

Either way, a print job's pane stays empty; follow it in the worker feed instead.

Choosing a mode#

A worker takes its mode from the highest of these that is set:

  1. Per run. A job payload's llm.executionMode, "interactive" or "print", for programs that queue work themselves, such as toryo-dispatch enqueue --file or a sequence step's payload. From a skill, /toryo-task <project> <prompt…> --exec-mode interactive pins one session.

  2. The worker's environment. TORYO_EXEC_STRATEGY=interactive (or print) in the environment the worker process starts with. A queued job's worker inherits the dispatch service's environment, not your shell's, so exporting it in your shell changes no job that board, a skill or a sequence queues. Use the host default for those.

  3. The host default. In board, Settings → Worker → Execution mode. From a terminal:

    toryo-worker settings set --execution-mode interactive
    toryo-worker settings get
    

    It takes inherit, interactive or print. inherit is the shipped value and states no preference, so the worker falls through to print. A change applies to sessions that start after it.

  4. Nothing set. The worker runs in print.

Claude Code only#

The execution mode is a Claude Code setting. Codex, Copilot and Cursor ignore it and run every session one way. See Harnesses.