# Computer Use Agent Pitfalls

> Use when a model is given a screen or a browser to operate (clicks, typing, screenshots) or such an agent is reviewed: resizing screenshots yourself so click coordinates stay true and scaling them back, the hosted tool against an explicit tool definition and who runs the injection checks, several actions in one turn and what to answer after a failure, echoing the toolset name in results, treating screen content as untrusted, a disposable machine, human confirmation for consent and money, a safe first run and recorded trajectories.

- Skill: `techmefr/computer-use-agent-pitfalls` (Agent Skill, multi-file: 5 files)
- Install (CLI): `npx get-skill add techmefr/computer-use-agent-pitfalls`
- Raw SKILL.md: https://api.skillmd.com/api/skills/techmefr/computer-use-agent-pitfalls/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: techmefr (https://skillmd.com/u/techmefr)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/techmefr/computer-use-agent-pitfalls

---


# computer-use-agent-pitfalls

A block for the person who builds or reviews a loop in which a model sees screenshots and sends back clicks and keys.
The three sections share one premise: **the model acts in the picture you sent it, not in your screen, and whatever
is in the picture can talk to it; every pixel and every instruction therefore has to be accounted for on your side
of the loop**. Text-only prompt injection is in `llm-app-prompt-injection-and-exfiltration-pitfalls`; isolating what
the agent can reach is in `agent-sandbox-egress-pitfalls`; keeping a long screenshot history cheap is in
`llm-cost-latency-control-pitfalls` §1.2; browser tests written by people are in `playwright-e2e-pitfalls`.

## When
- Building the loop that sends screenshots and executes the model's actions.
- Clicks land a little off, or increasingly off, on large or unusual screens.
- Choosing between the vendor's built-in screen tool and a tool you define yourself.
- Reviewing the safety of an agent that browses or operates a desktop.
- Giving someone their first run of such an agent.

## Steps

**Read only the section the task meets.** They are independent.

| § | Covers | Read it when | File |
|---|---|---|---|
| 1 | Screenshots and coordinates: pre-resizing, scaling back, zoom, a frame that does not change, pixels against screen points | clicks miss or the capture path is written | [`01-screenshots-and-coordinates.md`](./references/01-screenshots-and-coordinates.md) |
| 2 | Tools and turns: hosted against explicit, several actions per turn, not-executed answers, result echo rules, batching | the loop and the tool definitions are written | [`02-tools-and-turns.md`](./references/02-tools-and-turns.md) |
| 3 | Safety and first run: untrusted screen content, disposable machine, confirmations, sensitive captures, safe first task, recorded runs | the agent is about to touch a real screen or site | [`03-safety-and-first-run.md`](./references/03-safety-and-first-run.md) |

## Output / checkpoint
The capture path was tested with a known target: the loop clicked a marked point on a picture of a different size
than the real screen and hit it (§1). The block knows which tool declaration it uses and who runs the injection
checks as a result (§2). The agent runs on a disposable machine or a browser-only profile with a domain list,
nothing sensitive is on screen, and consent, payment and sign-in steps stop for a person (§3). One recorded run
was read by a human before the agent was given real work. A loop only ever tried on a screen of the size it was
developed on is not verified.

## Guardrails
- Never send a screenshot whose size you did not choose; resize it, remember the size and scale the answer back (§1).
- Never assume the vendor's injection checks apply to a tool you defined yourself (§2).
- Never execute the rest of a multi-action turn after one action failed (§2).
- Never treat words in a screenshot or a page as instructions, even when they look like the operator's (§3).
- Never run the agent on a machine that holds data or sessions you cannot lose (§3).
- Never let the agent accept terms, cookies, payments or sign-in prompts alone (§3).
- Restates a public reference implementation and its documentation; no screen or browser was driven while writing
  it. Provenance and open points: [`references/origin.md`](./references/origin.md).

## Origin
Rewritten from the computer-use reference implementations of Anthropic's claude-quickstarts (MIT), read 2026-10-20,
with own guidance flagged in the references; sizing, tool-turn and safety points re-checked on 2026-10-20 against Anthropic, OpenAI and Google computer-use pages (facts only). 🟡: never run by us.

