Ballmac UI home

Guardrail Feed

New

A feed of what an agent's guardrails did: each check with its rule, action (blocked, redacted, flagged or allowed) and target, counts that double as filters, and rows that open to show why and the text that matched.

v1.0.0Updated Oct 24, 2026Ships with a test
What changed

Guardrail activity

6 checks shown

  • The refund was $340, which is over the limit an agent may issue alone. A person was asked to approve it.

    issue_refund({ amount: 340.00, order: "A-9914" })

Installation

$ pnpm dlx shadcn@latest add @ballmac/guardrail-feed

Usage

import { GuardrailFeed } from "@/components/ballmac/guardrail-feed"

The full example is in the Code tab above.

Examples

Nothing blocked

Checks on today's replies

2 checks shown

API reference

PropTypeDefault
events*

Checks in the order to show them, newest first.

GuardEvent[]—
title

Heading.

string—
defaultOpenId

The id of the row that is open at first.

string—

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Tab, Enter / SpaceFilters are toggle buttons; a row's button opens and closes its detail (aria-expanded)
Screen readersEvery action is written as a word with an icon; the count of shown checks is a polite live region
Disabled filtersAn action with no events is disabled instead of hidden, so the set of filters never moves

Use with AI

events is [{ id, time, rule, action: allowed | blocked | redacted | flagged, target, reason?, match? }] newest first. Counts by action are filter buttons; a row with reason or match opens to show them. defaultOpenId opens one row at first. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Guardrail Feed (@ballmac/guardrail-feed) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Showing people what an agent's safety rules caught
  • An audit view of policy checks on an assistant's output or tool use

Not for

  • A full audit log of a whole product; use the audit block
  • The live stream of an agent's steps; use trace or log-stream

Registry JSON: https://ui.ballmac.com/r/guardrail-feed.json

Credits

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.