Cwin — AI skill for Claude Code
Windows CLI that screenshots, clicks and types into any window without stealing focus, so an AI coding agent can drive a GUI while you keep working.
How to install Cwin
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open eric-patton/cwin and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cwin does
Windows CLI that screenshots, clicks and types into any window without stealing focus, so an AI coding agent can drive a GUI while you keep working. Layers PostMessage, UI Automation and SendInput and picks the right one per app framework.
Alternatives in AI
- AIHawk — Open-source AI browser agent: describe any task in plain language and it autonomously browses, clicks, types a 30.3k ★
- Campfire — Campfire - Collaborative web platform for AI coding agents with Collective Intelligence layers 57 ★
- Gentle Agent State — See which AI coding agent needs you — right in your tmux tab bar 54 ★
README
cwin
A small Windows CLI that lets you (or an LLM coding agent like Claude Code) drive **any** visible window on a Windows 11 machine — screenshot it, click in it, send keys to it, resize and move it — **without stealing focus** in the common case. Built so an interactive session can have the agent iterate on a UI in one window while you keep working in another.
cwin list
cwin shot --title "MyApp" --out shot.png
cwin click --title "MyApp" --x 200 --y 150
cwin click --title "Calculator" --uia-id num7Button # XAML — UIA path, no focus
cwin keys --title "MyApp" --text "hello world"
cwin key --title "MyApp" --key S --mods Ctrl
cwin uia --title "MyApp" # discover element ids
cwin pos --title "MyApp" --anchor bottom-right # dock it out of the way
cwin background --title "MyApp" # drop to back of Z-order
cwin monitors # list displays
`cwin --help` lists every subcommand; `cwin --help` dives in.
Why
When a person and an LLM iterate on UI work — a WPF app, a Godot game, a web frontend in a browser, an Electron tool — every loop usually requires the human to take a screenshot, click somewhere, type something, and tell the model what happened. cwin lets the model do it directly. The hard constraint, and the reason this isn't a one-liner around `SendInput`, is **don't disrupt the user**: no focus theft, no cursor jerks, no popping windows in front of what they're typing into.
That constraint forces a layered strategy:
| layer | API | works on | steals focus? |
|---|---|---|---|
| post | PostMessage |
Win32, WPF, WinForms, Chromium/Electron | no |
| uia | UI Automation | XAML/WinUI/UWP, WPF, Chromium/Electr |
Related Skills
PC Control
Let an AI see and operate Windows apps cheaply, without stealing focus or moving your mouse. MCP server for Cl
Dont Sleep
Keep your Mac awake while your AI agents are working — even on battery with the lid closed.
Crema
Keep your Mac awake while your AI coding agents work, and let it sleep when they are done. A caffeinate you ca
AI Calendar Agent
Autonomous AI agent that manages Google Calendar through natural language via Telegram. Built with Claude API,
Chromeflow
Let your AI coding agent (Claude Code or Codex CLI) drive your real Chrome — clicks, fills forms, grabs API ke
Editorimage AI
Open-source AI image editor you drive with words: layers, masks, generative fill, image-to-image, background r
Related Agents
Game Tester
QA tester for EOB1 ScummVM CHT fan translation. Drives scummvm headlessly in WSL Xvfb (no window appears on Wi
UI Explorer
Drive and explore a native macOS app's GUI (screenshot → click/type → observe) and correlate each action with
Blue Team
Defensive security and hardening specialist. Creates detection rules, hardens Linux/Windows systems, writes Si