Ballmac UI home

Agent 9: autonomy and limits

How much an AI agent may do alone: a plain-words autonomy level, spend caps per run and per day, a step limit and the tools it may use, with a warning for risky mixes and a save bar that holds edits until saved.

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-9

Usage

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

import { Agent9 } from "@/components/ballmac/blocks/agent-9/agent-9"

export default function Agent9Demo() {
  return <Agent9 />
}

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 cards under the real heading, announced as loading.

    state="loading"
  • No tools connected

    Says no tools are connected; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was changed, with Try again (onRetry). A save that fails keeps every edit and says why.

    state="error"

Dependencies

Use with AI

Agent autonomy and limits. <Agent9 config={{ autonomy: 'suggest'|'ask'|'auto', perRun, perDay, tools: ['id'], maxSteps }} tools={[{ id, name, description, writes? }]} currency='USD' onSave={(config) => Promise} />. Edits are held until Save; Discard puts them back. A run limit above the daily limit, or a bad step count, blocks saving and says why. Acting on its own with tools that write shows a plain-words warning. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Agent 9: autonomy and limits (@ballmac/agent-9) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Where an owner decides how much an agent may do without asking
  • Spend caps, step limits and tool permissions in one place

Not for

  • Choosing the model and prompt; use agent-7
  • Approving one action; use agent-2

Registry JSON: https://ui.ballmac.com/r/agent-9.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.