Skip to content
Cuelark UI
AgentsAnimated

Trace Waterfall

An agent run on one timeline: agents, model calls and tools.

Trace Waterfall lays an agent run out on a timeline: nested agents, model calls and tool calls as bars, running spans growing live, failures in red. Hover a bar for duration, tokens and cost; collapse branches to focus. Built for observability panels and debugging views.

Preview

Span
0s2s4s6s8s
support-agent
7.8s
model.plan
1.5s
search_docs
1.2s
billing-subagent
3.4s
sql.query
1.1s
stripe.refund
0.6s
stripe.refund
1.2s
model.reply
1.2s
agentmodeltool2,760 tok · $0.018

Installation

pnpm dlx shadcn@latest add https://ui.cuelark.com/r/trace-waterfall.json

The CLI also installs the Cuelark theme tokens. With the @cuelark namespace configured, use @cuelark/trace-waterfall.

Builds on: tooltip

Usage

import { TraceWaterfall } from "@/components/ui/trace-waterfall";

<TraceWaterfall spans={trace} />

Motion

How it moves

Running spans grow in real time with a shimmering edge.

Scale it with --cl-motion (0 off, 1 default, 1.5 expressive) on any ancestor. Reduced-motion preferences always switch it off.

API reference

TraceWaterfall

PropTypeDefaultDescription
spansTraceSpan[]—{ id, name, kind, start, end?, tokens?, cost?, error?, children? }
nownumber—Current time for running spans.

Accessibility

  • Fully keyboard operable with visible focus.
  • Live regions announce streaming updates politely.

FAQ

Also searched as: agent trace visualization · llm observability ui · waterfall chart react · trace timeline component · agent run timeline