sightline (sight CLI)
Windows CLI that gives AI coding agents window screenshots, UI-settle waits, coordinate mapping and process CPU/memory measurement as JSON.
At a Glance
Windows CLI `sight` licensed under AGPL-3.0 (OSI-approved); free to use, modify and distribute under the license terms.
Engagement
Available On
Listed Dec 2026
About sightline (sight CLI)
sightline is an open-source Windows command-line tool, invoked as sight, that gives AI coding agents a way to observe the desktop. It finds windows, captures screenshots, waits for the UI to change and settle, and measures CPU and memory of a process tree. The latest listed release is v0.2.0, and the source is licensed under AGPL-3.0.
What It Is
sightline is a single small executable for Windows 10 and 11 that only observes: it never clicks, types or moves the mouse. The agent acts with its own input tools and then uses sight to check the result. Every command returns one JSON line with stable error codes and a hint naming the next step. Images are saved to a file and only the path is returned, not base64.
The Observe Loop
The commands cover the stages of an agent's check cycle:
listfinds windows and returns HWND, PID, rect, monitor, DPI and minimized state.shotcaptures a window even when it is covered, includes the app's own popups, and supports window-relative--crop.waitwaits for the UI to change and then stop changing, without saving an image.--expect-changewaits for pixels to differ from a baseline before settling, and--baselinecompares against an earlier shot so instant reactions are not missed.recrecords a window, crop or region to an animated GIF, merging identical frames and optionally saving PNG keyframes.statsamples CPU and memory across a whole process tree and reports avg, p95 and max.doctorreports monitors and DPI scales.
Coordinates and DPI
Each window shot returns formulas that map image pixels to screen, window and client coordinates, so an agent can compute click positions even after the image is downscaled. The tool is Per-Monitor DPI aware and reports dpi_scale and monitor_dpi_scale.
Setup and Agent Integration
Install with a PowerShell one-liner that places sight.exe in the user folder and on PATH, download from Releases, or build from source with Cargo. The repository includes an AGENTS.md brief and an Agent Skill (skills/sightline/SKILL.md) for tools such as Claude Code. The README says there is no network code and images stay in a local file.
Documented Limitations
- Window formulas and
--cropwere verified only on 100% DPI monitors. - Protected-window handling and classic Win32 menu popups are untested.
- Change detection baselines on the first captured frame, about 0.3 s after start, unless
--baselineis used.
Collections
Popular collections
- Give Your Agent Design Taste
Collection by @linetwk
- UI Design Skills for Coding Agents
Collection by @mayachen
- Find the Ways Your AI App Can Fail Before Launch
Collection by @samirhaddad
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
Add sightline (sight CLI) to one of your collections.
Community Discussions
Be the first to start a conversation about sightline (sight CLI)
Share your experience with sightline (sight CLI), ask questions, or help others learn from your insights.
Pricing
Open Source
Windows CLI `sight` licensed under AGPL-3.0 (OSI-approved); free to use, modify and distribute under the license terms.
- AGPL-3.0 licensed core CLI
- Window finding and screenshots, including covered windows
- UI change and settle waits
- CPU and memory measurement of process trees
- JSON output
Capabilities
Key Features
- Window listing with HWND, PID, rect, monitor and DPI
- Screenshots of covered windows including popups
- Wait for UI change and settle with timeout
- Baseline comparison for instant UI reactions
- Coordinate formulas for screen, window and client origins
- Window-relative crop
- Animated GIF recording with keyframe stills
- CPU and memory measurement of whole process trees
- Per-Monitor DPI awareness
- JSON output with stable error codes and hints
- Observe-only: never clicks or types
- Agent Skill and AGENTS.md guidance
