oz run command (also available as oz task) lets you query and inspect agent task runs — the execution records created each time an agent is dispatched. You can list runs with rich filtering options, retrieve the status and conversation transcript for a specific run, and work with inter-run messages in multi-agent workflows.
Synopsis
oz task
Subcommands
oz run list
Lists recent agent task runs. By default returns the 10 most recent runs. Supports extensive filtering and sorting.Flags
integer
default:"10"
Maximum number of runs to return.Short form:
-Lstring
Filter by run state. Repeatable — specify multiple times to match any of several states. Accepted values:
queued, pending, claimed, in-progress, succeeded, failed, error, blocked, cancelled.string
Filter by the source that created the run. Accepted values:
api, cli, slack, linear, scheduled-agent, web-app, cloud-mode, github-action, interactive.string
Filter by where the run executed. Accepted values:
local, remote.string
Filter by creator user ID.
string
Filter by environment ID.
string
Filter by skill specification (e.g.
owner/repo:path/to/SKILL.md).string
Filter to runs created by a specific scheduled agent, identified by schedule ID.
string
Filter to descendants of a specific run, identified by run ID.
string
Filter by agent config name.
string
Filter by model ID.
string
Filter by produced artifact type. Accepted values:
plan, pull-request, screenshot, file.string
Only include runs created after the given RFC 3339 timestamp.
string
Only include runs created before the given RFC 3339 timestamp.
string
Only include runs updated after the given RFC 3339 timestamp.
string
Fuzzy search across run title, prompt, and skill spec.Short form:
-qstring
Field to sort by. Accepted values:
updated-at, created-at, title, agent.string
Sort direction. Accepted values:
asc, desc.string
Opaque pagination cursor from a previous list response. When using
--cursor, --sort-by and --sort-order must match the values used to obtain the cursor.Examples
oz run get
Retrieves the status and details for a specific run by its ID.Arguments
Flags
boolean
Retrieve the conversation transcript for this run instead of just the run status.
Examples
oz run conversation get
Retrieves a conversation by its conversation ID.Arguments
oz run message
Themessage subcommands support inter-run communication in multi-agent workflows, allowing one agent to send structured messages to another.
oz run message watch
Watches for new messages delivered to a run’s inbox in real time.integer
default:"0"
Resume after this event sequence number. Use as an inclusive cursor for reconnects.
oz run message send
Sends a message from one run to one or more recipient runs.string
Recipient run ID. Repeatable — specify multiple times or use comma-separated values to send to multiple recipients. Required.
string
Message subject. Required.
string
Message body. Required.
string
Sender run ID. Required.
oz run message list
Lists inbox message headers for a run.boolean
Only return unread messages.
string
Only return messages sent at or after this RFC 3339 timestamp.
integer
default:"50"
Maximum number of messages to return.Short form:
-Loz run message read
Reads the full body of a message.oz run message mark-delivered
Marks a message as delivered.oz run message delivered