agentleFS
lahfirlahfir/agent-desktop/skills/agent-desktop-windows/SKILL.md

agent-desktop-windows

Skill1.8k starsChanged 7 days agoApache-2.0View on GitHub

Windows platform guide for the agent-desktop CLI. Lists per command group what works on Windows and what refuses, the first-contact gotchas (PowerShell ref quoting, minimized windows, headed-only input), and where to find shell surfaces, notifications, the cursor overlay, UIPI elevation, Chromium/Electron settle behavior and troubleshooting. Triggers on: "windows desktop automation", "UIA tree", "automate Windows app", "agent-desktop on Windows", "elevated window input blocked", "E_ACCESSDENIED", or any Windows GUI interaction task.

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every element of a minimized window reports offscreen and ref actions fail.

    line 55
  2. Very specific:

    Read any file from the binary: agent-desktop skills get agent-desktop-windows references/troubleshooting.md.

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

agent-desktop-windows

The observe-act loop, ref system, JSON envelope, sessions and tracing are the same on every platform. This file covers only what differs on Windows.

Requires Windows 10 1809+ / Windows Server 2019+ (x64 or ARM64). Run it in the interactive desktop session of the signed-in user. Session 0 (services and SYSTEM tasks), Server Core, the secure desktop (UAC prompts, the sign-in screen), a locked desktop and another user's session are not supported: observation, actions and capture there fail or return nothing.

Capability Table

GroupCommandsStatus on Windows
Observationsnapshot, find, get, is, screenshotWorks. Surfaces are window, focused, a Chromium modal as sheet, and an open application menu as menu
Surfaceslist-surfacesWorks. Lists window, focused and sheet per process, plus menu with item_count while a menu is open
Shell surfacesopen-system-surfaceWorks for start-menu, taskbar, system-tray, system-tray-overflow and action-center, and returns the window snapshot --surface <kind> reads. quick-settings returns PLATFORM_NOT_SUPPORTED naming action-center
Ref interactionclick, right-click, type, set-value, clear, select, toggle, check, uncheck, expand, collapse, scroll, scroll-toWorks, semantic in headless and --headed mode. right-click and type need --headed and return POLICY_DENIED headless
Multi-click and focusdouble-click, triple-click, focusWorks with global --headed only
Keyboard and mousepress, hover, drag, mouse-click, mouse-move, mouse-wheelWorks. Cursor-moving input needs --headed. First Contact covers press --app
Held inputkey-down, key-up, mouse-down, mouse-upFails closed on every platform with ACTION_NOT_SUPPORTED. A headless mouse-down or mouse-up returns POLICY_DENIED first
App and windowlaunch, close-app, list-windows, list-apps, focus-window, resize-window, move-window, minimize, maximize, restoreWorks. First Contact covers the name launch takes
Displayslist-displaysWorks
Clipboardclipboard-get, clipboard-set, clipboard-clearWorks; typed text and image content
WaitwaitWorks for ms, --element, --window, --text, --menu, --menu-closed, --event and --notification
Notificationslist-notifications, dismiss-notification, dismiss-all-notifications, notification-actionWorks over the Action Center. Pass --headed when the center is closed
Cursor overlaycursor-overlayWorks. enable returns data.rendered: true only after the renderer acknowledges over its pipe. See references/shell-and-overlay.md
Systemstatus, permissions, version, batch, skills, session, traceWorks

First Contact

  • Quote every ref in PowerShell. PowerShell reads a bare @token as its splatting operator and deletes the argument before the binary sees it, so set-value @s8f3k2p9:e1 hi fails INVALID_ARGS. Write set-value '@s8f3k2p9:e1' hi. cmd.exe and bash need no quoting.
  • A window behind another window is drivable. A minimized one is not. Every element of a minimized window reports offscreen and ref actions fail. Run restore --app <image> and snapshot again. Do not use focus-window by reflex: it steals the user's foreground.
  • No permission dialog exists. permissions reports automation as not_required. Elevation boundaries are the only access control.
  • Chromium and Electron apps read thin before they settle. Pass a longer --timeout-ms to snapshot instead of concluding the tree is empty.
  • Blocked shortcuts. alt+f4, win+l, win+d, alt+tab, win+r, win+x, win+e, ctrl+shift+esc and their modifier supersets are refused without --force. In combos, cmd and meta are the Windows key, so meta+c is a shell shortcut. Write ctrl+c to copy.
  • type needs --headed. It is keystroke synthesis through SendInput, so a strict-headless type returns POLICY_DENIED. Use set-value, or pass --headed. It ends delivered_unverified (verification_scope: "unavailable") when the field exposes no readable Text selection, and can verify when one is readable: confirm with a fresh get.
  • press --app writes to the foreground queue with no per-process targeting. A headless press to a non-frontmost app fails closed. A non-interactive caller (service, scheduled task, CI job) gets delivered_unverified.
  • launch takes an absolute path or a bare name under System32 or the Windows directory, with or without .exe (notepad or notepad.exe), not a display name. Use list-apps to find a running app.
  • Notifications: list-notifications with the Action Center closed needs --headed. Single-item dismiss-notification and notification-action need --headed and --expected-app or --expected-title for the entry at INDEX.
  • Surfaces: an open or context menu is the menu surface. Windows does not advertise a menubar surface.
  • Commands that raise shell chrome take the foreground. Strict headless refuses them with POLICY_DENIED before anything is raised.
  • Stateful actions run once, then verify by re-reading. delivered_verified means the readback matched. ACTION_FAILED with details.kind: "post_action_verification" means the action landed but the readback differs: read details.post_state and do not retry. A set-value the app reformats reads as failed. See references/troubleshooting.md.
  • Unsigned binary warnings are expected. See references/troubleshooting.md.

What differs on Windows

  • Ref actions are semantic UI Automation calls in headless and --headed mode, except right-click, double-click, triple-click, type and focus, which are physical or take focus and need --headed.
  • The cursor overlay plays its per-action travel only for headless semantic actions. A --headed action moves the real cursor instead.

References

  • references/shell-and-overlay.md: open it for open-system-surface, tray and taskbar surfaces, notifications, the cursor overlay, hosted (UWP) window identity and menu detection coverage.
  • references/permissions-and-elevation.md: integrity levels, UIPI, blocked combos, protected processes, the cross-process interaction lease.
  • references/chromium-and-electron.md: settle timing, covered-window hazard, WPF wrong-provider trap, unnamed web content.
  • references/troubleshooting.md: symptom-to-cause map, action verification outcomes, saving a document headless, install warnings.

Read any file from the binary: agent-desktop skills get agent-desktop-windows references/troubleshooting.md.

Download now (ZIP)

Trending

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Aug 30: 0 new projectsWeek of Sep 6: 0 new projectsWeek of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projects
Aug 2026Sep 2026Oct 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about lahfir/agent-desktop

The biggest 5 of 35 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 35

Talked about on GitHub, Hacker News and Bluesky (35 times).

On GitHub · 29

24 more on GitHub

On Bluesky · 3

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.