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
| Subcommand | Description |
|---|---|
list | List agent task runs |
get <task_id> | Get the status of a specific run |
conversation get <conversation_id> | Retrieve a conversation by conversation ID |
message watch <run_id> | Watch for new messages delivered to a run |
message send | Send a message from one run to one or more recipient runs |
message list <run_id> | List inbox message headers for a run |
message read <message_id> | Read the full body of a message |
message mark-delivered <message_id> | Mark a message as delivered |
oz run list
Lists recent agent task runs. By default returns the 10 most recent runs. Supports extensive filtering and sorting.Flags
Maximum number of runs to return.Short form:
-LFilter 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.Filter by the source that created the run. Accepted values:
api, cli, slack, linear, scheduled-agent, web-app, cloud-mode, github-action, interactive.Filter by where the run executed. Accepted values:
local, remote.Filter by creator user ID.
Filter by environment ID.
Filter by skill specification (e.g.
owner/repo:path/to/SKILL.md).Filter to runs created by a specific scheduled agent, identified by schedule ID.
Filter to descendants of a specific run, identified by run ID.
Filter by agent config name.
Filter by model ID.
Filter by produced artifact type. Accepted values:
plan, pull-request, screenshot, file.Only include runs created after the given RFC 3339 timestamp.
Only include runs created before the given RFC 3339 timestamp.
Only include runs updated after the given RFC 3339 timestamp.
Fuzzy search across run title, prompt, and skill spec.Short form:
-qField to sort by. Accepted values:
updated-at, created-at, title, agent.Sort direction. Accepted values:
asc, desc.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
| Argument | Description |
|---|---|
task_id | The run ID to inspect |
Flags
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
| Argument | Description |
|---|---|
conversation_id | The conversation ID to retrieve |
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.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.Recipient run ID. Repeatable — specify multiple times or use comma-separated values to send to multiple recipients. Required.
Message subject. Required.
Message body. Required.
Sender run ID. Required.
oz run message list
Lists inbox message headers for a run.Only return unread messages.
Only return messages sent at or after this RFC 3339 timestamp.
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