Ballmac UI home

Agent 7: agent builder

An agent builder: instructions and model, each tool set to off, ask first or allowed, the knowledge it may read, guardrails, and a live preview that changes with every setting. Publishing shows submitting, success and error.

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

Usage

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

import { Agent7 } from "@/components/ballmac/blocks/agent-7/agent-7"

export default function Agent7Demo() {
  return <Agent7 onPublish={async () => {}} onAddSource={() => {}} onRemoveSource={() => {}} />
}

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

    A skeleton of the settings and the preview under the real header.

    state="loading"
  • Publishing

    Publish shows a spinner and "Publishing…" and is disabled; the status reads Publishing…

    state="submitting"
  • Published

    The button and status say Published until something changes again.

    state="success"
  • Could not publish

    An alert says the changes are kept and why it failed (errorState sets the copy or throw an Error from onPublish).

    state="error"

Quality scorecard

8/8

Every applicable check passes

Measured in Chromium 153.0.8010.12 on October 19, 2026, on version 1.0.0, across 6 examples.

How we measure
  • Passed: Accessibility scan

    No serious or critical issues in light and dark, on a phone and a desktop (axe-core 4.13.0, WCAG 2.1 AA and best-practice rules).

  • Passed: Small screens

    No sideways scrolling at 360, 390 or 1280 px wide.

  • Passed: Reduced motion

    Every endless animation stops when the visitor asks for less motion.

  • Passed: Right to left

    Mirrors correctly in Arabic, Hebrew, Persian and Urdu layouts (0% of elements off the mirror, limit 15%).

  • Passed: Clean console

    No console errors or React hydration errors while loading.

  • Passed: Keyboard

    94 tab stops, each showing a visible change when it takes focus. 3 documented keys.

  • Passed: Loading, empty and error

    Ships loading, submitting, success, error states, each with an example.

  • Passed: Automated tests

    Covered by agent-7.test.tsx.

  • For information: Footprint

    7.3 KB of source (gzip) in 1 file. Installs lucide-react.

Automated checks find a subset of problems and do not replace testing with a screen reader and a keyboard in your own app. What they miss.

Dependencies

Use with AI

An agent configuration page. <Agent7 tools={[{ id, name, description, icon, writes }]} sources={[{ id, name, kind, status: 'ready' | 'syncing' | 'failed', synced }]} models={ModelOption[]} defaultConfig={{ name, instructions, model, tools: { [id]: 'off' | 'ask' | 'allow' }, sources: [ids], askBeforeExternal, maxSteps }} onChange onPublish={async (config) => …} onAddSource onRemoveSource />. The preview shows the first enabled tool: behind an approval card when set to Ask first, as a finished tool call when Allowed. With the shadcn MCP server set up (guide), ask your agent:

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

Use it for

  • Letting people create or edit an AI agent in a no-code way
  • An internal admin page for configuring an agent's tools, knowledge and limits

Not for

  • Chatting with an agent (use ai-chat-1)
  • Approving an agent's actions as it works (use agent-1 or agent-2)
  • Choosing a model only (use model-picker)

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