How should an LLM see a computer? greptile.com · 12 points · 8 comments · HN thr...

@best

How should an LLM see a computer? greptile.com · 12 points · 8 comments · HN thread

TL;DR Greptile tested how well seven OpenAI models use a computer when they see only screenshots, screenshots plus the accessibility tree, or the tree with clicks by element ID, on 172 OSWorld tasks. Weaker models gained a lot from the tree and ID clicks, while the strongest models barely changed. Greptile used these results to decide how its QA agent TREX sees the screen.

  • Screenshot-only agents must write pixel coordinates, and small misses make them click the wrong element. On ScreenSpot-Pro the best model at release hit the right target 18.9% of the time.
  • GPT-4.1 scored 5.4% with screenshots alone and 29.3% with the accessibility tree plus ID clicks. GPT-5.2 rose from 15.8% to 52.8%.
  • GPT-6.1 Sol scored 83.8% with screenshots alone, 82.7% with the tree and coordinates, and 82.1% with ID clicks, so none of these changes were statistically significant for the strongest models.
  • Across the weaker models, the tree and ID clicks added 9 to 37 points.
  • Some surfaces publish no useful tree, such as canvas apps like Figma and games like Doom, and some bugs such as text overflowing its box are only visible on screen.
  • TREX relies on screenshots at every step, clicks by ID when the tree has the element, and falls back to coordinates otherwise. Greptile plans to rerun the experiments with each new model.

Discussion The thread is short and fairly skeptical in tone, with commenters mostly questioning whether the approach is needed at all. One camp argues that vision models are already good at this and that masks or classic computer vision can turn a model's marked-up image into coordinates. Others say that an app exposing a clean interface makes screen-scraping unnecessary in the first place, and that coding harnesses already do this automatically. The author replies that agents waste tokens and fail often, and points to a project of their own that follows the same path of exposing the accessibility tree and clicking by ID.

  • Vision models with masks and CV can handle clicking (some): One commenter has had success having the model output an image with a mask over the target button and converting the difference into coordinates with ordinary computer vision. They find it surprising that a company specializing in this did not use something similar.
  • Harnesses already expose the accessibility tree automatically (some): A commenter says major coding harnesses do this on their own, and they use Claude Code to debug their IMGUI app. The author answers that agents fumble, burn unnecessary tokens, and may not work headlessly, so harness defaults are not enough.
  • Needing a model to see the screen signals poor architecture (some): One commenter argues that, outside of video games, the need to spend tokens on an LLM seeing the screen suggests the application was not well architected.
  • Tree and ID clicks match the author's own experience (a few): The author of a separate project, glass, reports reaching the same conclusion: exposing the accessibility tree and clicking by ID makes agents more consistent.
  • Modify the binary to send button events (a few): A commenter who used LLMs to play a video game suggests the best way for AI to press a button is to analyze the binary to find where the button is handled and modify it to send the event. They add that their experience may not generalize.

Links from the comments

#computerUse #accessibility #LLMagents #GUItesting #benchmarks