
An open-source, reproducible benchmark harness for comparing how different models perform
browser tasks under a controlled agent and browser-tool setup.
Model comparison is the default protocol: vary the model while holding the provider route,
browser runtime and skill, task set, judge, limits, and concurrency fixed. Other
experimental dimensions are supported, but should be changed independently.
[简体中文](README.zh-CN.md)
[](https://github.com/citrolabs/ego-browser-benchmark-framework/releases/tag/v0.1.0-beta.1)
[](https://www.python.org/)
[](https://github.com/citrolabs/ego-browser-benchmark-framework/actions/workflows/ci.yml)
[](LICENSE)
[](https://github.com/citrolabs/ego-browser-benchmark-framework/stargazers)
[](https://github.com/citrolabs)
> [!WARNING]
> **Public beta.** Interfaces, configuration, dataset snapshots, and report schemas may
> change before 1.0. Results are intended for controlled comparisons, not as a universal
> leaderboard.
## Evaluation contract
| Layer | Included surface |
| --- | --- |
| Variable under test | Model selected with `--model` or `config.yaml` |
| Agent providers | `pi` and `codex` |
| Browser tool | `ego-browser` by default; additional tools can register through the browser-tool protocol |
| Task input | A bundled dataset, repeated `--task` arguments, or an Odysseys-shaped JSON file |
| Datasets | `real-world-bench`, `odysseys`, `bu-bench`, `stealth-bench`, `online-mind2web` |
| Judge | Pi-based, image-capable agent or single-turn judge |
| Interfaces | Three independent CLI stages and a local WebUI |
For a model comparison, keep the provider route, browser runtime and skill, dataset
snapshot, judge configuration, limits, and concurrency unchanged. Engine-level
observation and teardown are expressed through CDP semantics so every browser-tool
adapter presents the same control surface to the harness.
## Pipeline
```text
dataset or ad-hoc tasks
│
▼
run_eval.py · Stage A · agent execution + browser evidence
│
▼
run_judge.py · Stage B · verdicts and rubric results
│
▼
run_report.py · Stage C · aggregate report + session HTML
```
The stages share a run directory but remain independently callable:
- Stage A writes task records, run metadata, and deduplicated screenshots.
- Stage B reads the agent session and screenshots, then writes judge artifacts and a
summary. A negative verdict does not trigger another Stage A attempt.
- Stage C renders existing artifacts without changing the evaluation result.
The agent's session JSONL is the source for duration, turns, tokens, cost, tool usage, and
final output. `tasks.jsonl` stores task state and artifact references rather than copying
those derived metrics.
## Requirements
- Python 3.13 or newer and [uv](https://docs.astral.sh/uv/)
- Node.js 22.13 or newer, pnpm, and npm for the WebUI and local benchmark sites
- `pi` on `PATH` when Stage A or the Judge uses the Pi provider:
[pi-coding-agent](https://www.npmjs.com/package/@earendil-works/pi-coding-agent)
- `fd` for Pi's `find` tool
- For the default `ego-browser` adapter: macOS, the ego-lite app, and the
`ego-browser` CLI
## Quick start
### 1. Clone and configure an agent
```bash
git clone https://github.com/citrolabs/ego-browser-benchmark-framework.git
cd ego-browser-benchmark-framework
# Pi is the default Stage A provider and the built-in Judge provider.
cp agent-home/.pi/agent/auth.json.example agent-home/.pi/agent/auth.json
# Add this when Codex runs Stage A.
cp agent-home/.codex/auth.json.example agent-home/.codex/auth.json
```
Set the provider and model in `config.yaml`, or override them per run with
`--provider` and `--model`.
### 2. Start the WebUI
Install and finish onboarding in [ego lite](https://lite.ego.app/) first. It prepares the
`ego-browser` CLI, Skill, and latest release SDK. Then start the console:
```bash
make serve
```
Before a run, use **ego-browser version** in New run to inspect or switch the active
release. Use `scripts/bootstrap.sh` only for a local SDK build or to pin a release from
the command line before opening the WebUI.
### 3. Run a smoke task
```bash
uv run python run_eval.py \
--task "Open https://example.com and report the page title."
```
The command prints the generated run ID and writes artifacts under `runs/