Back to Writing
Growth status: Evergreen EvergreenUpdated: Nov 29, 20265 min read

What it took to give Yada computer use

What screenshots, approval prompts, and a stubborn Enter key taught us about letting an agent operate a computer.

A browser task failed because the model typed “Enter” and the Linux desktop expected the key to be called “Return.” The command appeared to succeed. The model saw the search box again and typed the same query, over and over, until the run hit its limit.

We were building computer use for Yada, the agent harness behind our terminal coding agent. The terminal already gave the model named operations with clear outcomes. A desktop gave it a stream of screenshots and a mouse. The key bug exposed a requirement that shaped the rest of the work: the model needs an honest account of which actions happened and what it can safely try next.

One tool across models and screens

Yada defines a portable computer tool for vision-capable models. A driver supplies the screen size, a screenshot, and operations such as clicking and typing. Provider adapters that support native computer-use tools translate those calls into the same portable actions. The driver handles the same inputs regardless of which model requested them.

Screenshots are capped at a 1,280-pixel long edge by default. Yada asks the model for coordinates in the image it actually saw, converts those coordinates to the real screen size, and rejects points outside the image. Guessing the nearest pixel can turn an invalid coordinate into a valid click on the wrong control.

The Playwright integrations give us two ways to work in a browser. The pixel driver provides a screenshot and pointer. The structured browser tool can read elements and return references, which usually makes it the better choice for pages with accessible controls. A Docker desktop gives the agent a fuller environment and lets a person watch through noVNC. The macOS driver uses the real desktop and limits permitted actions by app. Its driver tests use a simulated runner. The hands-on recording below used Docker.

A click can outlive the process that sent it

A failed file read can usually be retried. A click might have submitted a form before the process stopped, so replaying it could submit the form twice. Running two clicks in parallel creates a similar problem: the second was planned for a screen the first might already have changed.

Yada now records a stateful tool call before executing it and runs those calls in order. If the runtime crashes after starting the action but before recording its result, the resumed run reports interrupted. The model has to look again before it acts. If an action fails partway through a batch, the model learns which action failed and which later actions were skipped.

The computer tool has three modes. observe offers only inspection. ask is the default and prompts for actions that can affect the screen. auto permits those actions in a suitably isolated environment. Provider safety checks can still require approval in automatic mode. In the service, the approval card shows the latest frame and marks the target points, so the person deciding whether to approve can see what the model planned to click. The service keeps those preview frames in memory.

Seven takes, one useful recording

We used a real Gemini model through the portable tool. Early takes exposed a mix of problems: unknown keys could fail silently, a banner complicated a Wikipedia search, and slow model responses ate into the run budget. The drivers now share a key-name table. Unknown keys return an explicit error so the model can recover.

The useful take asked the model to open Yada’s GitHub repository, find the latest release, and report the platforms with downloads. It took 39 actions and about five minutes. The release it found was v0.8.0, with macOS and Linux builds on ARM64 and x64, and Windows on x64.

A Gemini model navigates GitHub in Yada’s Docker desktop and reads the release assets

This is a real model run. The GIF removes many repeated frames and speeds up playback. The task and final answer are included.

What we changed after the demo

The review tightened permission boundaries, clarified errors, and made the drivers easier to operate. Browser references now live in the driver, outside the page, and expire when the element or page they refer to is gone. Navigation rechecks the allowed host after a redirect. The Docker desktop also got a more reliable restart path and tighter defaults for access to its screen.

The most useful lesson was to start with the most specific tool available. A structured browser tool can identify a link without guessing where it sits. Screens remain useful when the structure isn’t available. At that point, the controls around a click matter as much as the click itself: permission to act, an error the model can understand, and a clear rule for what to do after an interruption.

See the computer-use guide for the drivers and modes. The earlier installments cover the terminal coding agent and shipping the standalone CLI.

Share this writing