# Repository Briefing: uclanlp/OpenVLHarness
> Source: https://repoforai.com/repo/uclanlp/OpenVLHarness (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/uclanlp/OpenVLHarness
- **Official Docs / Website**: https://openvlharness.github.io/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (81/100 · Maintenance 35/35 · Adoption 15/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: GPU, API, CLI
- **Momentum**: 740 ★ total (+0 24h / +58 7d) · 68 forks
- **Topics**: `agent-harness`, `agent-skills`, `agentic-ai`, `ai-agents`, `coding-agent`, `deep-research`, `efficiency`, `grounded-reasoning`, `harness-engineering`, `harness-optimization`, `llm`, `llm-agents`
- **When to Use**: Best for: Research and engineering teams building visual QA, spatial reasoning, or multimodal search agents that need to reuse intermediate evidence, inspect execution traces, and compare model or tool configurations on benchmarks. Skip if: A single VLM call already meets your needs, or you require a turnkey offline system with predictable latency and no external services. A reduced local configuration can omit web search, but it does not preserve all nine capabilities.

## Overview
```text
### Architecture & Core Mechanics
OpenVLHarness is a training-free Python SDK that separates the model's decision loop from tool execution. The orchestrator uses native tool calling to request capabilities, inspect their observations, and decide whether to call another tool or answer. The capability layer turns backend outputs into annotated images, summaries, or compact numerical observations. Per-question memory keeps the underlying artifacts addressable; the same backbone writes Python in a separate context and executes it locally to compute over those artifacts. Memory resets for the next question.

Agent YAML separates `agent`, `memory`, `capabilities`, and `services`. The router exposes the selected tools at `/tools` and their model-facing schemas at `/llm-schema`. `openvlharness/services/model_registry.yaml` defines served model IDs, API protocols, prompts, and supported options. Qwen and Kimi presets use Chat Completions; GPT presets use Responses. The Python 3.10+ package declares `requests>=2.31` and `PyYAML>=6.0.1`; model servers, GPU workers, and benchmark dependencies are separate from the base client install.

### Key Capabilities & Differentiators
The nine capabilities cover visual grounding, OCR, depth estimation, camera trajectory, cropping, text search, reverse image search, webpage visits, and Python computation. SAM 3 grounding returns boxes, masks, and an annotated image; PaddleOCR-VL reads image text; Depth Anything 3 retains numerical depth arrays alongside visualizations and estimates camera poses from ordered images. Serper supplies search, Lens matches, and scraping. Presets use Qwen3-VL-8B-Instruct to summarize search results and extract relevant evidence from pages regardless of the main backbone.

Across 22 benchmarks spanning counting and grounding, multimodal search, general VQA and hallucination, and spatial understanding, the seven tabulated backbones gain 9.66–12.62 points over their tool-free baselines. Qwen3-VL-32B rises from 38.30 to 50.92, while Kimi K3 at max effort rises from 56.43 to 66.09. The Qwen3-VL figures average three runs. For integration tests, `evaluation_kit/` supports direct count and bounding-box metrics without an LLM judge, and the Python API returns a trajectory for inspecting intermediate evidence.

### Trade-offs & Limitations
Compared with a bare VLM call, the harness can verify an answer against retrieved evidence and reuse numerical artifacts instead of relying on the model to estimate from pixels. That comes with more model turns, backend calls, and failure points. In the 22-benchmark comparison, GPT-6 Luna at low reasoning effort with the harness averages 49.9 versus 48.0–48.8 for the base model, Codex, and Visual Sketchpad at max effort, using at most 26% of their model-token cost. That figure does not cover GPU workers, search API fees, image hosting, or end-to-end latency.

Sharing one Qwen3-VL-8B endpoint simplifies deployment, but auxiliary search requests queue behind agent turns on the same GPU; a second instance trades additional resources for throughput. When auxiliary summarization or extraction fails, search tools can fall back to raw provider content, so router uptime alone is not a measure of answer quality. For untrusted workloads, isolate locally executed model-generated Python with least privilege and do not assume it is sandboxed. Omit reverse image search when policy prohibits making query images reachable to the external provider.

### Hardware & Deployment Guide
Use Python 3.10+ and install from a source checkout. `pip install -e .` is sufficient for a client connecting to an existing router; `python -m pip install -e '.[qwen,server]'` adds Qwen tokenizer support and the router. Start it with `python -m openvlharness.services.server --config configs/agent/qwen3_8b_paper.yaml` and use the same config in `build_agent(...)`. For all nine capabilities, provision a main model endpoint, an auxiliary Qwen3-VL-8B endpoint that can be shared with the 8B orchestrator, three GPU perception services, a Serper key, and reachable image hosting for Lens queries.

For a remote-model setup without local GPU workers, keep only zoom and coding, and remove unused service entries as well as capability keys: config loading expands every remaining `${VARIABLE}` and validates every configured model. `/health` and `/backend-status` confirm router status, not end-to-end backend reachability, so exercise each enabled capability before rollout. Add `eval` for the `openvlharness-eval` CLI or `run_benchmark.py`, set `LMUData`, and tune `--num-proc` to backend capacity. Package metadata is `0.1.0` with no tagged GitHub release listed; the tree includes `toolsmith/`, a separate tool-generation framework built on the harness.
```

## Key Capabilities
```text
- Evidence model: Per-question memory keeps images, boxes, masks, depth arrays, and web references addressable across tool calls.
- Perception backends: SAM 3 handles grounding, PaddleOCR-VL handles OCR, and Depth Anything 3 serves both depth and camera trajectory.
- Model integration: Qwen and Kimi presets use Chat Completions; GPT presets use Responses. The registry defines served IDs, protocols, prompts, and compatible options.
- Search pipeline: Serper provides retrieval, Lens reverse image search, and scraping; presets use Qwen3-VL-8B-Instruct to summarize results and extract page evidence.
- Benchmark evidence: Seven tabulated model configurations gain 9.66–12.62 average points over their tool-free baselines across 22 benchmarks.
- Operational visibility: Python results expose the execution trajectory, and `/backend-status` tracks search fallbacks, query-image reachability, and Serper account failures.
```

## Quick Start / Clone
```bash
curl --fail http://127.0.0.1:8101/health
curl --fail http://127.0.0.1:8101/backend-status
```
