AI agent safety

Keep a human in the loop when an agent can cause real change.

Show the action, scope and consequence before an agent sends a message, changes data or uses a sensitive value.

Try the guard rails

A small safety layer for one real flow.

  • Agent Action Approve

    Presents an agent action for explicit human approval.

    View component
  • AI Paste Guard

    Warns before sensitive or accidental content is pasted into an AI tool.

    View component
  • Undo Toast

    Makes reversible automation easy to correct immediately.

    View component

Integration recipe

A starting point for your flow.

import { AgentActionApprove } from "@/components/ui/agent-action-approve"

<AgentActionApprove
  call={{ tool: "delete_file", args: { path: "/workspace/old-report.csv" }, intent: "Remove the outdated report", cwd: "/workspace" }}
  onDecision={(decision) => recordDecisionOnServer(proposedAction.id, decision)}
/>

Server boundary: The approval UI is not a security boundary. Bind approval to an authenticated human, the exact action payload, and a short-lived server-side approval record before execution.

One command for this flow

Install the agent-safety pack.

Start with the related components, then edit the copied source in your own product.

npx shadcn@latest add @bollard/agent-pack

Fallback: add the namespace by hand

Only if npx shadcn@latest add @bollard/… cannot resolve the namespace. Merge this into components.json, then run the same add command. The official shadcn registry index already lists @bollard.

{
  "registries": {
    "@bollard": "https://bollard-ui.vercel.app/r/{name}.json"
  }
}