AgentCheckpoints
A run timeline of checkpoints: rewind to one and start a new attempt; the replaced attempt stays faded under it.
The same task run by several models or approaches, one row each: watch them race, use the best one, and the others fade and fold in place into one line you can open to pick again.
Several models or approaches on one task, one row each. Keep the best one.
Each row shows the live step while it runs, then the result in the same place, with status, progress as text, cost and time. Use this one marks the winner; the other rows fade and fold where they stand into one line you can open to pick again, and Undo takes the pick back.
Reading the report
Running…0%
Reading the report
Running…0%
Reading the report
Running…0%
Pass every attempt with its status (running, done or failed); picked is not a status, it comes from picked or defaultPicked. Only done attempts offer Use this one, an outline neutral button, so the page keeps its one solid primary. Progress shows as text beside Running; pass the live step as summary while it runs and the result once it settles. Only live changes move: Running shimmers, a finished check draws, the first to finish gets a quiet First badge (Picked replaces it on the winner), and a pick folds the others. One polite live region says only finished, failed and picked. Translate the words with KitLabelsProvider (useThisOne, attemptPicked, attemptFirst, otherAttempts, discard, undo).
import { ParallelAttempts } from "agentic-ds-kit";From contracts/parallelattempts.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 | — | The shared task, e.g. "Summarise the Q3 churn report". The h3 that names the section. |
| icon | KitIcon | No | — | Bare Lucide icon before the title, 8 (space.2) from it. No tile. |
| attempts | array | Yes | — | { id, label, model?, status: "running" | "done" | "failed", progress?, summary?, cost?, duration? }[] in display order, one row each. label is the model or approach; model shows in mono beside it. progress (0–100) shows as text ("62%") beside Running, never a bar. summary is one line: while running pass the live step ("Reading the report"), once settled the result or the error; it changes in place (one line while running, up to two after). cost and duration are caller-formatted strings, in mono after the status on the line under the summary. Picked is not a status: it comes from picked / defaultPicked. |
| picked | string | null | No | — | Controlled id of the winner; null for none. Only a done attempt counts; any other id shows no pick. |
| defaultPicked | string | null | No | — | Uncontrolled first pick. Default none. |
| onPick | function | Yes | — | (id) when "Use this one" (KitLabels useThisOne, outline neutral sm, the main action) is pressed on a done attempt; (null) on Undo (KitLabels undo, ghost neutral sm on the winner). After a pick the winner keeps its row and shows a Picked badge (KitLabels attemptPicked); the other rows fade to opacity.400 and fold where they stand, and a ghost "N other attempts" line (KitLabels otherAttempts, KitLabels showLess when open) opens them again, each keeping "Use this one" to pick again. |
| onDiscard | function | No | — | (id) => void. Discard (KitLabels discard, ghost neutral sm) on done and failed attempts that are not the winner. The caller removes the attempt. Left out, no Discard shows. |
A run timeline of checkpoints: rewind to one and start a new attempt; the replaced attempt stays faded under it.
One multi-agent run as swimlanes: one lane per agent or person, task cards in step columns (done, running, failed, waiting, planned), elbow connectors for every handoff, an approval gate, start and end marks, and a kit Popover per card with badges, duration, agent, description and From / To.
A compact A/B or A/B/n experiment: status in words, the metric and traffic split under each variant's value ("paid within 7 days · 50%"), a confidence note in plain words and one decision (Ship winner, Stop, Extend, Start).
Choose which model an agent or chat uses: grouped by vendor, with context window and cost tier, recommended models, and disabled models that keep their reason.