Skip to content

Agent Lanes

Where every agent is right now: a lane per agent, one block per task growing into “now”, dotted hand-offs between agents, and approvals right on the block. Open a block to see what it did, or to approve it.

On this page
Used for
  • See every agent now
  • Spot overlapping tasks
  • Approve from the timeline
  • Trace a hand-off
  • Review a finished run

Examples

Window
Agents

Installation

npx knowns-ui@latest add agent-lanes
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Usage

Tool calls made by an agent while a task runs show up as the logos on its block. A task linked to a pending approval (approval.request with task) turns into “Needs you” and can be approved from its popover.

Props

run
AgentRun
Read actors, tasks, spans and approvals from a run; decisions are emitted back to it.
actors / tasks / spans / approvals
arrays
Default[]
Plain data instead of a run.
window
number
Default600000
Visible time range in ms, ending now (10 minutes).
selectedTaskId
string | null
Highlights a block.
onTaskSelect
(task) => void
Called when a block is opened.
onDecision
(approval, decision) => void
Called when a waiting task is approved or denied.
header
string | false
Default"Agents"
Header title, or false to hide it.

Motion and accessibility

Blocks slide with a GPU transform at the display's frame rate; React only re-renders when data changes. Time stands still while you hover or a popover is open, so blocks are easy to click.

Every block is a button naming agent, task, state and time; Enter opens its popover, Escape closes it and returns focus. The running / needs-you counts sit in a polite live region.

What it handles

  1. 01Draws one lane per agent with one block per task, and packs overlapping tasks of the same agent onto separate rows.
  2. 02Slides the whole time strip left on every frame, so running blocks grow into now without re-rendering React.
  3. 03Shows the last 10 minutes by default and takes any range in ms through the window prop, with the axis ticks relabelled in minutes or seconds.
  4. 04Draws a dotted line from the end of one task to the start of the next when a task hands work to another agent.
  5. 05Opens a popover from a block with its status, duration and tools touched, and Approve and Deny when the task is waiting on you.
  6. 06Holds time still while the pointer or focus is inside the lanes or a popover is open, so a block does not move under your cursor.

States

First render
Nothing. It paints as it is
none
Time passes
Blocks slide left and running blocks grow into now
none
Block hover
Brightness and shadow change
120ms, ease out
Open a block
A popover shows its status and, if waiting, the decision buttons
none
Approve or Deny
The block turns running or failed at once
none

Works with

When to use

When to use

  • Following several agents working in parallel, one lane each, as their tasks grow toward now.
  • Spotting where agents wait on each other: hand-offs and approvals show up as blocks in the lane.

When not to use

  • Debugging one slow or failing call with its input and output: use Trace Waterfall.
  • Moving work between stages like a task board: use Agent Board.
  • A single agent: a lane chart with one row says little: use Agent Monitor.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Agent Lanes to my app and wire it to my own data.
  • I need following several agents working in parallel, one lane each, as their tasks grow toward now. Set that up with the Knowns UI Agent Lanes.
  • Which Agent Lanes props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "agent-lanes" }) and search_docs({ query: "agent lanes" }).

Need help?

Stuck on Agent Lanes, or found something off? We read every message.