Topic 2 of 5 · 4 min read
Where computer-use agents still fail
Goal: Predict which steps of a browser task an agent is likely to fail and replace them with an API call or a human step.
Computer-use agents are slow and fragile compared with code, so use them only for the steps that have no better path, and plan for each step that can fail. Vendors say this themselves: the docs describe the feature as early, with latency and accuracy limits.
Check yourself · 1 of 3
A site offers a CSV export of last month's orders. An agent could also click through every order page. What is the better choice?
Why it matters
A demo that books a table once proves little. A real task runs hundreds of times on pages that change, and one failure in a ten-step plan breaks the whole run. Knowing the weak spots lets you design around them.
Where they fail
- Small or crowded targets. Tiny icons, dense tables and dropdowns with many near-identical rows lead to wrong picks.
- Pages that change under the agent. A banner loads late, a layout shifts after the screenshot, a spinner hides the button. The model acts on a screen that is already out of date.
- Pop-ups and interruptions. Cookie notices, session-expired dialogs and "rate this site" overlays block the target.
- CAPTCHAs and login checks. These exist to stop automation. Do not try to defeat them. Hand the step to a person.
- Long chains. Each step adds a small chance of error. Ten steps at 95 per cent each is far less reliable than any single step looks.
- Scrolling and hidden content. The thing the agent needs may be below the fold, and the model does not know it exists.
How to plan around it
- Write the task as numbered steps.
- For each step, ask: is there an API, an export or a file that does this? If yes, use it.
- Mark steps that need a human, such as a CAPTCHA or a two-factor code.
- Add a check after each step that the agent could get wrong, for example reading back the total before pressing Pay.
- Set a step limit and a retry limit.
Before and after
A weak plan:
1. Open the carrier site.
2. Log in.
3. Search for each of the 40 shipments.
4. Copy the status of each into a spreadsheet.
This uses 40 slow search-and-read loops and breaks at the login check. A better plan:
1. Call the carrier's tracking API for all 40 shipments.
2. For the 3 shipments the API reports as "unknown", ask a human.
3. Write the statuses to the spreadsheet with code.
The agent is not needed at all. If the carrier had no API, the agent would handle only the search step, with the login done by a person.
What goes wrong
- Treating a demo as a benchmark. One successful run says nothing about the failure rate.
- Using the agent where an export exists. It is slower, costs more per step and is less accurate than a download button.
- No check between steps. A wrong click at step 3 silently spoils steps 4 to 10.
Examples
Replace steps with an API
Before: agent opens the CRM, searches each customer, reads the plan name.
After: GET /customers?ids=... returns plan names in one call.
The agent version needs many screenshots and can misread a row. The API call returns the same data exactly.
A human step in the plan
1. Agent opens the vendor portal login page.
2. HUMAN: sign in and pass the verification check.
3. Agent downloads the March statement.
The plan names the step where automation is blocked and who does it.
Key points
- Agents are slow and error-prone compared with an API call, so use them only where no direct path exists.
- Small targets, late-loading banners, pop-ups and scrolled-away content are the common causes of wrong clicks.
- CAPTCHAs and login checks are meant to stop automation; pass them to a human instead of trying to get around them.
- Errors compound along a chain, so shorten the chain and put a check after the risky steps.
- Set a step limit and a retry limit so a stuck agent stops instead of looping.
Common mistakes
- Judging reliability from one successful demo run instead of many runs.
- Having the agent do a task that the site already offers as an export or an API.
- Trying to make the agent solve a CAPTCHA instead of planning a human step.
Check yourself · 2 of 3
The agent reaches a CAPTCHA during a task. What should the plan say?
Check yourself · 3 of 3
Each step of a 10-step browser task works 95 per cent of the time. What does this suggest about the whole task?
Practice items, not counted towards your mastery.
Start here
- Computer use tool (Claude docs) (opens in a new tab)DocsFree
How the screenshot, action and result loop is defined, with the security notes on VMs and prompt injection.
- Computer use (OpenAI API docs) (opens in a new tab)DocsFree
A second vendor's version of the same loop, including how a human confirms risky actions.
- Computer use (Gemini API docs) (opens in a new tab)DocsFree
Gemini's computer-use model and its action set, for comparing vendors side by side.
More for this topic
- Playwright MCP server (Microsoft) (opens in a new tab)ToolFree
A DOM-based browser tool that gives agents the page structure instead of pixels.