Ballmac UI home

Agent Roster

New

Every agent on a team of agents as a card: name and role, a status in words (working, waiting, blocked, idle, offline), what it is doing, a load meter and when it was last active, with status counts that filter the grid.

v1.0.0Updated Oct 24, 2026Ships with a test
What changed

Agents

6 agents shown

Installation

$ pnpm dlx shadcn@latest add @ballmac/agent-roster

Usage

import { AgentRoster } from "@/components/ballmac/agent-roster"

The full example is in the Code tab above.

Examples

Select to open a run

Agents

3 agents shown

Pick an agent to open its run.

API reference

PropTypeDefault
agents*

The agents to show.

RosterAgent[]—
selected

The selected agent id. Controlled.

string | null—
defaultSelected

The selected agent id for uncontrolled use.

string | nullnull
onSelectedChange

Called when an agent is picked, or null when it is cleared.

(id: string | null) => void—
title

Heading.

string—

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Tab, Enter / SpaceFilters and cards are buttons; a card is a toggle (aria-pressed)
Screen readersStatus is written as a word beside its icon; the load is a labelled meter; the shown count is a polite live region
BlockedCalled out in words and an icon, with a red border only as reinforcement

Use with AI

agents is [{ id, name, role?, status: working | idle | waiting | blocked | offline, task?, load?: 0..100, lastActive? }]. selected / defaultSelected / onSelectedChange track the picked agent (a second click clears it). Status counts are filters; statuses with no agents are hidden. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Agent Roster (@ballmac/agent-roster) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • An overview of the agents in a multi-agent product and what each is doing
  • Picking an agent to open its run, logs or settings

Not for

  • One agent's steps; use trace
  • A table of users; use data-table
  • Who handed what to whom; use agent-lanes or handoff-card

Registry JSON: https://ui.ballmac.com/r/agent-roster.json

Credits

Free to use in personal and commercial projects.

Ballmac UI Pro

Need the whole screen, not one piece?

150 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.

Not ready? Try three Pro blocks free

Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.