Skip to content
caliper ui pro docs

Agent swarm

Many agents, one picture. Each agent is a node whose ring fills as it works, work moves along the links, and a link settles once the agent after it has finished. An agent that needs a decision pulses and the island at the top opens into the question. Choose any agent and its detail opens from where it sits.

Pro

Ship HAL-482

Show the region on every order · seven agents

Live0 working · 0 of 7 done
ConductorWaitingPlannerWaitingAPIWaitingMigrationWaitingDocsWaitingTestsWaitingReviewerWaiting
State

When to use

  • Orchestrators and multi-agent products where people need to see who is doing what.
  • Long agent runs that sometimes stop for a human decision.

When not to use

  • A single agent run; use the agent run screen.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/agent-swarm

Adds its 13 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

AgentSwarm

10 props
PropTypeDefaultDescription
titlestring"Agents"
descriptionstring—
agents *readonly SwarmAgent[]—
links *readonly SwarmLink[]—
approvalSwarmApproval | null—A decision an agent is waiting on.
events *readonly SwarmEvent[]—
actionsReactNode—
onApprove((agentId: string) => void)—
onDeny((agentId: string) => void)—
classNamestring—

Keyboard

Enter
Activates the focused control.
Space
Activates the focused control.

Accessibility

It exposes status, region, group and button semantics, with aria-label, aria-hidden and aria-pressed kept in step with state. Changes that matter are announced through a live region.

Motion

  • State changes animate with the library's shared durations and curves, so its timing matches every other part.
  • Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/agent-swarm.md

The index of every part is at /llms.txt.

More in Developer tools