coding.sh tree
Show a whole multi-agent run as one tree, with rolled-up totals. Every option of coding.sh tree, from its own --help.
coding.sh tree <SESSION|RUN> [options]
Show a whole multi-agent run as one tree, with rolled-up totals
Arguments
session|run A session id or prefix (its whole tree, from the top-level agent down), or a run id (every agent of the fan-out)
Options
--run Read the argument as a run id (CODING_SH_RUN_ID), not a session
-n, --limit <N> With --json: most nodes in one page (default: 50)
--cursor <CURSOR> With --json: the nextCursor of the last page
--fresh Wait for every pending capture to be ingested (default: answer after 1.5 s)
Examples
coding.sh tree latest
coding.sh tree 9f1c2e
coding.sh tree my-fanout-123 --run
Notes
From any session, the tree is its top-level agent and every subagent under it, with per-node model, cost, tokens, duration and tool calls, and the run's totals and worst flag.
With --json the tree comes a page at a time: 50 nodes, depth-first, with nextCursor and truncated: true when more are left. totals and worst cover the whole tree on every page. A node whose parent was on an earlier page is at the top level of its page; depth and parentSessionId say where it hangs. Nodes are session digests, as in sessions --json.
Separate agent processes group into one run when they share a run id: set CODING_SH_RUN_ID on the orchestrator that launches your fan-out, then pass that id.