shadcn's agent-first UI SDK: ~50% fewer tool calls, ~75% fewer tokens, ~70% cheaper

shadcn · x · 2026-11-18

shadcn explains how the in-progress UI SDK (@uisdk) is built agent-first: first-class WebMCP support means UI built with the SDK ships with its own tools, so agents read component state and call actions directly—no screenshots, no click-simulating. Primitives via definePrimitive bundle tested behaviors (focus, keyboard nav, popups, drag-and-drop) that agents compose into components, renderable across React/Vue/Svelte/Solid/Web Components. A createAgent() bridge lets agents snapshot and operate live pages, with registerTools for confirmation gates. Benchmark: 50% fewer tool calls, 75% fewer tokens, 70% cheaper than existing libraries, reproducible via the published benchmark.

Related event: shadcn Details Agent-First UI SDK, Cutting Tool Calls 50% and Tokens 75%(2 posts)→

Original post →

More from coding & agent

coding & agent channel →