Run Inspector
Observability workbench for inspecting single AI agent runs — featuring a collapsible span tree, aligned millisecond waterfall, copyable Input/Output payloads, failure diagnostics, and token/cost attribution.
When to use
Good fit
Agent observability consoles, eval & debugging views, and developer platforms where engineers inspect latency bottlenecks, failing tool calls, and token/cost attribution per span.
When not to use
End-user chat interfaces — keep lightweight reasoning and tool summaries inline with Thinking State and Tool Call Card.
Key capabilities
Hierarchical step tree + proportional waterfall
Every nested Agent, LLM, Tool, Retrieval, and Guardrail span aligns to a shared millisecond ruler with collapsible branches and instant kind/error/text filtering.
Payload, token & cost attribution inspector
Click any span bar to inspect copyable JSON Input / Output, structured error callouts, latency percentage share, prompt/completion/cached token breakdown, and OTel-style metadata.
Failure triage & one-click trace replay
Switch to the failed Staging DB migration run to jump straight to the failing shell.exec span (ERROR 55P03), copy the full trace JSON, or click Replay run to simulate a clean rerun.
Zero external charting dependencies
Pure CSS geometry and BIU UI primitives (AppShellFlat, ResizablePanelGroup, Tabs, ScrollArea, Badge, Button) — lightweight, theme-aware, and copy-pasteable via Registry.
API Reference
Feed OpenTelemetry or custom agent traces into runs and handle onSelectSpan / onReplayRun to connect replay or deep-link routing.
RunInspectorProps
TraceSpan
Included Primitives
Installing run-inspector automatically pulls these BIU UI primitives through the shadcn Registry: