Skip to content

Runs ​

Overview
What it isThe record of each agent execution: model calls, tool calls and result
CLIagt run, agt agent run
Web consoleExecution bar, the record under each reply, Debug (调试模式)
Settingsscheduler.model_steps
Storageruntime/runtime.db
Cratesagt-runtime, agt-inference

What it does ​

Every time an agent replies to a message or works on a task, agt records a run: its input, status, model calls, tool calls and output. Runs let you see what an agent did, why it failed, and what it cost in calls.

A native run loops between the model and tools until the model gives a final answer. Messages that arrive meanwhile are delivered at the next tool boundary (steering) or after the current work (follow_up). Codex runs are a Codex turn, with Codex's own tool loop.

completed means the model finished normally, not that the goal was achieved; check the tool failures and the output. A run cut off during a model or tool call is never retried automatically, because the call may already have had an effect.

How to use it ​

Web console: each reply shows its tool calls, duration and failures; click to expand or open the full record. Turn on Debug for run IDs, call counts and error codes.

CLI:

bash
agt run list --limit 20
agt run info <run>
agt run calls <run>
agt run tool-detail <run> --activity <activity>

Common parameters ​

ParameterMeaning
agt run info <run>Status, input, output, errors, tool failure count
agt run calls <run>Each model and tool call, with timing and status

All parameters ​

agt run commands ​

CommandOptionsMeaning
list--limit <n> (default 50), --conversation <id>Recent runs; with --conversation, only top-level runs triggered there
info <run>One run
calls <run>--after <id> (default 0), --limit <n> (default 50)Model and tool calls. Records the tool name, timing, status, safe error code and the shape of the arguments, not their values. Page with the last ID as --after.
children <run>Runs delegated from this run (agt agent run --delegate)
tool-detail <run>--activity <id> (required)Full arguments and result of one tool call, truncated at 64 KiB per field. Local operator only.

agt agent run ​

Runs an agent once, outside any conversation. Options are listed in Agent.

Settings ​

KeyDefaultMeaning
scheduler.model_stepsnullMaximum model calls in one native run. null for unlimited. Does not limit Codex. Takes effect for new runs.

Run status ​

StatusMeaning
runningIn progress, or cut off before a final status was recorded
suspendedWaiting with a saved checkpoint (tasks only)
completedThe model finished
failedAn error ended the run
canceledStopped by a person, a disabled agent or an ended discussion
interruptedStopped by a crash or restart, and the stop is confirmed. Check its effects before trying again.
outcome_unknownCut off during a step whose effect cannot be confirmed; check before retrying

Call record status ​

StatusMeaning
startedThe call began and no result was recorded: the outcome is unknown
succeeded, failed, canceledThe call's result
  • Scheduler: what starts runs
  • Tasks: runs that work on tracked tasks
  • Model: retries and context management inside a run

Released under the MIT License.