Notes ·
Not every agent has to live in a chat
When a task already has an interface, an agent can use the same controls you do instead of drawing new ones in a chat. Comanda is a demo. Nothing here shipped to a client.
I type “Two burgers, one without onions, and large fries” into the field under a restaurant order form. A red cursor adds a burger, checks Onions under Without, adds a second burger and the fries, and marks the fries Large. No card shows up in a bubble. The form that was already on the page fills itself in, and a kitchen ticket prints each change.
That’s Comanda, a public demo I built with UI SDK. A real model fills the order with the same checkboxes and radios a person uses, without touching the page. The browser sends the model the controls and the order, gets steps back, and runs them.
I picked a restaurant order because it’s the domain I know from Cravel, a company I co-founded. Nothing here is in Cravel. I built it to see where this pattern holds up and where it gets in the way.
Three places an agent’s work can land
The first place is a new interface inside the chat. Vercel’s AI SDK defines generative UI as “the process of connecting the results of a tool call to a React component.” MCP Apps, the first official extension to MCP, lets a tool declare a UI resource that the host draws in an isolated iframe inside the conversation. My last note, The model can only play the instruments you gave it, was about what a model can draw there. This one is about a model that draws nothing.
The second place is the screen, read as pixels. With Claude’s computer use, the model looks at screenshots and asks for clicks at coordinates, and the app carries them out. Google’s computer use model runs the same loop. The upside is that these agents work on any site without the site’s help.
The third place is the interface that already exists, reached through its controls rather than by pixels. WebMCP, a draft from a W3C Community Group with editors from Microsoft and Google, points the same way, with pages that declare their own tools. UI SDK’s bridge gives the model a snapshot of the components and a way to act on them, like setting “Size, Fries 1” to Large. Each change goes through the same callback as the person’s clicks, marked as the agent’s, and the app can cancel it.
Generated UI is the right answer when there’s no interface yet, or the task is too open for a form. A restaurant order is the opposite case. The form exists, and its rules matter.
The form stays
In Comanda, the chat is one more way to use the form. The person can keep clicking while the agent works, and the ticket records who made each change.
Questions are where this pays off. When the agent asks how each burger is cooked, the person can answer by hand in the form, and the question resolves itself without calling the model. It reads straight from the state of the order. While something is missing it shows progress, “Burger 1 done · Burger 2 still needs doneness,” and then “All set. Nothing else is missing.”
While the agent waits for a yes on payment, the page goes inert except for the popover and Stop. Undo on the ticket also turns off while the agent runs.
You see it before it happens, and you can take it back
UI SDK’s docs say nothing about a cursor. They do have a hook, allow, that the bridge waits on before every step. I used that wait to move a cursor to the control first and let the change through only once it got there. You watch the agent reach for a control before it touches it. With Reduce Motion on, the cursor appears at each control without traveling.
A chip on the control names the change, like “Size → Large” or “No → Yes.”
The ticket handles undo. It logs every change from both the person and the agent with the old and new value, plus the steps that were blocked, skipped or failed. You can undo any line, or use “Undo run” to reverse what the agent did in that run while skipping whatever the person touched after it.

When you and the agent disagree, you win
If the person changes a control during a run, the form locks that control to the agent until the run ends. The app skips the agent’s step, the control shows “Kept yours,” and the model gets a note: “Skipped ‘<label>’: the person set it by hand to <value>. Keep their choice.”
The lock lasts one run. After that, the guard drops to a line in the prompt telling the model to “never ask about them again or change them back unless the guest asks.”
Payment is where this matters most. The agent can get as far as Pay, and there a popover asks the person to confirm the charge. The agent can’t see the Yes and No buttons, so it can’t approve its own payment. If the total changes before the yes, nothing is charged.

The rules live in one place
The components don’t hold the rules; the reducer behind the form does. Every change goes through it, whether from a click or from the agent, and it cancels anything that breaks the menu rules: sold-out items, a limit per group, and six lines at most. The model also gets the rules in plain text so it doesn’t try things blind, though only the reducer enforces them.
The beta proved the point for me. Calling a group’s setValue could check a disabled checkbox, and the SDK reported success with “Ketchup (sold out)” checked. The rule held anyway because it lived in the reducer rather than the disabled attribute. A rule that lives in an attribute is a suggestion.
Offers work the same way. The app builds up to two from the menu’s real prices, like a milkshake “for after, for $6.00?”, and tests each against the same reducer on a copy of the order. The model only reads them word for word, so prices never come from the model.
Sharing the controls has a cost
An agent that uses the same controls as a person depends on how those controls are named. A label written for a person doesn’t always match what the model asks for. In Comanda, an option labeled “Large+$1.50” caused a request for “Large” to fail. Because steps apply one by one with no rollback, earlier changes stay on the form while later steps never run, and the model can end up asking about something the person already said.
What the model claims it did isn’t reliable either. Once, it said it had added a milkshake without running any action. I had to put the guard in the app. The first call after each message must use a tool, and the app writes its own note under the reply, like “Nothing changed on the form.”
The method is also slower than tapping. In my benchmark, the model Comanda runs in production took a median of 9.8 seconds for a whole order, longer than a person takes to tap through a small one. UI SDK is also still in beta. Its APIs may change, and the snapshot doesn’t tell the model which items are disabled.
Closing
I wouldn’t build this for trivial forms, where tapping beats typing a sentence and waiting, or for open tasks with no interface yet, where generating one fits better. It fits long forms with real rules, where a person can say what they want in one sentence, see the result on the form, and fix it.
When the form already exists, the best thing an agent can draw is nothing.
How it was built
Comanda runs on Next.js with UI SDK 0.1.0-beta.8 and gemini-2.5-flash through Vercel AI Gateway in production. I directed the build and wrote none of the code. That’s 141 commits between November 17 and 19, every one co-written by Claude: Opus 5.5 on 131 of them, Fable 5.2 on the other 10.