Watch the run, then approve the pull request when it pauses for you.
A vertical run of steps an agent walks through, each with a mark, tool logo, live status and clock. Running steps unfold substeps on a sparking connector, and gate steps pause for an approval.
The running step opens on its own and shows its substeps, with a spark travelling the connector to the live one. Press a step row to fold or unfold its substeps; past six, they fold around the running one into +N rows. When a gate step is reached it pauses as Needs you – press it to open the ask panel, Enter on a button resolves it and Esc closes the panel. Rows announce state changes to screen readers.
Options for the assembled component.
steps*TrailStep[]Id, title, state, optional duration, status, startedAt, gate, ask, tool and substeps.
titlestringTask name in the head. Leave out for no header.
agent{ name, logo? }Agent pill next to the title.
expanded / onExpandedChangestring[] / (ids) => voidControlled set of steps with open substeps. Uncontrolled, the running step opens itself.
onApprove / onDecline(step) => voidResolvers for waiting gate steps. Without them the ask panel stays inert.
labelsPartial<TrailLabels>Overrides for every string the card renders.
classNamestringExtra class on the root.
_agent-trail/agent-trail.tsxCard shell: head with task, agent pill and done count, the step rows with marks, wires, spark, substeps, ask panel and announcements.
_agent-trail/trail-model.tsDuration and meta text per state, the running substep index and the fold window for long substep lists.
_agent-trail/types.tsTrailStep, TrailSub, TrailState and the label table.
_agent-trail/use-trail-script.tsPlays the demo loop: substeps advance, steps complete, the gate pauses and the run resets.
_agent-trail/agent-trail.cssAll colors and spacing as tokens on .at, with a dark theme and reduced-motion handling.
Recreated from the behavior of a reference step trail. Colors and spacing are the reference values.
Watch the run, then approve the pull request when it pauses for you.