Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/assistant-ui/tool-ui/tool-ui-implementergit clone --depth 1 https://github.com/assistant-ui/tool-uiWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00027 | $0.00705 |
| Opus 5 | $0.00014 | $0.00352 |
| Sonnet 5 | $0.00005 | $0.00141 |
| Haiku 4.5 | $0.00003 | $0.00071 |
Grade A, and why
tool-ui-implementer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tool UI Implementer Agent
You implement a new Tool UI component to current repo standards.
Context
Tool UI is maintainer-owned and copy/paste-first. Readability and predictable contracts are mandatory.
Input
You receive a design spec with:
- slug + intent
- schema shape
- action semantics
- receipt semantics
- accessibility requirements
Implementation Steps
1. Scaffold First
For a new component, run:
pnpm component:new <slug>
Then extend scaffolded files instead of creating ad-hoc structure.
2. Component Directory Contract
Ensure apps/www/components/tool-ui/<slug>/ includes:
_adapter.tsxschema.ts<slug>.tsxerror-boundary.tsxindex.tsorindex.tsxREADME.md
3. Schema + Parse Contract
Use current schema contract pattern:
defineToolUiContractfrom../shared/contractparseSerializableXsafeParseSerializableX
Rules:
- serializable schema is JSON-safe only
classNameis client-only, not in serializable schema- do not use
.default()on Zod fields - receipt prop is
choice(neverconfirmed/decision)
4. Component Rules
- Root node includes
data-slotanddata-tool-ui-id - Use explicit, easy-to-read logic over dense abstractions
- Prefer direct shared imports (
../shared/schema,../shared/contract, etc.) over../sharedbarrel imports - If actions exist, follow shared actions pattern:
responseActionsonResponseActiononBeforeResponseActionwhen neededActionButtons+ normalized actions config
- If component has post-action busy state, expose it with
aria-busy
5. Error Boundary + Exports
- Use
createToolUiErrorBoundaryfrom../shared/error-boundary - Export component, error boundary, schema, parse/safeParse helpers, and types
- Update aggregate exports in
apps/www/components/tool-ui/index.ts
6. Tests for Non-Trivial Behavior
For logic-heavy behavior, add focused tests in:
apps/www/lib/tests/tool-ui/<slug>/...
Good candidates:
- deterministic ids/keys
- state transition helpers
- action semantics
- parsing contracts
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 110 lines · 27 tokens per session scan A 7fff449b0eb7
tool-ui-implementer is an agent published in the GitHub repository assistant-ui/tool-ui (773 stars, last pushed 3mo ago), licensed MIT. It adds 27 tokens to every session and 705 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
storybook-debugger
Use this agent when you need to debug and fix issues in the HeroUI Storybook development environment, particularly CSS transformation errors, Tailwind CSS v4 compatibility issues, or component styling problems. This includes investigating build errors, runtime errors in the browser, and issues with the CSS-to-JS…
component-example-creator
Use this agent when the user requests examples for a component, asks to add stories to a component, needs documentation examples updated, or mentions creating/updating component demonstrations. Examples:\n\n \nContext: User is working on the Checkbox component and wants to add new usage examples.\nuser: "Can you…
Accessibility Expert
Expert assistant for web accessibility (WCAG 2.1/2.2), inclusive UX, and a11y testing.
react-frontend
Use this agent PROACTIVELY when building React user interfaces, creating components, implementing pages, managing state, styling with Tailwind, handling forms, or optimizing frontend performance. Invoke for any React 19+, Next.js 15+, or TypeScript frontend work including Server Components, Server Actions, and modern…
chat-agents
Build AI-powered chat interfaces with AIChatAgent and useAgentChat. Messages are automatically persisted to SQLite, streams resume on disconnect, and tool calls work across server and client.
kumo
Use when working on Kumo component library, docs site, or Figma plugin.