Scroll replays a recorded agent run. The stage pins, the question types in, the agent graph ticks as each tool call lands, each call's card shows what it returned, the run stops for an approval and the answer arrives with a chart that grows. Scroll back to rewind. On phones and under reduced motion it shows three still frames in order.
On this page
- The hero band of an agent product
- A case study told by scroll
- A launch post for run replays
- An onboarding tour of one run
Examples
Still frames
What phones, short screens and reduced motion get, and what renders before JavaScript.
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- runrequired
ReplayRun- { prompt, actors, spans, approval?, answer?, chart? }. Times are epoch ms on the run's clock.
- title
ReactNode- Heading above the stage.
- description
ReactNode- One or two sentences under it.
- scrollLength
number- Default
3 - Extra scroll while pinned, in views.
- root
RefObject<HTMLElement>- Default
window - A scroll container.
- subscribe
(onScroll) => () => void- An outside scroll source.
- viewHeight
string- Default
"100svh" - One view as a CSS length.
- layout
"auto"|"frames"- Default
"auto" - Pinned where it fits, or always the still frames.
- graphHeight
number- Default
300 - The agent graph's height on the stage. The graph fits its box, so a shorter one shows the same team larger.
- graphLayout
"radial"|"tree"|"horizontal"|"center"- Default
"radial" - How the team is laid out. A tree packs a small team tighter.
- graphScale
number- Default
1 - Draws the graph this many times larger in the same panel (CSS zoom, text stays sharp).
- frame
(stage) => ReactNode- Wraps the pinned stage, e.g. in your page's sheet with a caption.
- endMark
ReactNode- Shown under the answer once it lands: a stamp, a badge, a next step.
- labels
Partial<RunReplayStageLabels>- Default
English - replay, calls, waiting and the three frame names.
- as
"h2"|"h3"- Default
"h2" - Heading level.
| Prop | Type | Default | Description |
|---|---|---|---|
| runrequired | ReplayRun | required | { prompt, actors, spans, approval?, answer?, chart? }. Times are epoch ms on the run's clock. |
| title | ReactNode | - | Heading above the stage. |
| description | ReactNode | - | One or two sentences under it. |
| scrollLength | number | 3 | Extra scroll while pinned, in views. |
| root | RefObject<HTMLElement> | window | A scroll container. |
| subscribe | (onScroll) => () => void | - | An outside scroll source. |
| viewHeight | string | "100svh" | One view as a CSS length. |
| layout | "auto" | "frames" | "auto" | Pinned where it fits, or always the still frames. |
| graphHeight | number | 300 | The agent graph's height on the stage. The graph fits its box, so a shorter one shows the same team larger. |
| graphLayout | "radial" | "tree" | "horizontal" | "center" | "radial" | How the team is laid out. A tree packs a small team tighter. |
| graphScale | number | 1 | Draws the graph this many times larger in the same panel (CSS zoom, text stays sharp). |
| frame | (stage) => ReactNode | - | Wraps the pinned stage, e.g. in your page's sheet with a caption. |
| endMark | ReactNode | - | Shown under the answer once it lands: a stamp, a badge, a next step. |
| labels | Partial<RunReplayStageLabels> | English | replay, calls, waiting and the three frame names. |
| as | "h2" | "h3" | "h2" | Heading level. |
Accessibility
- The prompt is in the DOM in full for screen readers; only the typed copy is aria-hidden.
- The scrubber and clock are decorative; the call count next to them is plain text.
- The approval is the real ApprovalPrompt in its read-only form: nothing on the stage waits for input.
- The still frames are an ordered list, so the story reads in order without scrolling tricks.
What it handles
- 01Maps the scroll to the clock of a recorded run: the prompt types in, then every call starts and lands at its own moment, and scrolling back rewinds.
- 02Shows the run as it was at that moment: the agent graph with each actor's state, the last three calls with what each returned, the approval waiting and then approved, the answer and its chart.
- 03Renders React only when an event is passed; the scrubber, the clock and the typed prompt are written each frame.
- 04Falls back to three still frames in order (working, asks first, done) on phones, short screens, under reduced motion and before JavaScript.
- 05Takes the run as plain data: actors, spans with start and end times, one approval and an answer with a chart.
States
- First render
- The three still frames
- none
- Pinned (640px and wider, 600px tall)
- The prompt types over the first 10% of the scroll, then the run's clock follows the scroll
- follows the scroll
- A call lands
- Its card shows the result; the graph node finishes
- the parts' own motion (180ms)
- Approval
- Waits with a note, then shows approved
- on the event
- Answer
- The text arrives and the bars grow from zero
- the chart's own grow
- Reduced motion
- The three still frames
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | The three still frames | none |
| Pinned (640px and wider, 600px tall) | The prompt types over the first 10% of the scroll, then the run's clock follows the scroll | follows the scroll |
| A call lands | Its card shows the result; the graph node finishes | the parts' own motion (180ms) |
| Approval | Waits with a note, then shows approved | on the event |
| Answer | The text arrives and the bars grow from zero | the chart's own grow |
| Reduced motion | The three still frames | 0ms |
Works with
When to use
When to use
- The hero band of an agent product: one real run replayed as the visitor scrolls, from the question to the answer.
- A case study or launch post that shows how an agent found a cause, called tools and asked before it acted.
When not to use
- Debugging a run in an app, with every span on a time axis: use Trace Waterfall.
- A tour of where agents work, room by room: use Office Walkthrough.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Run Replay Stage to my app and wire it to my own data.
- I need the hero band of an agent product: one real run replayed as the visitor scrolls, from the question to the answer. Set that up with the Knowns UI Run Replay Stage.
- Which Run Replay Stage props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "run-replay-stage" }) and search_docs({ query: "run replay stage" }). Pro props, full examples and source come back once your license key is in the MCP config.