Teaching AI hands

October 8, 2026 · ai · engineering

Chat models learned by reading. Agents learn by doing: clicking buttons inside fake computers and grabbing cups with fake arms, until the doing works.

Part 1: Teaching it to use a computer

A computer-use agent lives in a loop: screenshot in, action out. It looks at the screen the way you do, then clicks and types the way you do. Under the hood it is still next-token prediction, except the tokens are click(512, 300) and type("hello").

What it sees. Mostly screenshots. Some setups also hand it the accessibility tree, which is the operating system's own list of buttons and text fields. Screenshots are honest but dumb: the model has to find everything by looking.

What it can do. A small vocabulary: click(x, y), type(text), scroll(direction), hotkey(keys). Everything the agent ever does is one of these, repeated.

The whole interface, on one card

Everything a computer-use agent ever sees and does. That is the entire API.

Seesscreenshotaccessibility tree
Doesclick(x, y)type(text)scroll(dir)hotkey(keys)

No secret APIs, no backdoors. If you cannot do it with a mouse and keyboard, neither can it.

The hard part has a name: grounding. "Click Submit" is easy to say and hard to do. The model must turn words into exact coordinates on a screen it has never seen, where the Submit button might be blue, gray, or hiding inside a menu. Get the coordinates wrong and it clicks an ad instead.

Watch it work

A fake desktop. Pick a task, then step the loop: look, think, act. Coordinates are 0 to 1000, like the real models use.

Notes
file.txt
thoughtPress Step to start the loop.
action--

Toy model. Real agents run the same loop, just with messier screens and much longer task lists.

From words to coordinates

Grounding: the model gets words, it must output pixels. Tap an instruction and watch the model point.

Save changes?
You have unsaved edits in this document.
grounded toclick(712, 486)

No button IDs, no DOM handles. Just a screenshot and a guess. Miss by a little and it clicks the ad instead.

How it learns, in three stages. First, pretraining on UI grounding data: millions of screenshots labeled with what is clickable and where, so "Submit" starts meaning a region of pixels. Second, supervised fine-tuning on human demos: people record themselves doing tasks, and every step becomes an observe, think, act triple the model imitates. Third, reinforcement learning: the agent practices inside a sandboxed virtual machine and gets a reward of $R = 1$ when the task is done, $0$ when it is not. Benchmarks with names like OSWorld and WebArena score it on hundreds of real desktop and web tasks.

The sandbox is not optional. You do not train an agent on your real desktop, because lesson one of reinforcement learning is that the agent will try everything, including the delete key. A virtual machine can be reset. Your files cannot.

How it learned

First it imitates human demos. Then it practices for reward.

"The cursor is over the search box. I will click it."click(540, 120)
"Results loaded. The login link is top right."click(880, 90)
"The form is empty. I will fill the email field."type("me@example.com")
Total reward so far0

Toy numbers. Demos teach the moves. RL teaches persistence: keep trying until the reward lands.

Two ways to learn

Tap each card. Demos teach the moves. Reward teaches persistence.

In practice: demos first to learn the moves, RL after to stop needing the human.

Part 2: Teaching it to do chores

A robot model is called a VLA: vision, language, action. Camera images go in, joint commands come out. Same transformer shape as a chatbot, different body. The breed has names: RT-2, OpenVLA, pi-zero.

The token trick. Robot arms move smoothly, but transformers speak in discrete tokens. So engineers chop each motion into bins: instead of "move 3.2 cm left," the model outputs token 412, which means "a little left." Same machinery as words, now steering motors.

The token trick

Tap the card. Transformers speak tokens, so engineers made motions speak tokens too.

Toy model. Real VLAs use hundreds of motion bins per joint.

Where the data comes from. Chat models trained on the internet. Robots have no internet. Their data is human teleoperation: a person drives the arm with a controller while cameras record, thousands of times. Projects like Open X-Embodiment pool demos across many different robots. And sim-to-real: practice a million times in simulation, then deploy on the real arm and hope physics agreed.

Where robot data comes from

Chat models trained on the internet. Robots have no internet, so they get these instead. Tap each.

Toy summary. Real pipelines mix all three.

The arm learns

A two-link arm, a cup, a sink, a shelf. Watch the expert, then watch a clone of the expert.

table sink shelf
Pick a chore, then watch the expert.
Grab wobble--

Toy model. Cloning copies the expert, wobble included. More demos shrink the wobble, but the clone never beats the teacher. This is why demos alone do not make a butler.

Long chores need managers. "Clean the kitchen" is not one skill, it is fifty. So policies go hierarchical: a planner breaks the chore into skills (pick up cup, open dishwasher, place cup), and each skill is its own little policy. The planner thinks in words. The skills think in motions.

One chore is fifty skills

"Clean the kitchen" is not a skill. Tap a chore to see the skills hiding inside it.

A planner thinks in words and picks the skills. Each skill is its own little policy that thinks in motions.

Why robots lag chat

Same transformer shape. Wildly different diets. Log scale, approximate figures.

Text tokens training a chat model~10 trillion
Robot episodes in Open X-Embodiment~1 million

Log scale, toy comparison, figures approximate. Robots are not dumber. They are data-starved: every chat model read the internet, and no robot has.

Reading made chatbots smart. Doing will make robots useful. It is just slower, because every lesson costs a real arm, a real cup, and a real kitchen.

Keep exploring