The Harness

全部包

browser

Search and browse the web in a background browser

harness install browser
最新版本
0.5.2
Harness 版本
>=0.82,<2
平台
windows, macos, linux
依赖
computer ^0.8

提供

Skill
browser
Benchmark
browser

说明

The browser package gives the agent a background browser: an isolated headless Google Chrome in which it searches the web, opens pages and reads them, without your screen, mouse, keyboard or Chrome profile.

Install

harness install browser

The app installs it the first time a conversation needs it. It installs Playwright into the worker's environment but does not download a browser: Google Chrome must be installed on this computer. It runs on Windows, macOS and Linux.

To record tiled browser windows (below), install ffmpeg as well.

Use

Every new conversation asks where it works: choose Background browser (beside the model in the app, in the opening choice of the terminal chat, --workspace browser on the command line). To stop the question, set session.environment to browser or last under /settings.

Then type the task, for example: "Find the opening hours of the city library and the nearest bus stop."

The agent searches, opens URLs and reads the visible page text. The model reads the page text and links with read_page() and its controls with elements(), and sees the page when a program looks (look()). Activity → Background browser in the app previews the page without changing its viewport. Each new conversation starts with fresh cookies; follow-up messages in the same conversation keep its page. Use Stop and Continue to pause and resume; there is no foreground window to take over (Interrupt and take over).

A program the agent writes looks like this:

search_web("city library opening hours")
page = read_page()
print(page["title"], page["url"])
print(page["text"][:2000])
for link in page["links"][:10]:
    print(link["text"], link["url"])
navigate("https://example.org/library/hours")
page = read_page(offset=0, limit=12000)
if page["next_offset"]:
    more = read_page(offset=page["next_offset"])

Several at once

Background browsers run side by side. Each conversation works in a workspace of its own: a worker with its own context (cookies, storage and pages kept apart) in a headless Chrome the background browsers share. Settings → Computer sets how many conversations work at once and how many headless Chromes they share. Beyond that number, a new conversation ends the one that has waited longest for you, or waits until one ends; Restart stops the workspaces no conversation uses.

For a suite, an experiment with bench = "browser" runs its seeds in N such workspaces at once with --workspaces N:

harness run my-browser-tasks.toml --workspaces 4

Tiled windows and screen recording

To watch or record the background browsers, set computer.browser_windows to tiled and choose the screen region with computer.browser_area. Turn on computer.record_screen to record each conversation's tiled screen as screen.mkv beside its trace. Each frame records its wall-clock time. Use harness replay to turn the conversation and recording into a video. Replay a run

On Linux, browser_display opens the tiled windows on another X display, such as a virtual screen, instead of this computer's own.

What it provides

Settings

Set in the app under Settings → Computer or in the terminal chat under /settings.

Key Default
mode browser browser starts new conversations in a background browser
workspaces 4 conversations of any kind that work at once
chromes 1 headless Chromes the background browsers share; more use more memory, and a Chrome that crashes takes only its own conversations with it
browser_locale system the language the browser asks websites for: a tag such as en-US, or system
browser_windows off off (headless) or tiled (one window per conversation or agent, tiled on one screen)
browser_area 0,0,1920,1080 tiled: x,y,width,height of the part of the screen they are tiled in
browser_display empty tiled: the X display the windows open on; empty is this computer's own screen
record_screen off on with tiled windows: record the screen for each conversation, for harness replay (needs ffmpeg)
max_side 1920 screenshots are scaled to at most this many pixels on the long side; the viewport is at most 1440 pixels wide
step_limit 300 browser input steps a conversation may take

Limits and known issues

版本

版本Harness 版本依赖sha256发布日期
0.5.2 >=0.82,<2 computer ^0.8 503d993beb91 2026-11-13 下载
0.5.1 >=0.80,<2 computer ^0.7 b53ff8388984 2026-11-10 下载
0.4.2 >=0.65,<2 computer ^0.5 e806d1dc4665 2026-11-03 下载
0.2.0 >=0.58,<2 computer ^0.2 dd08d6d43c34 2026-11-03 下载

更新日志

0.5.2

0.5.1

0.5.0

0.4.3

0.4.2

0.4.1

0.4.0

0.3.4

0.3.3

0.3.2

0.3.1

0.3.0

0.2.0

0.1.0