# Hoverclick Hoverclick is a research codebase for adding **test-time hover evidence** and **visual attention guidance (VAH)** to GUI agents. Instead of committing every predicted click immediately, the controller can move the pointer to a candidate, observe tooltip/highlight/menu feedback, and then accept, reject, or reselect the target. The repository also includes post-action visual deltas, reusable affordance memory, semantic recovery, and VAH coordinate refinement. [中文说明](README.zh-CN.md) | [Research results](docs/RESEARCH_SUMMARY.md) | [Claim/evidence matrix](docs/EXPERIMENT_EVIDENCE.md) | [Structured Top-K result](docs/STRUCTURED_TOPK_RESULT_2026-08-04.md) | [Experiment report](docs/experiment_report_site/index.html) | [Architecture](docs/ARCHITECTURE.md) | [OSWorld setup](docs/OSWORLD.md) ![Baseline and VAH OSWorld case](docs/assets/osworld_case_vs_code_testpy_baseline_vs_vah.png) ## What is included - `qwen3vl_hover_osworld/agents/`: Qwen3-VL OSWorld adapters, hover verification, candidate reselection, semantic planning, and recovery. - `hover_explore/`: persistent hover/action-delta records and similar-screen affordance retrieval. - `experiments/hoverprobe_minival/`: deterministic browser fixture for testing the mechanism without OSWorld or a model endpoint. - `negative_vah_hoverprobe/`: Negative-VAH prototype that suppresses rejected visual regions on the next proposal. - `qwen3vl_hover_osworld/servers/`: VAH action/refinement services. - `scripts/`: reporting, smoke checks, and release-tree auditing. Large benchmark outputs, model weights, caches, VM images, vendored frameworks, private infrastructure configuration, and task-specialized score-max variants are intentionally excluded. ## Quick start ```bash python -m venv .venv source .venv/bin/activate pip install -e '.[dev]' python experiments/hoverprobe_minival/runner.py --mode diagnose python experiments/hoverprobe_minival/runner.py --mode all --repeats 1 --no-save-screenshots pytest ``` The MiniVal uses a local dense-toolbar HTML fixture and headless Chromium. It checks the physical loop below; it is a mechanism test, not an OSWorld score: ```text candidate click -> pointer hover -> before/after screenshots -> local visual evidence -> accept or reselect ``` To use the agent runners, clone OSWorld separately and configure the paths and model endpoint: ```bash cp .env.example .env export OSWORLD_DIR=/path/to/OSWorld export OPENAI_BASE_URL=http://127.0.0.1:8001/v1 export OPENAI_API_KEY=EMPTY python qwen3vl_hover_osworld/runners/run_qwen3vl_osworld.py \ --version paper-b5-real-hover-v2 \ --domain gimp \ --test_all_meta_path "$OSWORLD_DIR/evaluation_examples/test_nogdrive.json" \ --result_dir ./results ``` See [docs/OSWORLD.md](docs/OSWORLD.md) for services, multi-worker runs, and the VAH variants. ## Main agent variants | Variant | Purpose | |---|---| | `official-qwen3vl-nohover` | Qwen3-VL baseline | | `paper-b4-blind-reselect` | Static-evidence control with the B5 retry budget | | `paper-b5-real-hover-v2` | Real hover, verification, rejection, and reselection | | `hover-reject-candidates-delta-multicrop` | Hover plus multi-scale reselection and post-action deltas | | `hover-strict-semantic-recovery` | Generic one-step semantic recovery after no progress | | `hover-knowledge-retrieval` | Persistent similar-screen affordance evidence | | `vah-direct` | VAH server proposes the complete action | | `vah-refine` | Base agent plans; VAH refines pointer coordinates | | `negative-vah` | Rejected regions become soft negative attention guidance | | `structured-topk-hover` | Frozen Top-1 plus structured Top-3 and candidate-bound hover evidence | | `structured-topk-matched-static` | Same Top-3 compute and wait budget without cursor hover | The authoritative list is available from Python: ```python from qwen3vl_hover_osworld.agents import available_versions, build_agent print("\n".join(available_versions())) agent = build_agent("paper-b5-real-hover-v2", model="qwen3-vl-8b-instruct") ``` ## Result snapshot - In three audited safe key-turn states, structured proposals increased target center recall from `1/3` for raw detector boxes to `3/3`; all targets remained in the final Top-3. - In VS Code Replace All, aligned hover changed the paired task score from matched-static `0` to hover `1` in `3/3` independent clean-overlay repeats. - In Writer Subscript, hover selected the correct local control but both arms received task score `0`; this is mechanism evidence, not a rescue. - The Font Color case had incomplete Docker transfer/retry state and is excluded rather than counted as failure. - These are retrospective development cases, not a fresh benchmark cohort. The result supports one stable case-level rescue and does not yet support an overall OSWorld improvement claim. See the [full result and next gate](docs/STRUCTURED_TOPK_RESULT_2026-08-04.md) and the [machine-readable summary](docs/evidence/structured_topk_keyturn3_summary.json). - Earlier Dense-80, 9-case, and plan-aware runs remain historical debugging artifacts. They are not used as primary evidence because environment state, task carry-over, and login-page interference were not controlled uniformly. ## Scope and status This is research software, not a hardened computer-control product. Agents can click, type, and modify the active desktop; run them only in disposable VMs and inspect generated actions and traces. No license is granted by this repository.