Issues and agents
Read, replay and close issues, and run agents and read their executions, from the terminal: the loop a coding agent runs to fix an issue, and how a script starts a labeling agent.
Issues
An ISSUE_ID is the id issues list shows.
trodo issues list --status open,regression --table # --agent NAME, --search TEXT, --limit N
trodo issues get ISSUE_ID # root cause, suggested fix, evidence (runs, spans, conversations), timeline
trodo issues failures ISSUE_ID # the recorded inputs of every failure, to replay against a fix
trodo issues close ISSUE_ID
trodo issues reopen ISSUE_ID--status takes open, regression and closed, comma-separated. failures pages with --limit and --cursor: follow page.next_cursor until page.has_more is false.
A closed issue that gets new evidence reopens on its own as a regression, so closing too early shows. See Issues.
Fix one with a coding agent
trodo issues get ID: read the root cause as a lead, then the evidence itself.trodo runs tree RUN_IDon a few of the evidence runs: find the deepest failing span.- Fix the code.
- Replay
trodo issues failures IDagainst the fix. - After it ships:
trodo traces count --since 1h --eval "NAME:failed"should fall to zero. trodo issues close ID.
Agents
An AGENT argument is the agent's name or id.
trodo agents list --table
trodo agents get "Label Expected where models agree" # its steps, trigger and published version
trodo agents run "Label Expected where models agree" --wait
trodo agents executions "Label Expected where models agree" --table
trodo agents execution EXECUTION_IDrun starts the agent as Run manually does: its published version, or its draft if it has never been published. --input '{"...": ...}' is the trigger payload the steps read as $trigger. --wait polls until the execution finishes (15 minutes at most; --timeout SECONDS changes it), prints it, and exits 1 if it failed.
The usual use is starting a labeling agent from a script or CI after new rows arrive:
trodo datasets add "Refund failures" --kind spans --since 1d --eval "Refund policy:failed" \
&& trodo agents run "Rewrite failed rows with a stronger model" --waitPrompts
Read, pull, edit, push and label managed prompts from the terminal, with the same versions and labels as the Prompts page.
Training data
From production traces to a fine-tuned open-weight model: train on what went well, fix what failed, export, and hand the file to Fireworks, Together or OpenAI.