argos-eye

Pixel-precise visual grounding for Claude Code.

Python License Claude Code

`argos-eye` tells Claude where to point. Not "somewhere around here." Not a plausible-sounding pixel it invented. A verified coordinate, with an audit trail, from a single skill folder. ## The wall every visual agent hits Ask a vision-language model where something is in an image and it will, almost always, hallucinate. GPT-4o scores **0.8%** on ScreenSpot-Pro one-shot. Anthropic's own docs flag it: *"spatial reasoning is limited."* This is the silent bug in every screenshot-driven agent shipping today. Research settled it years ago. Multi-step zoom-and-refine (R-VLM, UI-Zoomer, CropVLM, Zoom Consistency) closes most of the gap. Most of it stayed in papers. `argos-eye` is that pattern, in one skill folder. ## Features - **Zoom-and-refine loop** — iterative crop-reread until the model agrees with itself. - **Auditable output** — every intermediate crop and decision is persisted next to the result. - **Refuses to guess** — when a target cannot be located, returns a null bbox with a reason. Never a fabricated coordinate. - **One skill folder** — no daemon, no server, no plugin manifest. - **Zero training** — works on top of whatever VLM Claude Code is configured with. ## Installation Install from source (PyPI release is planned): ```sh git clone https://github.com/xhae123/argos-eye cd argos-eye pip install -e . argos-eye init ``` `argos-eye init` installs the skill at `~/.claude/skills/argos-eye/` (or the path specified by `CLAUDE_SKILLS_DIR`) and verifies that Claude Code can see it. Once PyPI publishing is set up, `pip install argos-eye` will become the one-liner equivalent. ## Usage In any Claude Code session: ``` /argos-eye image=./screen.png target="Sign in button" ``` The skill runs the loop, returns a coordinate bundle, and writes a full audit trail to `./.argos-eye//`. Full signature: ``` /argos-eye image= target= [options] ``` | Option | Type | Default | Description | |---|---|---|---| | `image` | path | *required* | Path to the source image. | | `target` | string | *required* | Natural-language description of the element to locate. | | `max_iter` | int | `3` | Maximum zoom-refine iterations. | | `zoom` | float | `3.0` | Scale factor applied during cropping (3×–5× works best in practice). | | `evidence_dir` | path | `./.argos-eye` | Where to persist crops and decisions. | | `min_confidence` | float | `0.5` | Below this, the call reports "not found" rather than a point. | ## How It Works ```mermaid %%{init: {'theme':'base', 'themeVariables': {'fontFamily':'ui-sans-serif, system-ui, -apple-system, sans-serif'}}}%% flowchart LR image([image]) --> propose[propose bbox] propose --> crop[crop] crop --> reinspect[re-inspect] reinspect --> conv{{converged?}} conv -- "no · up to N" --> crop conv -- "yes" --> remap[remap] remap --> output([coordinate]) classDef io fill:#0f172a,stroke:#0f172a,color:#ffffff classDef step fill:#eef2ff,stroke:#6366f1,color:#1e1b4b,stroke-width:1.2px classDef decide fill:#fef3c7,stroke:#f59e0b,color:#1e1b4b,stroke-width:1.2px class image,output io class propose,crop,reinspect,remap step class conv decide ``` 1. **Propose** — the model is asked where the target is in the full image and returns a rough bounding box. 2. **Crop** — the region is extracted and optionally zoomed. 3. **Re-inspect** — the model is asked the same question using only the crop. It either confirms, tightens, or rejects the bbox. 4. **Converge** — when two consecutive proposals agree within tolerance (*zoom consistency*), the loop exits. 5. **Remap** — the final crop-relative bbox is translated back to the original image's coordinate system. 6. **Persist** — inputs, crops, intermediate proposals, and the final answer are written to `evidence_dir`. The loop is bounded. If `max_iter` is reached without convergence, the skill returns its best guess and flags low confidence. ## Output Format Every call returns a single JSON object: ```json { "bbox": [120, 340, 260, 388], "center": [190, 364], "confidence": 0.92, "iterations": 2, "converged": true, "evidence": ".argos-eye/2026-04-21T13-57-03Z/" } ``` If the target cannot be located: ```json { "bbox": null, "center": null, "confidence": 0.18, "iterations": 3, "converged": false, "evidence": ".argos-eye/2026-04-21T13-57-03Z/", "reason": "target description did not match any region" } ``` The `evidence/` folder contains: ``` .argos-eye// ├── input.png original image ├── target.txt target description as submitted ├── iter-0-bbox.json proposals per iteration ├── iter-0-crop.png ├── iter-1-bbox.json ├── iter-1-crop.png └── result.json final output ``` ## Scope, by design `argos-eye` answers one question: *where in this image is the thing the user described?* Anything else — capturing the screenshot, clicking the coordinate, orchestrating a workflow — belongs to the caller. This is the contract, not a limitation. | In scope | Out of scope | |---|---| | Image + description → coordinate | Taking screenshots | | Evidence persistence | Clicking / typing / driving a UI | | Confidence reporting | Orchestrating multi-step workflows | | Coordinate remapping | Fine-tuning the underlying VLM | ## Limitations - Targets smaller than roughly **20 pixels** in either dimension are unreliable; text-inside-text cases especially. - Screens above **4K** may require more iterations; accuracy gains typically flatten after five. - Non-English UI labels work but are not systematically evaluated. - The skill is bounded by the configured VLM's reasoning — it does not train, fine-tune, or ensemble models. - Three iterations means three image calls; cost and latency track the underlying model. This is not a magic trick. It is a loop that refuses to guess. ## FAQ **Does it capture screenshots?** No. You provide the image; `argos-eye` locates within it. **Can it click the button it finds?** No. It returns coordinates. What you do with them is your choice — pair it with `pyautogui`, `playwright`, or anything else. **Does it require internet?** Only whatever the underlying VLM requires. **Does it work on non-UI images?** Yes. The loop makes no assumption that the image is a screenshot. It has been tested on dashboards, photos, and documents. **Is the evidence folder safe to delete?** Yes. It is write-only from the skill's perspective. **Why not just use OmniParser?** OmniParser pre-parses every UI element in an image and lets you pick by label. Different scope: OmniParser wants to understand the whole screen; argos-eye wants to find one thing in any image — screenshot or not — with fewer moving parts. ## Development ```sh git clone https://github.com/xhae123/argos-eye cd argos-eye pip install -e ".[dev]" pytest ``` Before opening a pull request: 1. Open an issue describing the change. 2. Keep the scope aligned with the [Scope, by design](#scope-by-design) table — feature requests that expand beyond *image → coordinate* will be closed. 3. Include a test and, where relevant, an updated example under `examples/`. ## Citation ```bibtex @software{argos_eye, author = {Kim, Tom}, title = {argos-eye: Pixel-precise visual grounding for Claude Code}, year = {2026}, url = {https://github.com/xhae123/argos-eye} } ``` ## References The zoom-and-refine pattern is well established in GUI grounding research. `argos-eye` is a practical implementation, not a novel technique. - **R-VLM** — Region-Aware Vision Language Model for Precise GUI Grounding. ACL Findings 2025. [arXiv:2507.05673](https://arxiv.org/abs/2507.05673) - **UI-Zoomer** — Uncertainty-Driven Adaptive Zoom-In for GUI Grounding. [arXiv:2604.14113](https://arxiv.org/abs/2604.14113) - **Zoom Consistency** — A Free Confidence Signal in Multi-Step Visual Grounding Pipelines. [arXiv:2604.15376](https://arxiv.org/abs/2604.15376) - **CropVLM** — Learning to Zoom for Fine-Grained Vision-Language Perception. [arXiv:2511.19820](https://arxiv.org/abs/2511.19820) - **OmniParser** — Pure Vision Based GUI Agent. Microsoft. [arXiv:2408.00203](https://arxiv.org/abs/2408.00203) - **GUI-Actor** — Coordinate-Free Visual Grounding for GUI Agents. [arXiv:2506.03143](https://arxiv.org/abs/2506.03143) ## License Released under the [MIT License](LICENSE).