← govind p lal
AI and ML Bootcamp · Lecture 25 · lecture notes

Computer Use Agents

In short — How does an LLM operate a computer? A computer use agent looks at a screenshot, decides, acts, and repeats. The hard part is grounding: clicking exactly where the model means to. Modern models fix this by training the action space and precise coordinates into the model itself.

What a computer use agent is

builds on Lecture 9: Week 8 - AI&ML | From APIs to Agents | 07/03/2026, Lecture 9: Week 8 - AI&ML | From APIs to Agents | 07/03/2026

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.

repeatScreenshotcurrent screen stateModel decidesreason, pick actionActclick, type, scroll
The universal computer use loop.

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.

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

builds on Lecture 9: Week 8 - AI&ML | From APIs to Agents | 07/03/2026, Lecture 9: Week 8 - AI&ML | From APIs to Agents | 07/03/2026

Demo setup

Result

!

The loop was correct. The actions were right but not precise.

From external scaffolding to built-in: Set-of-Mark to Claude

builds on Lecture 4: Week 3 - AI and ML | Transformers- Part 1 | 31/01/2026, Lecture 16: Week 15 - AI&ML | RLVR | 25/04/2026
StageHow the model picks a targetWeakness
Plain VLM (GPT-4 Vision)Outputs pixel coordinatesImprecise, grounding gap
Set-of-Mark (GPT-4V + SoM), UFO, OmniParserBoxes drawn and numbered around elements outside the model; model says click 1, type in 2Needs an external detector
Claude computer use, Operator, open UI-TARSAction space and grounding trained into the modelStill 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

Browser use and benchmarks

builds on Lecture 17: Week 16 - AI&ML | Offline: RL Environments for LLMs | 08/05/2026

Browser-only agents (Claude in Chrome) can also read page text or select by element, which is very precise. Screenshots still come first. Benchmarks

Vision tokens and other modalities

builds on Lecture 4: Week 3 - AI and ML | Transformers- Part 1 | 31/01/2026, Lecture 4: Week 3 - AI and ML | Transformers- Part 1 | 31/01/2026

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.

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.