Review what your agent changed and approve what it may do: multi-file diff review, tool approvals with rules, tool call timeline and run telemetry, for AI SDK and AG-UI agents.
Renders an assistant UIMessage: markdown, reasoning, grouped tool calls, inline approvals and sources.
Run state pill (thinking, working, waiting for approval, done, stopped, error) announced through an aria-live region.
useAgUiAgent: renders any AG-UI agent (LangGraph, CrewAI, Mastra, Pydantic AI) with these components, interrupts as approvals.
Approve or deny a tool call once, for the session or always, by tool and argument pattern: an args preview, editable arguments, risk levels, a denial reason, a key per choice, approve all pending.
signoffTools for MessagePrimitive.Parts: DiffReview for assistant-ui tool calls that propose files, its result sent back with addResult, and the approval card with approval rules for calls at an approval gate.
Review agent edits across files: accept or reject hunks or whole files, comment on lines, mark files viewed, from the keyboard; returns the applied files, rejected hunks and comments.
Streaming-safe GFM markdown with linked [n] citations and a typing caret.
Collapsible model reasoning that opens while streaming and summarizes its duration.
Tokens, estimated cost and latency (TTFT, total) for an agent run, compact or expanded.
Citation chips and cards for AI SDK source-url and source-document parts.
Vertical timeline of AI SDK tool calls with live states, durations, a waterfall and expandable input/output.
Approval rules without markup: once, session or always, by tool and argument glob, deny winning; pluggable storage, an audit trail, and the same rules as AI SDK 7 toolApproval.
DiffReview without its markup: parsing (in a worker for large files), decisions, line comments, viewed files, context and the keyboard, for your own design system.