
Computer Use Agents
This teaches you to build AI agents that control computers through vision and actions, using the same perception-reasoning-action loop that powers Anthropic's Computer Use and OpenAI's Operator. The patterns cover the fundamentals (screenshot → vision model → execute mouse/keyboard → repeat) plus critical security sandboxing with Docker containers, because giving an AI direct system access is asking for trouble. Includes working code for Claude's official computer use tools, which now support zoom actions in Opus 4.5 for inspecting UI details. The honest reality is that dropdowns and scrollbars are still tricky for these agents. Use this when you need desktop automation beyond browser-only tools, but always run it isolated.
- skills.sh installs
- 455
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill computer-use-agents --agent claude-codeInstalls into .claude/skills of the current project.
Files
Computer Use Agents
Patterns
Perception-Reasoning-Action Loop
The fundamental architecture of computer use agents: observe screen, reason about next action, execute action, repeat. This loop integrates vision models with action execution through an iterative pipeline.
Key components:
- PERCEPTION: Screenshot captures current screen state
- REASONING: Vision-language model analyzes and plans
- ACTION: Execute mouse/keyboard operations
- FEEDBACK: Observe result, continue or correct
Critical insight: Vision agents are completely still during "thinking" phase (1-5 seconds), creating a detectable pause pattern.
When to use: ['Building any computer use agent from scratch', 'Integrating vision models with desktop control', 'Understanding agent behavior patterns']
from anthropic import Anthropic
from PIL import Image
import base64
import pyautogui
import time
class ComputerUseAgent:
"""
Perception-Reasoning-Action loop implementation.
Based on Anthropic Computer Use patterns.
"""
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Security, DevOps & CI/CD, AI & Agent Building, Automation & Workflows, CLI & Terminal
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Powershell Windows454
- React Useeffect454
- Backend Patterns452
- Find Bugs447
- Langgraph447
- Agent Md Refactor446
- Autonomous Agent Patterns446
- D3 Viz445
- Manim444
- Marketing Psychology443
- Requirements Clarity442
- Frontend To Backend Requirements441
- Canvas Design439
- Nowait Reasoning Optimizer438
- Code Review Checklist437
- Prompt Caching437
- Commit435
- Vercel Deployment433
- C4 Architecture430
- Information Security Manager Iso27001428
- Mlflow427
- Statsmodels426
- Prompt Library423
- Chroma421