Skip to content
caliper ui docs

Pro

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
pnpm dlx shadcn@latest add @caliper/agent-swarm

Ship HAL-482

Show the region on every order · seven agents

Live0 working · 0 of 7 done
ConductorWaitingPlannerWaitingAPIWaitingMigrationWaitingDocsWaitingTestsWaitingReviewerWaiting
State
Installs components/ui/agent-swarm.tsxDepends on @radix-ui/react-slot, lucide-reactMotion honours reduced motion

When to use

Use it for

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

Skip it when

  • 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.

Usage

Import it from your copy of the source. The example behind the preview comes with the source.

example.tsx
import { AgentSwarm } from "@/components/ui/agent-swarm"

The worked example comes with Pro

The 99-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

AgentSwarm

component
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—

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.

KeyBehaviour
EnterActivates the focused control.
SpaceActivates the focused control.

Motion

It checks prefers-reduced-motion itself and settles immediately instead of travelling. Every state is still reachable.

All Developer tools examples