Your coding agent can write an entire Windows app and still have no clue what the dialog it just built looks like.
it's basically coding with its eyes closed.
Sightline is a small Rust CLI that gives agents on Windows "eyes and a stopwatch", and ngl it's one of the more carefully designed agent tools I've read this month. It landed as a Show HN today with 4 points and zero comments when we pulled it.
My take: the screenshots aren't the interesting part. The interesting part is how strict it is about what it won't do.
ok so what did they actually ship
Sightline is one exe, command sight, for Windows 10 and 11. Six commands. list finds windows and hands back the hwnd and pid to target. shot screenshots a window even when something else covers it, and it picks up the app's own popups like right-click menus. wait tells you whether the UI changed after an action and then stopped changing. rec records a GIF, stat measures CPU and memory across a whole process tree, and doctor lists your monitors and DPI scales.
The README pitches it against the throwaway PowerShell script agents usually write when you ask them to "check the dialog looks right": Start-Sleep 3, CopyFromScreen, a hard-coded PID. Sightline swaps the sleep for --settle 300, which waits until pixels stop changing and returns an honest settled:false if they never do.
There's also a neat fix for a bug every GUI agent has hit. Right after a click the UI may not have started changing yet, so a plain settle returns the old frame. --expect-change waits for pixels to differ from a baseline first, then settles.
the part I actually like: it refuses to click
Per the README, Sightline "only observes: it never clicks, types or moves the mouse." The agent acts with its own input tool, then uses sight to check the result.
Hot take: this is the right split, and more agent tools should copy it. A tool that can only look is a tool you can hand to an agent without sweating. the worst a screenshot command can do is drop a JPEG in your temp folder that's kinda the whole pitch. Its FAQ also says there's no network code and images stay in a local file.
The output contract is lowkey the best bit. Every command prints one JSON line, either {"v":1,"ok":true,...} or an error with a stable code and a hint naming the next step. Exit codes are fixed too, so 5 is always TIMEOUT and 2 is always TARGET_NOT_FOUND. And screenshots go to a file and you get the path back, "never base64, so a screenshot costs one file read instead of thousands of tokens."
that last one sounds so obvious you'd assume every screenshot tool does it. imo it's the detail that tells you someone actually ran this with an agent and watched the context window suffer.
stat has a number that explains why the process tree matters. On one machine, an Edge PID reported 46 processes and 6293 MiB, and with --no-tree the same PID showed 561 MiB. If your agent checks an Electron app for a memory leak by looking at one PID, it's checking the wrong thing fr.
the DPI part has an asterisk
The HN title leads with "map DPI coords". Models resize images, so pixel positions stop matching the screen. Every shot returns a formula from image pixels to screen pixels, plus formula_window and formula_client for input tools that work relative to the window or its client area.
The reference walks through a File Explorer window at 150% DPI where the model sees a button at image pixel (400, 200) and the formula turns that into a click at screen (1229, 494). Nice.
But the repo's own limitations section says the window formulas and --crop "were only verified on 100% DPI monitors", and AGENTS.md lists windows at a DPI scale other than 100% as untested.
imo that honesty counts in its favour. Still, if your users run at 125% or 150% scaling test the window-relative formulas yourself first. It's 19 commits and 13 GitHub stars right now. Early days, basically.
what this means if you're building agents
say your agent is building a WinForms settings dialog. Today it writes the code, runs it and hopes. With Sightline the loop is list, act with your own click tool, wait --change --settle 300, then shot and look. That's a real verify step for desktop UI work. It ships with an AGENTS.md that Codex, Cursor and others read, plus a skill you can copy into Claude Code, so a Windows screenshot tool for AI agents is basically one install away from your setup.
The install is a PowerShell one-liner piped into iex, checked against a sight.exe.sha256 published with each release. my read: a checksum from the same release catches a broken download, not a compromised repo, so if you're gonna put this on a shared machine build it with cargo build --release --locked.
One more opinion, and it's the boring one. Pixel-clicking is the fallback for apps with no API. If the thing your agent needs to touch is Slack or GitHub, driving their desktop apps through screenshots is the hard way round. Going through MCP is cleaner, and that's where we'd use MewCP: one endpoint for the agent's tools, keys kept in MewCP's vault instead of the agent's config, and per-agent permissions like "read and send, but not delete". Same look-don't-touch instinct as Sightline, just for app tools.
stuff we still don't know
How the window-relative formulas behave at non-100% DPI, by the author's own admission. Also whether anyone else has used it in anger: no HN comments yet, so no community verdict.
The license. The README says AGPL-3.0, while the frontmatter of the bundled SKILL.md says MIT. Maybe one covers the skill file and the other the tool, but if you're thinking of shipping it inside a commercial product, ask the author first.
where all this came from