AgentPlan
What an agent intends to do, before or during a run.
A vertical step list for a running agent task: done steps with durations, the current step with a live timer, then pending steps.
What an agent did and is doing now. Not Timeline. Not ProgressSteps.
Done steps show their duration, the current step a live timer, pending steps wait below.
Running
AgentTrail logs one agent run. AgentPlan shows what it intends to do; AgentFleet shows many agents. Approvals go in an ApprovalCard next to the trail, not inside it.
import { AgentTrail } from "agentic-ds-kit";From contracts/agenttrail.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| title | string | Yes | — | — |
| steps | array | Yes | — | { id, label, status: "done" | "running" | "approval" | "pending" | "failed", duration?, timer?, sublabel? }[]. duration for finished steps, timer for the running or approval step, sublabel for the tool call in mono. |
| icon | KitIcon | No | — | Lucide icon before the title. |
| tag | string | No | — | Small neutral mono tag after the title, e.g. a branch. |
| progress | object | No | — | { current, total } overrides the counter. Default: first unfinished step over the step count. A failed step with a later done step (its retry passed) counts as finished and is not the current step. |
| selectedStepId | string | No | — | Selected step id; its button shows the selected ring and aria-pressed. |
| onSelectStep | function | No | — | (id | null) => void. Makes each step a button; selecting the selected step again passes null. |
| variant | rail | list | No | rail | rail: steps on a connecting line with the status word under each label. list (RunDetail calls="all"): plain rows 8 inside and 4 apart, no line and no status line; the done time or the status word sits on the right, the counter reads "2 of 4", the selected row fills with a strong hairline, and below 25rem of trail width the tool name hides. |
| header | boolean | No | true | false hides the h3 title and the counter, for a trail under a heading of its own (CitedAnswer trail). The section is then named by aria-label={title}. |
What an agent intends to do, before or during a run.
Vertical sequence of now, next, and later for ordered multi-stage work.
Ordered wizard steps as numbered circles with a connecting line and a status word under each label: Done, Current, Upcoming, Error, or Optional.
An assistant reply with inline citation marks that preview their passage in a hover card, and sources folded into one pill with site icons.