browseruse-agent-bench
CLAUDE.md19 starsChanged 7 months agoApache-2.0View on GitHub
These are the single source of truth for coding conventions, layer boundaries, import/runtime rules, error handling, and testing in this repo. They apply to every coding agent. Read them first. @AGENTS.md @docs_4_codeagent/coding-style.md @docs_4_codeagent/architecture-boundaries.md @docs_4_codeagent/imports-runtime-config.md @docs_4_codeagent/error-handling-testing.md The sections below are bootstrap context specific to Claude Code sessions — architecture orientation and command cheatsheet. They do not override the imports above. Agent SDKs ship as mutually exclusive extras (declared in pyproject.toml under [tool.uv] conflicts): browser-use, skyvern, openai-cua pin incompatible Playwright versions. Install…
- Reads credentials
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Run a benchmark: uv run scripts/run.py --agent <agent> --data <bench> --split <split> --mode first_n --count <n> (equivalent: bubench run …
- Very specific: line 53
Use from browseruse_bench.utils import REPO_ROOT.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Team-wide agent rules
These are the single source of truth for coding conventions, layer boundaries, import/runtime rules, error handling, and testing in this repo. They apply to every coding agent. Read them first.
@AGENTS.md @docs_4_codeagent/coding-style.md @docs_4_codeagent/architecture-boundaries.md @docs_4_codeagent/imports-runtime-config.md @docs_4_codeagent/error-handling-testing.md
The sections below are bootstrap context specific to Claude Code sessions — architecture orientation and command cheatsheet. They do not override the imports above.
Commands
- Run a benchmark:
uv run scripts/run.py --agent <agent> --data <bench> --split <split> --mode first_n --count <n>(equivalent:bubench run ...). - Evaluate results:
uv run scripts/eval.py --agent <agent> --data <bench> --split <split> --model-id <id>(equivalent:bubench eval ...). - Run then evaluate in one call:
uv run scripts/run_and_eval.py --agent <agent> --data <bench> --mode <mode>(equivalent:bubench run-eval ...). Forwards run flags to the run stage, then derives the run's model_id and chainsevalwith an explicit--model-id(so passthrough models line up).--skip-evalstops after the run; eval is skipped if the run hard-fails. - Submit a LexBench job (not local run):
bubench submit .... - Leaderboard / viz:
bubench leaderboard,bubench server,bubench viz --watch. - Discover available benchmarks/splits, agents, and browser backends:
bubench list(--jsonfor machine-readable output). - All tests:
uv run pytest tests/. - Single test:
uv run pytest tests/browseruse_bench/test_task.py -vor... -k <pattern>. - Integration tests (marked
integration, require external tools / API keys) live undertests/integration/.
Install gotcha
Agent SDKs ship as mutually exclusive extras (declared in pyproject.toml under [tool.uv] conflicts): browser-use, skyvern, openai-cua pin incompatible Playwright versions. Install each into a separate venv when running multiple agents.
- Dev:
uv sync --extra dev - Agent:
uv sync --extra browser-use(orskyvern/openai-cua)
High-level architecture
The repo orchestrates browser agents (browser-use, skyvern, agent-tars, claude-code, codex, cursor, openclaw, openai-cua, deepbrowse) against benchmarks (LexBench-Browser, Online-Mind2Web, BrowseComp) on browser backends (Chrome-Local, lexmount, browser-use-cloud, agentbay, cdp).
- CLI (browseruse_bench/cli/) — argparse subcommands (
run,eval,submit,leaderboard,server,service,skills,viz,login). init.py preloads.envfromREPO_ROOTand readsconfig.yaml. The top-levelscripts/*.pyfiles are thin shims — edit the CLI module, not the script. - Agents (browseruse_bench/agents/) — base.py (
BaseAgentABC), one file per agent, plus registry.py. Agents self-register via@register_agenton a uniquename. Do not import agent SDKs at registry level. - Runner (browseruse_bench/runner/agent_runner.py) — subprocess entry point invoked as
uv run --extra <agent> browseruse_bench/runner/agent_runner.py .... This is how per-agent venv isolation is enforced at runtime. - Browsers (browseruse_bench/browsers/) — backend abstraction parallel to agents. registry.py uses function-local imports in factories to lazy-load providers — intentional, and the one place the "no imports inside functions" rule is relaxed (see imports-runtime-config.md).
- Eval (browseruse_bench/eval/) —
BaseEvaluatorABC + per-benchmark subpackages (online_mind2web/,browse_comp/,lexbench_browser/). registry.py lazy-binds factories likebrowsers/registry.py. Datasets live under browseruse_bench/data/ (one directory per benchmark, withdata_info.json+ tasks files). Controlled via--data-source {local|huggingface}andHF_ENDPOINT. - Visualization & Leaderboard (browseruse_bench/visualization/, browseruse_bench/leaderboard/) — static HTML generators plus a FastAPI server.
Experiment outputs land in experiments/{benchmark}/{split}/{agent}/{model_id}/{timestamp}/. Each run directory is self-contained (run.log, runtime.log, task_brief.log, run_manifest.json). Script-level logs go to output/logs/{run,eval,leaderboard}/.
Configuration
.envholds only secrets (OPENAI_API_KEY,LEXMOUNT_API_KEY, etc.) and is preloaded fromREPO_ROOT.config.yaml(copied fromconfig.example.yaml, git-ignored) holds everything else: agents, models (with$ENV_VARexpansion), browser selection, defaults, eval model. Each agent section usesactive_modelto pick whichmodels.<name>entry is in force.- Use
from browseruse_bench.utils import REPO_ROOT; do not compute paths viaPath(__file__).parents[N]or mutatesys.path.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

