Skip to content

Heat Trail

Reasoning that shows where the agent spent its effort. The newest words land warm and cool on an exponential curve as they stream, so you see where the text is growing without a shimmer, and a strip of steps shaded by time or tokens takes you to the step that took the most. Once the stream stops, nothing moves.

On this page
Used for
  • Stream reasoning without a shimmer
  • Show where the effort went
  • Explain a slow answer
  • Review a run's thinking

Examples

Shade by

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

stepsrequired
HeatStep[]
Each step: id, label, its text so far, ms spent and optionally tokens. Append to the last step's text as it streams.
streaming
boolean
Defaultfalse
The heading counts time and the last step reads Now. When it turns false the finish is announced once.
decay
number
Default1200
Cooling constant in ms: a word is at 37% heat after this long and cold after three times it.
measure
"time" | "tokens"
Default"time"
What the strip shades by. Tokens default to about four characters each when a step has no count.
title
ReactNode
DefaultThinking / Thought for 12.4s
The heading.
onStepSelect
(id) => void
A strip segment was picked; it also scrolls to and flashes the step.
Motion
-
One CSS animation per new word, colour and a faint wash only, ending on its own after three decay constants; words there on first render are cold. The strip does not animate. Reduced motion: words arrive cold.

Accessibility

  • The words are not read out as they arrive; the finish is announced once, politely, with the step that took the most.
  • Each strip segment is a button named with its step, time and share, so the effort map works without colour.
  • Heat is never the only signal: the strip's widths and the per-step times carry the same information as text.

What it handles

  1. 01Lands each new word in a warm colour that cools as exp(-t / decay), 1.2s by default, so the growing edge of the text is easy to find.
  2. 02Keeps words that were there on first render cold, and stops on its own: no loop runs once the stream ends.
  3. 03Shades a strip of steps by their share of the time or tokens, from Less to More against the biggest step.
  4. 04Names the step that took the most in the header, and scrolls to and flashes a step picked on the strip.
  5. 05Counts time in the heading while it streams and reads Thought for 12.4s after, announcing the finish once.
  6. 06Names every strip segment with its step, time and share, so the effort map reads without colour.

States

First render
Nothing. Every word is cold
none
A word arrives
It lands warm and cools along an exponential curve over three decay constants
none on the layout: colour and a faint wash only, 3.6s by default
Strip segment picked
Its step label flashes once
none on the layout: the motion lib's background flash
Stream ends
Heading swaps to Thought for; the last words finish cooling
none
Reduced motion
Words arrive cold
0ms

Works with

When to use

When to use

  • Showing an agent's reasoning as it streams, with the newest words warm instead of a shimmer.
  • Answering where the time went after a run: which step took the most time or tokens.

When not to use

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 Heat Trail to my app and wire it to my own data.
  • I need showing an agent's reasoning as it streams, with the newest words warm instead of a shimmer. Set that up with the Knowns UI Heat Trail.
  • Which Heat Trail props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "heat-trail" }) and search_docs({ query: "heat trail" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Heat Trail, or found something off? We read every message.