Chapter 29: Computer-Use and Multimodal Agents
Lecture
The narrated lecture for this chapter is coming soon on the YouTube channel.
Chapter principle
Key takeaways
- Computer use adds perception and grounding to the ordinary agent loop.
- Coordinates belong to one observed state and go stale.
- Re-ground just before acting.
- Verify semantic postconditions from a fresh observation.
- Perception, grounding, planning, execution, and verification fail separately.
- Fusion should keep provenance, disagreement, uncertainty, and unknowns.
- Visual content is untrusted data; prefer structured interfaces when they exist.
Experiments
Every experiment in the book is small, runnable and printed with its real output. In the Lab you can replay a recorded real run of each one, with no programming, and watch what the model and the agent do.
Experiment 55: Clicking on a changing screen
What goes wrong when an agent clicks where a button used to be?
An agent controls a mouse on a toy screen, and its goal is to submit a form. A real model reads a description of the screen, each button's label and position, and replies with the point to click. Between finding the button and clicking it, a dialog appears and the layout shifts. Two harnesses are compared: one clicks the point it found earlier; the other looks again just before clicking and checks the result afterwards. This is a recorded run of a real model. A new run may differ.
Experiment 56: Photo versus order record
When a photo and a database disagree, what should an agent do?
An order record says 7 units of Widget A. A package label, drawn as an image, says Qty: 4. A real vision model reads the label and reports each field with a confidence between 0 and 1. Two ways of combining the photo with the order are compared: naive fusion, where the last source simply overwrites the other, and a comparison that keeps each claim with its source. Then the quantity on the label is smudged, and the model reads it again. This is a recorded run of a real model. A new run may give other confidence values.
All the code for this chapter: github.com/agentic-engineering-book/code
Download the bookBrowse all chapters