Jack Wang

Side project · Oct 2026

vision-nav: a GitHub agent that only sees pixels

A command-line agent that opens github.com in a real browser, looks at screenshots, and clicks and types its way to a repository's Latest release — then reads the release off the screen and returns JSON. No CSS selectors, no XPath, and it never types a URL.

0
selectors or GitHub-specific DOM knowledge
2
grounding modes: set-of-marks or raw pixels
25
offline tests, no API calls
6
steps in the reference openclaw run

The question

How far does a vision model get when the screen is the only interface?

Most browser agents lean on the DOM. That works until the markup changes, and it says little about whether the model actually understands the page. vision-nav goes the other way: every navigation is a mouse click or a keystroke chosen from a screenshot, exactly as a person would do it.

The target task is deliberately concrete — github.com → search → openclaw/openclaw → Releases → the release marked Latest — so success is unambiguous and can be graded automatically.

Agent loop

Observe, decide, act — then extract and verify.

  1. 01

    Observe

    Take a screenshot. In set-of-marks mode, a generic scan draws a numbered box over everything a user could click.

  2. 02

    Decide

    Gemini returns a Decision: what it sees, its reasoning, one action, and the result it expects. JSON-schema mode enforces the shape; Pydantic validates it again.

  3. 03

    Act

    Playwright clicks, types, presses, scrolls, or goes back at pixel coordinates. Invalid targets are fed back to the model as feedback.

  4. 04

    Extract and verify

    A separate call reads one to three screenshots into an Extraction, then every extracted string is checked against the page's visible text.

Design decisions

The details that made it reliable.

  • Grounding

    Two ways to turn intent into a pixel

    Set-of-marks lets the model pick a numbered box; coords mode ignores page structure entirely and asks for a normalised bounding box.

  • Guard rails

    Budgets and loop detection

    Step and wall-clock budgets, plus no-effect and repetition detection, stop the agent from clicking the same dead link forever.

  • Edge case

    “Latest” is not the newest

    On openclaw, a backport (v2026.8.34) was published after v2026.9.7, but v2026.9.7 carries the Latest badge. The extractor checks for the badge and sends the agent back if it is missing.

  • Verification

    Checks never supply values

    Verification only flags strings that are not visible on the page. That catches misread SHAs and hallucinations without letting the checker do the agent's job.

Output

Structured result plus a record of how it was obtained.

The run object reports status, steps, which models answered, extractor confidence, and verification checks. Every screenshot and decision is saved to a trace folder.

{
  "repository": "openclaw/openclaw",
  "latest_release": {
    "version": "v2026.9.7",
    "tag": "c074824",
    "author": "github-actions",
    "marked_latest": true
  },
  "run": {
    "status": "success",
    "steps": 6,
    "verification": { "version": true, "tag": true, "author": true }
  }
}

Testing

Offline tests for logic, live scenarios for behaviour.

25 offline tests cover the guard rails, parsing, and verification without a single API call. A scenario runner then drives the agent end to end against live GitHub and grades each answer against the GitHub REST API — used only to grade, never to help.

It runs on Gemini's free tier, so the model client retries and falls back across models when one is rate-limited.

View source on GitHub ↗Back to selected work