Skip to content
GitHub (opens in a new tab)

RunLanes

One multi-agent run as swimlanes, with every handoff drawn between lanes.

stableOrganismcontracts/runlanes.json

Preview

RunLanes

One multi-agent run as swimlanes. Not AgentOverview's timeline. Not AgentTree.

Master

Select a card or the gate to open its popover. Escape closes it.

Run lanes

  1. AMYouOwner
    • Run start, Done
    • Run end, Planned
  2. PlannerSplits the work
  3. CoderWrites code
  4. TesterRuns the tests
  5. VercelDeploys

Usage

RunLanes lays a run out in step order: one lane per agent, a card per task, an elbow connector per handoff. Status is an icon plus a word, planned work is dashed, and the gate's Approve is outline so the page keeps its one solid primary.

Do's

  • show who handed what to whom across one whole run, in order
  • a run with a person in the loop: an approval gate before the last steps
  • open one step's detail, or approve or reject the gate, from the diagram

Don'ts

  • where every agent is right now, on a time axis — AgentOverview with view="timeline"
  • one agent's step log and tool calls — RunDetail
  • who started whom as a tree — AgentTree
  • where time and money went — TraceWaterfall
<RunLanes
  agents={agents}
  tasks={tasks}
  selectedTaskId={openId}
  onSelectTask={setOpenId}
  onApprove={approve}
  onReject={reject}
/>

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. Scrolls sideways when the run is wider than the space.

When to use

  • show who handed what to whom across one whole run, in order
  • a run with a person in the loop: an approval gate before the last steps
  • open one step's detail, or approve or reject the gate, from the diagram

When not to use

  • where every agent is right now, on a time axis — AgentOverview with view="timeline"
  • one agent's step log and tool calls — RunDetail
  • who started whom as a tree — AgentTree
  • where time and money went — TraceWaterfall

What an agent reads

import { RunLanes } from "agentic-ds-kit";
must
  • section aria-labelledby a visually hidden h2 (title)
  • the lanes are an ordered list; each lane names its agent and holds a list named "<agent> tasks", so the diagram reads as a list of tasks per agent with their states
  • each card and gate is a button named with its title, status word and duration ("Run the test suite, Failed, 41s"); the start and end marks are read as text
  • status is never colour alone: every card has a status icon (check, cross, spinner, hand, dashed ring), planned cards are dashed, and the word is in the name and the popover badge
  • the popover is a kit Popover: a named dialog that takes focus, keeps Tab inside, and closes on Escape back to its card
  • Approve and Reject are named by what they approve ("Approve deploy", "Reject deploy")
  • connectors are aria-hidden; From and To in the popover say the same in words
  • the board is a focusable region that scrolls sideways; lane headers stay in view
  • connectors draw in and the active dot moves, off under prefers-reduced-motion; the running icon stops under prefers-reduced-motion
defaults
  • loading false
  • title Run lanes
stops if
  • Do not rebuild the lanes by hand or make a local Gantt or flow diagram; use RunLanes
  • Do not show status by colour alone
  • Do not colour lanes per agent; agents are told apart by name, role and icon
  • Do not add a second solid primary; gate Approve is outline neutral
  • Do not use raw hex

From contracts/runlanes.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
agentsarrayYes—{ id, name, role?, icon?, person?: { src?, initials? } }[]. One lane each, top to bottom. role is the line under the name ("Splits the work"). person shows a kit Avatar (You) instead of the bare icon.
tasksarrayYes—{ id, agentId, title, kind?: "task" | "gate" | "start" | "end", status: "done" | "running" | "failed" | "pending" | "waiting", description?, duration?, next?: string[] }[]. next draws one connector per target; a task's column is one more than its latest incoming task. pending is planned work (dashed). A gate is a diamond with its title under it; title it "Approve <thing>" so Approve and Reject read "Approve <thing>".
selectedTaskIdstringNo—Controlled open task (its popover); null for none. Uncontrolled when left out.
onSelectTaskfunctionNo—(taskId | null) => void. A card or gate opens its popover; Escape, a click outside or the same card closes it.
onApprovefunctionNo—(taskId) => void. Approve in a waiting task's or gate's popover: outline neutral sm, last, after a ghost Reject. The page keeps its one solid primary.
onRejectfunctionNo—(taskId) => void. Reject in a waiting task's or gate's popover.
loadingbooleanNofalseLane headers and one card per lane as Skeletons; the section is aria-busy and says Loading run lanes once.
titlestringNoRun lanesNames the section: a visually hidden h2.
  • Block
    →

    Agent overview

    The first screen of an agent workspace: what needs you, every agent's status, and what changed since your last visit.

  • Block
    →

    Run detail

    One agent run on one screen: clock, cost, pending approval and every step, all following the step you pick.

  • Component
    →

    AgentTree

    An orchestrator and its sub-agents as a tree.

  • Component
    →

    TraceWaterfall

    Where a run's time and money went: a waterfall of model, tool and approval spans with totals and span detail; compact form for a header.