tx

tx trace

Execution tracing and run observability

Overview

Track agent runs with full observability. View timelines, metrics, stderr, and transcript content for debugging failed runs.

CLI Usage

# List recent runs
tx trace list
tx trace list --hours 48

# Show run details and metrics
tx trace show run-abc123
tx trace show run-abc123 --full   # Combined timeline with tool calls

# View raw content
tx trace transcript run-abc123
tx trace stderr run-abc123

# Aggregate errors
tx trace errors
tx trace errors --hours 48

MCP Tools

ToolDescription
tx_run_listList runs
tx_run_getGet run details
tx_run_createCreate a run record
tx_run_updateUpdate run status

API Endpoints

MethodPathDescription
GET/api/runsList runs
GET/api/runs/:idGet run details with messages
POST/api/runsCreate a run
PATCH/api/runs/:idUpdate a run
GET/api/runs/:id/stdoutGet run stdout
GET/api/runs/:id/stderrGet run stderr

SDK

// List runs
const runs = await tx.runs.list({ agent: 'claude', limit: 10 })

// Create and update a run
const run = await tx.runs.create({ agent: 'claude', taskId: 'tx-abc123' })
await tx.runs.update(run.id, { status: 'completed', exitCode: 0 })

On this page