# Agent-first UI with Booki is here

> Booki is an open-source UI library a person and an agent use together: controls an agent operates by name, under your rules, with every step in the audit trail and the same rules on your server.

Source: https://booki.dev/announcing-agent-first-ui-with-booki

95%

fewer tool calls

97%

fewer tokens

6.2×

faster

12×

cheaper

Medians over 2 tasks and 4 models, five runs each, against the same screens without Booki, 21 Nov 2026. [How it was measured](#measured)

## Agents are already in your software

An agent on an ordinary screen reads it again after every click, guesses which unnamed box holds the value, and types into it. That is slow and expensive, and in software that runs a business it is wrong in ways that matter: a value in the wrong field, a rounding nobody chose, an approval recorded as whoever was signed in.

## One step, end to end

Each control tells the agent what it holds and which actions it takes right now. The agent calls one by name; your rule runs inside it; a step that needs a person waits for one. The audit trail records the agent as itself, and your server checks the same rules again, refusing an agent the decisions that are a person's: approving, signing, releasing.

## Defined once, rendered everywhere

Each control is defined once, with no framework, and every framework package is generated from that definition. One agent operates them all the same way.

Your screen

- @booki-aui/react
- @booki-aui/web
- @booki-aui/vue
- @booki-aui/svelte
- @booki-aui/solid

React controls (supported); custom elements for Angular and server-rendered pages, and parts for Vue, Svelte and Solid (both experimental).

@booki-aui/styles

Optional. Scoped to Booki's components, in a cascade layer if you like, with a shadcn token bridge.

generated from

@booki-aui/primitives

Every control's definition, with no framework: its state, its agent actions and the rules it enforces.

rules from

@booki-aui/core

Money in integer minor units, vouchers, validators, approvals, periods, VAT, audit sampling, roles and country profiles.

- NO
- US
- SE
- DK
- GB
- DE

The agent's side

- snapshot
- act
- query
- subscribe

The agent bridge reads the screen's controls and calls their actions by name. createBookiAgent adds your allow rule, the audit trail and undo by source; the agent cursor shows each step to the person.

@booki-aui/core/server

The same rules from @booki-aui/core, as the gate in your API: guard, advise, PERSON_ONLY, roles per engagement, actorRecord. The bridge is for speed and clarity; the server decides.

Framework packages are generated from @booki-aui/primitives, which takes its rules from @booki-aui/core. The agent bridge reads and acts on the screen. @booki-aui/core/server runs the same rules in your API.

## How it was measured

We recreated screens from two accounting systems, populated them with sample data and ran the same tasks on those screens and on Booki. Claude Opus, Sonnet and Haiku 5.5 and DeepSeek V4.1 Flash each ran every task five times per screen. We checked the result after each run and calculated cost at list prices.

## Start with one screen

Your API, database, sign-in and other screens stay as they are. Swap one screen's inputs for Booki controls, run its write route through the server guard, and measure before and after.

Booki implements a draft specification any product can adopt: what a screen gives an agent, what stays with a person, and how every step is recorded and checked again. [The Agent Contract](https://github.com/Walgermo/booki/blob/main/spec/agent-contract.md)

Open source, MIT

## Put one screen in front of an agent.

Copy the setup prompt to try Booki on a screen in your app.
