Agentic Engineering from First Principles All chaptersLecturesLabDownload the book
Part VI · Advanced Agentic Engineering

Chapter 29: Computer-Use and Multimodal Agents

Central questionWhat changes when an agent must perceive an interface or an image, infer what it means, ground an action in that perception, act, and then verify that the world actually changed as intended?

Lecture

The narrated lecture for this chapter is coming soon on the YouTube channel.

Chapter principle

Perception is part of control. When an agent acts through visual or multimodal observations, every consequential action should be grounded in current evidence, executed within authority, and verified against a fresh observation of the resulting state.

Key takeaways

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

This is Chapter 29 of Agentic Engineering from First Principles: thirty chapters, a case study and fifty-nine executable experiments, from a single model call to controlled, self-improving agents.
Download the bookBrowse all chapters
← Chapter 28: Coding AgentsChapter 30: Self-Improving Agents and the Future →