affectUI › Components › Agents

Agent Board

Every agent you run, the projects they work on and what comes out of it on one board – a line for who worked where, and sign-offs waiting for you in red.

Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/agent-board.json · Import from @/components/ui/agent-board

When to use

  • Showing every agent you run – Claude Code, Codex, your own bots – and which projects each of them is working on right now
  • A live overview for a team with many agents: who touched which repo, inbox or board, and what came out of it
  • Making sign-offs hard to miss: a project that waits for you turns red with a Review button

When not to use

  • Who started whom inside one run – use Agent Tree
  • A list of background tasks to approve, retry or open one by one – use Agent Inbox
  • One run that forks into sub-agents and joins back over time – use Agent Branches

Usage

import { AgentBoard, type BoardAgent, type BoardProject, type BoardOutput, type BoardUpdate } from "@/components/ui/agent-board";

const agents: BoardAgent[] = [
  { id: "claude", name: "Claude Code", logo: <ClaudeLogo />, tone: "orange" },
  { id: "codex", name: "Codex", logo: <OpenAILogo />, tone: "blue" },
];
const projects: BoardProject[] = [
  { id: "billing", name: "billing-api", source: { name: "GitHub", logo: <GitHubLogo /> } },
  { id: "support", name: "Support inbox", source: { name: "Intercom", logo: <IntercomLogo /> } },
];
const outputs: BoardOutput[] = [
  { id: "prs", name: "Pull requests", icon: <FolderLogo /> },
  { id: "replies", name: "Replies", icon: <FolderLogo /> },
];
const updates: BoardUpdate[] = [
  { id: "u1", agent: "codex", project: "billing", text: "Opened PR #598 – retry failed webhooks", output: "prs", ref: "#598" },
  { id: "u2", agent: "claude", project: "support", text: "Answered 14 billing tickets", output: "replies", ref: "#4812" },
];

export function Board() {
  return <AgentBoard agents={agents} projects={projects} outputs={outputs} updates={updates} />;
}

Props

NameTypeDefaultDescription
agentsBoardAgent[]{ id, name, logo?, tone?, status? } – the top row; without a logo an agent gets its pixel mark, tone colours its lines and sparks
projectsBoardProject[]{ id, name, source?, needs? } – the middle row; needs { agent?, text } turns it red with Needs you and Review
outputsBoardOutput[]{ id, name, icon? } – the bottom row, what the work turns into; left out, the board has two rows
updatesBoardUpdate[]{ id, agent, project, text, output?, ref? } – oldest first; they draw the lines, fill the counts and the activity bars
onReview(project) => voidA click on Review on a project that waits for you
titlestringA name for screen readers – "Agent board" by default
classNamestringAn extra class on the root

Accessibility

  • The rows are lists named Agents, Projects and Outputs; every card is reachable with Tab
  • Each card is named with what matters – "Claude Code: working, 4 updates", "billing-api, needs you: Sign off the Stripe v2 migration", "Pull requests: 3, latest #603"
  • Review is a real button inside its project
  • Each new update is announced – "Codex: Opened PR #604 in Design system"
  • The lines, sparks and activity bars are decoration and hidden from screen readers
  • A focus ring shows only for the keyboard

Responsive

  • Fills its container's width, one column per card in each row
  • Below 640px the lines step aside: the agents and outputs wrap two to a row, the projects stack
  • Long names and updates end in … and show in full on hover
  • Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"

Requirements

  • React 19

Related

  • Agent Tree – Who started whom – an orchestrator and its sub-agents as a live tree, with status, cost and time on every card, costs rolling up each branch, and branches that fold to one line
  • Agent Inbox – All your background agent tasks in one calm list – live status tags, filter tabs, and rows that unfold to the last steps with Approve, Reject, Retry or Open
  • Agent Branches – One agent run that forks into sub-agents and joins back, drawn like a git graph – lanes curve out in their own colour, work runs in parallel, the lead waits at the join
  • Agent Metro Map – A multi-agent run drawn as a metro map – every agent a line, every step a station, lines meeting at an interchange where work is handed over, a train riding each one