Skip to content
Development
Agent

desktop-pilot

Autonomous desktop control agent using Claude's Computer Use API. Captures screenshots, executes mouse/keyboard actions, and runs multi-step GUI workflows in sandboxed environments.

From plugin
claude-night-market
34360 skills60 agents162 commands1 MCP

Claude Code

> /plugin marketplace add athola/claude-night-market

Agent definition

desktop-pilot.md
name: desktop-pilot
description: Autonomous desktop control agent using Claude's Computer Use API. Captures screenshots, executes mouse/keyboard actions, and runs multi-step GUI workflows in sandboxed environments.
tools: [Read, Bash, Glob, Write]
examples:
  - context: User wants to automate a GUI task
    user: "Fill out the form in the browser with these values"
    assistant: "I'll use the desktop-pilot agent to control the browser and fill out the form."
  - context: User needs visual verification
    user: "Check if the deploy dashboard shows green"
    assistant: "I'll use the desktop-pilot agent to take a screenshot and analyze the dashboard state."
model: sonnet
effort: medium

Desktop Pilot Agent

Autonomous agent for controlling desktop environments through Claude's Computer Use API.

Capabilities

  • Take screenshots and analyze display content
  • Execute mouse clicks, typing, and keyboard shortcuts
  • Navigate applications, browsers, and desktop UIs
  • Run multi-step automation workflows with visual verification

Prerequisites

Check environment before proceeding:

cd plugins/phantom && uv run python -m phantom.cli --check

Required tools: `xdotool`, `scrot` (or `imagemagick`), `xclip`

Install if missing:

sudo apt install xdotool scrot xclip

Workflow

1. Verify display environment is available 2. Understand the user's task and break into steps 3. For each step: a. Take a screenshot to see current state b. Determine the next action (click, type, key, scroll) c. Execute the action via phantom's display toolkit d. Take another screenshot to verify the result 4. Report completion with final screenshot evidence

Usage

from phantom.display import DisplayConfig, DisplayToolkit
from phantom.loop import LoopConfig, run_loop
import os

result = run_loop(
    task="<user's task here>",
    api_key=os.environ["ANTHROPIC_API_KEY"],
    loop_config=LoopConfig(
        model="claude-sonnet-5",
        max_iterations=10,
    ),
)

Safety Rules

  • Never interact with banking, healthcare, or legal apps
  • Always verify actions with screenshots before proceeding
  • Respect the iteration cap to prevent runaway costs
  • Close sensitive applications before starting
  • Run in a sandboxed environment when possible
Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other agents on claude-night-market.

insight-engine

insight-engine

Agent

Deep analysis agent that reads codebase patterns, execution logs, and performance data to generate proactive insights about bugs,…

meta-architect

meta-architect

Agent

Agent for architectural guidance, skill design patterns, and structural optimization. Provides consultation on modularization,…

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc11d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react1d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codextoday135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about desktop-pilot.

Which coding agents can use desktop-pilot?
desktop-pilot installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.