|
Download docs/running.md from mirasim-ai/devbrowse-bench: direct link, hf CLI and curl.
- Browser
- Download file 3.34 kB
-
https://huggingface.co/datasets/mirasim-ai/devbrowse-bench/resolve/main/docs/running.md
- Command line
-
hf download hf://datasets/mirasim-ai/devbrowse-bench/docs/running.md
-
curl -L -o running.md https://huggingface.co/datasets/mirasim-ai/devbrowse-bench/resolve/main/docs/running.md
3.34 kB
| # Running pairs | |
| Judging, self-tests and audits need only Node, Python and Chrome. Running agents needs the setup below; it drives the real ChatGPT desktop app, so the Mac should not be used for anything else meanwhile. | |
| ## Requirements | |
| - macOS with the ChatGPT desktop app, signed in, with Codex and its bundled Browser plugin (the in-app browser). | |
| - Codex settings used in v1 (`~/.codex/config.toml`, top level): the model and effort, and permissions that let the agent write its workspace and reach the local app without stopping for approval: | |
| ```toml | |
| model = "gpt-6.1-sol" | |
| model_reasoning_effort = "medium" | |
| approval_policy = "never" | |
| sandbox_mode = "workspace-write" | |
| [sandbox_workspace_write] | |
| network_access = true | |
| ``` | |
| - Mirasim Computer Use (`npm i @mirasim/computer-use@0.1.0-rc.5` reproduces v1; newer versions are listed on [npm](https://www.npmjs.com/package/@mirasim/computer-use?activeTab=versions)), added to Codex as an MCP server named `cu`. v1 used this setup (a managed Chrome in an offscreen window, browser only): | |
| ```toml | |
| [mcp_servers.cu] | |
| command = "node" | |
| args = ["/path/to/node_modules/@mirasim/computer-use/dist/entries/cli.js", "mcp"] | |
| [mcp_servers.cu.env] | |
| COMPUTER_USE_PLATFORMS = "browser" | |
| COMPUTER_USE_WINDOW = "offscreen" | |
| COMPUTER_USE_HOME = "/path/to/cu-home" | |
| [mcp_servers.cu.tools.computer_repl] | |
| approval_mode = "approve" | |
| [mcp_servers.cu.tools.computer_repl_reset] | |
| approval_mode = "approve" | |
| ``` | |
| The runner adds `omit_tools_from = ["deferred"]` under `[mcp_servers.cu]` for the Mirasim side and removes it afterwards (lines marked `# devbrowse-bench`). The version recorded in results is read from the `package.json` next to that `cli.js`. | |
| - The prompt sender also uses Mirasim Computer Use, through its macOS driver: set `MIRASIM_CU_CLI` to a `cli.js` (the same build is fine) and give the terminal Accessibility permission in System Settings. | |
| - `MIRASIM_CU_HOME`: the same path as `COMPUTER_USE_HOME` above, so leftover tabs in the managed Chrome are closed between pairs. | |
| - For real projects: Corepack (bundled with Node), and several GB of disk for the clones. `REAL_PROJECTS_NODE_BIN` can point to a Node `bin` directory to use for installs and dev servers (v1 used Node 24.19.0); `REAL_PROJECTS_DIR` moves the clones. | |
| ## Commands | |
| ```sh | |
| npx tsx harness/run-pair.ts --task due-dates --rep 1 # one Team Tasks pair | |
| npx tsx harness/run-real-pair.ts --task lexical-9752 --rep 1 # one real-project pair | |
| bash scripts/batch.sh "1 2 3" due-dates lexical-9752 # several, skipping pairs already done, rerunning failed sends | |
| bash scripts/formal-v1.sh # the whole v1 schedule | |
| python3 -I analysis/export_results.py --runs runs --out my-runs.jsonl | |
| python3 -I analysis/report.py my-runs.jsonl | |
| ``` | |
| Results go to `runs/<side>/<task>/r<run>.json`, next to the working copy the agent left (`r<run>/`) and the prompt it got. They include the path of the Codex session record; `analysis/export_results.py` turns them into shareable rows without conversation text, final messages, code or local paths. | |
| Runs are slow: a pair takes from 1 to about 25 minutes, the v1 schedule about 22 hours. Codex may ask for approval to run something outside its sandbox; a pair waiting more than a minute for approval is discarded. | |