Skip to content

Architecture and sandboxing guide for vision-based agents that view screens, move cursors, click, and type.

CCM score
59 of 100
skills.sh installs
456
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the perception-reasoning-action loop, plus Anthropic Computer Use and OpenAI Operator/CUA patterns with open-source alternatives
  • Includes a Dockerfile and docker-compose setup with non-root users, dropped capabilities, read-only roots, resource limits, and an internal network
  • Enforces sandbox isolation for network, filesystem, credentials, and syscalls, so agent mistakes stay contained to the container
  • Designed for teams building desktop automation or GUI agents that need to handle vision-based control and its limitations

Install

$ npx -y skills add davila7/claude-code-templates --skill computer-use-agents -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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:

  1. PERCEPTION: Screenshot captures current screen state
  2. REASONING: Vision-language model analyzes and plans
  3. ACTION: Execute mouse/keyboard operations
  4. 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.
    """

Details

Repository
github.com/davila7/claude-code-templates
Categories
AI Agents & LLM Apps, Security, DevOps & Cloud
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 398

Similar to Computer Use Agents

More AI Agents & LLM Apps