Computer Use Agents
What a computer use agent is
Computer use agent - an LLM with access to an app, a browser or a full Linux machine, which controls it like a human would. The only new thing versus earlier agents: the input includes an image, not just text. Examples: Claude computer use, OpenAI Operator.
Same agent loop as before, but the observation is a picture of the screen. Works for a browser, Photoshop, KiCad, Zoom or any app with a screen.
Why screenshots and not DOM or APIs
The Problem DOM (Document Object Model) gives structured element IDs, but only for browsers.
- Photoshop and most apps give no API to control them.
- A general computer agent must work on any app. The Solution Give the screenshot. It is exactly what a human sees, so it covers every app. -> Universal input.
Pattern became practical with GPT-4 Vision (2023). Earlier attempts (e.g. OpenAI's 2016 RL agents) failed: they had no language understanding, so no reasoning about the task or what to fill in. General tools given to the model: click, type, scroll, select, submit, go back.
Building it by hand: the grounding problem
Demo setup
- Headless browser in Colab with tools: screenshot, click, type, press, scroll, close.
- Test app: expense portal (vendor/airline, amount, category, description, submit for approval).
- Any free OpenRouter vision model (e.g. Gemma). System prompt states image size 1024x768 and a JSON schema for one or many actions with coordinates.
- Our code executes the actions, not the model.
Result
- Loop worked: it typed United Airlines, 450, and tried to submit.
- Clicks missed the fields and submit button, so nothing was submitted. The model knew roughly where things were (vendor at top, amount in middle, submit bottom right). But not pixel-precise. -> Grounding problem. Grounding problem - mismatch between where the model says to click and where the element actually is. Why: the model was never trained to output exact coordinates; it guesses from its internal view of the image.
The loop was correct. The actions were right but not precise.
From external scaffolding to built-in: Set-of-Mark to Claude
| Stage | How the model picks a target | Weakness |
|---|---|---|
| Plain VLM (GPT-4 Vision) | Outputs pixel coordinates | Imprecise, grounding gap |
| Set-of-Mark (GPT-4V + SoM), UFO, OmniParser | Boxes drawn and numbered around elements outside the model; model says click 1, type in 2 | Needs an external detector |
| Claude computer use, Operator, open UI-TARS | Action space and grounding trained into the model | Still not solved on hard tasks |
Pattern: whatever we did outside the model gets moved inside. Same as positional encoding, once a manual step, now learned in training. Trained-in version
- Fixed action space built in: screenshot, click, type, scroll, zoom.
- Zoom - inspect a small region too tiny to read on the full screen.
- Outputs precise coordinates, closing the grounding gap.
- Self-check: take a new screenshot after each step instead of assuming it worked; retry if it failed. With the Anthropic SDK you only pass the computer-use tool version, screen size and model. The API handles the rest.
Browser use and benchmarks
Browser-only agents (Claude in Chrome) can also read page text or select by element, which is very precise. Screenshots still come first. Benchmarks
- OSWorld - multimodal agents on open-ended computer tasks across many applications (terminal, Photoshop, Excel, file edits). Scores climbed to about 90-95 percent, so OSWorld 2 is being built.
- KiCad (electrical circuit design software) tasks: frontier model solves only about 6 of 25. Not a solved problem. Simple CAPTCHAs can now be solved by these models. To train with RL, see browser/computer-use environments on Prime Intellect's Environments Hub.
Vision tokens and other modalities
Image cost is based on pixel information, not text tokens. Rendering text as an image has been used to cut usage. LLM does not care about modality. It takes vectors in and gives vectors out. The work is converting each modality efficiently.
- Text -> tokenization
- Image -> 16x16 patches -> embeddings
- Video -> early: a few seconds of frames treated as images; newer models process video directly
- Audio -> codecs turn waves into vectors in the transformer's dimension
Glossary
- Grounding
- Matching the model's intended target to the exact on-screen coordinates.
- DOM
- Document Object Model, the structured element tree of a web page, available only in browsers.
- OSWorld
- Benchmark of open-ended computer tasks across many applications.
- Action space
- The fixed set of actions a model can take, such as click, type, scroll, zoom.