Multi-agent TimelinePRO
Parallel lanes for sub-agents, like a tiny live Gantt: bars grow in real time, handoff arrows draw between lanes and a now-line sweeps across.
Code
2 files · 414 lines of TypeScriptPRO
Multi-agent Timeline is part of Pro
Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.
Motion notes
- Bars retarget a layout spring on every tick, so live growth is continuous even when `now` updates only ten times a second.
- The time window widens in whole steps (to 30s, then 40s…) rather than on every tick. Rescales are rare, and ticks, bars and arrows glide to their new positions together.
- A handoff arrow draws itself with pathLength once the now-line passes it, and its head fades in last, so the direction reads after the connection.
- Only the running bar shimmers. Blocked and failed bars use their status tint, and finished work drops to a quiet fill. Status changes are announced; ticks are not. With reduced motion, everything snaps into place.
Usage
Example
<AgentTimeline
now={elapsed}
lanes={[
{ id: "research", name: "Researcher", status: "done", segments: [{ start: 0, end: 8, label: "Read docs" }] },
{ id: "coder", name: "Coder", status: "running", segments: [{ start: 8, label: "Implement" }] },
]}
handoffs={[{ from: "research", to: "coder", at: 8 }]}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| lanes | TimelineLane[] | — | { id, name, status: "queued" | "running" | "done" | "blocked" | "error", segments: { start, end?, label? }[], icon? }. Leave end out on the segment still in progress. |
| handoffs | TimelineHandoff[] | [] | { from, to, at, label? }: lane ids and the second the work changed hands. |
| now | number | — | Seconds since the run started. Drive it from a clock while running. |
| duration | number | 20 | Smallest visible window, in seconds. It widens in steps of 10s as time runs past it. |
| title | string | "Sub-agents" | Heading, also the group's accessible name. |
| className | string | — | Classes for the card. |