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
- See every agent now
- Spot overlapping tasks
- Approve from the timeline
- Trace a hand-off
- Review a finished run
Examples
Installation
npx knowns-ui@latest add agent-lanesPaste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install Agent lanes from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/agent-lanes
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add agent-lanes
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- lib/knowns/icons/actor-icon.tsx
- lib/knowns/icons/model-icons.tsx
- lib/knowns/icons/tool-icons.tsx
- lib/knowns/icons/model-icons.data.ts
- lib/knowns/icons/tool-icons.data.ts
- lib/knowns/icons/LICENSES.md
- components/ui/knowns/spinner.tsx
- components/ui/knowns/button.tsx
- components/ui/knowns/agent-lanes/agent-lanes.tsx
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0, class-variance-authority@^0.7.1.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/agent-lanes, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "agent-lanes" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.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- Default
600000 - 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.
| Prop | Type | Default | Description |
|---|---|---|---|
| run | AgentRun | - | Read actors, tasks, spans and approvals from a run; decisions are emitted back to it. |
| actors / tasks / spans / approvals | arrays | [] | Plain data instead of a run. |
| window | number | 600000 | 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 | "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
- 01Draws one lane per agent with one block per task, and packs overlapping tasks of the same agent onto separate rows.
- 02Slides the whole time strip left on every frame, so running blocks grow into now without re-rendering React.
- 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.
- 04Draws a dotted line from the end of one task to the start of the next when a task hands work to another agent.
- 05Opens a popover from a block with its status, duration and tools touched, and Approve and Deny when the task is waiting on you.
- 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
| State | What moves | Timing |
|---|---|---|
| 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" }).