Ballmac UI home

Agent 10: console with handoff

An agent console: the conversation with each tool call as a step you can open to see what was asked and what came back, Stop while it works, Enter to send, and a clear Take over and Hand back so a person is never mistaken for the agent.

State

The normal view. Pick a state to see what the block shows while it loads, is empty or fails.

Open in v0 (opens in a new tab)

Installation

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

Usage

Example: agent-10-demo.tsx
"use client"

import { Agent10 } from "@/components/ballmac/blocks/agent-10/agent-10"

export default function Agent10Demo() {
  return <Agent10 />
}

States

Pass state and the block does the rest: skeletons that match its layout, a clear empty message, an error you can retry, and announcements for screen readers.

  • Loading

    Skeleton bubbles under the real heading, announced as loading.

    state="loading"
  • No messages yet

    Says there are no messages yet; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was sent, with Try again (onRetry). A message that fails to send stays in the box and says why.

    state="error"

Dependencies

Use with AI

Agent console. <Agent10 messages={[{ id, role: 'user'|'agent'|'human', text, at?, name? (human), tools?: [{ name, input, output?, status: 'running'|'done'|'failed' }] }]} running humanActive onSend={(text) => Promise} onStop={() => void} onHandoff={(takeOver: boolean) => Promise} />. A person's reply is labelled '(a person)' and framed differently. While a person is active the agent is shown as paused. With the shadcn MCP server set up (guide), ask your agent:

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

Use it for

  • Operating or supervising a support or task agent
  • Any transcript where tool calls and a human takeover matter

Not for

  • A public chat widget; use ai-chat-1
  • Reviewing finished runs; use agent-3

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

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.