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.
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
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
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.mdThe index of every part is at /llms.txt.