Dax Raad, a developer at OpenCode, rebuilt the project's browser automation tool using Rust. This initiative involved replacing functionalities previously handled by Playwright and Patchright, which were part of the Node.js implementation.
The transition to Rust resulted in a 97% reduction in memory usage for each OpenCode Browse connector, dropping from approximately 190 MB to 5.6 MB after several calls. The new Rust binary is 4.3 MB, a decrease from the previous Node version's 53 to 64 MB. The relay component also saw a reduction in idle memory from 353 MB (Node) to 6 MB (Rust).
This reduction in resource consumption is attributed to the custom Rust implementation replacing the previous Node.js dependencies.
The new Rust relay communicates with the Chromium extension via WebSockets and utilizes the Chrome DevTools Protocol for browser operations, agent sessions, recordings, and network captures. It also embeds QuickJS to execute agent-supplied JavaScript, removing the need for a Node.js runtime.
The rewrite focused on the core functionality needed by OpenCode Browse, which connects AI coding agents to a developer's browser through a Chromium extension and an MCP server.
Two rounds of testing with about 10 regression agents against a real Chrome browser were conducted. Browse achieved an 85% score on Stealth Bench v2. Some features, such as time zone and locale emulation, and the download tool, were not included in the rewrite. The Rust version retains existing issues like a busy-looping eval that cannot be stopped via the extension. Relay authentication, extension pairing, origin restrictions, and agents remain part of the tool.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Dax Raad rebuilt OpenCode's browser automation tool in Rust, replacing parts of Playwright and Patchright. This rewrite reduced the tool's memory footprint by approximately 97% and resulted in a smaller binary size.