Ballmac UI home

Agent 17: prompt evaluation

An evaluation lab for a prompt change: the pass rate against the baseline, which cases got worse or were fixed, what the model said against what was expected, and the exact words that changed in the prompt.

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

Usage

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

import { Agent17 } from "@/components/ballmac/blocks/agent-17/agent-17"

export default function Agent17Demo() {
  return <Agent17 />
}

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

    state="loading"
  • No cases yet

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

    state="empty"
  • Could not load

    An alert saying nothing was run, with Try again (onRetry). A re-run that fails says why.

    state="error"

Dependencies

npm
None

Use with AI

Prompt evaluation. <Agent17 title description subject cases={EvalCase[]} history={number[]} promptBefore promptAfter onRerun={(ids) => Promise} />. Shows the scorecard (pass rate, change from the baseline, regressions, fixes, trend, filters) and a word-level diff of the prompt. A failed re-run shows its reason. With the shadcn MCP server set up (guide), ask your agent:

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

Use it for

  • Checking a prompt or model change before it ships
  • A review page for an AI feature's quality

Not for

  • Live monitoring; use a dashboard
  • Comparing two models on one input; use model-compare

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