# /// script # requires-python = ">=3.10" # dependencies = ["anthropic>=2.3,<3", "pillow>=10"] # /// """Give Claude a task on this VM's desktop, with the computer use tool. uv run agent.py "In Google Chrome, open news.ycombinator.com and tell me the top story." Claude looks at screenshots of display :1 and answers with clicks and keystrokes, which xdotool carries out. Each step is printed as it happens. Screenshots, zooms and waits run unasked; before any other action you answer y (run it), n (refuse it; Claude is told) or a (run it and every later one). --yes approves everything from the start: only for tasks and pages you trust, since what is on the screen steers what Claude does. Each run is kept in ~/agent-runs/