Claude agent autonomously builds Rust browser SWB
Start here
Developer senko says he spent about seven weeks letting a Claude agent autonomously build SWB, a web browser written from scratch in Rust, and now uses it daily to read websites. The agent chose its own libraries and wrote its own JavaScript interpreter, with no reuse of Chromium, Firefox, Servo or V8; the codebase is roughly 400k lines of Rust plus 500k lines of tests. The project owner sets goals and checks results while the agent designs, writes and maintains all the code. The browser's CSS, layout, painting, page loading, JavaScript engine, DOM and UI are its own, while HTTP, TLS, HTML tokenizing, image and font decoding, rasterization and windowing come from general-purpose libraries. Eight target pages, including Hacker News, a Wikipedia article and the Ars Technica and BBC front pages, match Chromium, and its JavaScript engine passes 41,842 tests of its test262 subset; workers, tabs, media playback, WebGL and CSS anchor positioning are not done yet. The experiment ran on the spare capacity of senko's $100-per-month Claude Max subscription, stopping each week at the plan's limit; he estimates the same work would have cost $7,000–$10,000 in API tokens. SWB is developed and tested on Linux only, JavaScript is off by default, and the code is on GitHub under the MIT license.
Generated from reports · updated 12 d ago
Report timeline
Follow the reports to see the event from different sides.
- Hacker News · AIswb: an experimental Rust web browser written and maintained by a Claude AI agent
swb is an experimental web browser written from scratch in Rust in which a Claude AI agent designs, writes and maintains all of the code while the project owner sets goals and checks results. The browser's own CSS, style, layout, painting, page loading, JavaScript engine, DOM and UI live in the repository, while HTTP, TLS, HTML tokenizing, image and font decoding, rasterization and windowing come from general-purpose libraries. Eight target pages, including Hacker News, a Wikipedia article, the Ars Technica and BBC front pages and an OpenStreetMap map, match Chromium, and its own JavaScript engine passes 41,842 tests of its test262 subset; workers, window.open and tabs, media playback, WebGL and CSS anchor positioning are not done yet.
- Hacker News · AIPicksDeveloper lets a Claude agent build a Rust web browser from scratch
A developer has spent about seven weeks letting a Claude agent autonomously build SWB, a web browser written from scratch in Rust, and now uses it daily for reading websites. The agent chose its own libraries, wrote its own JavaScript interpreter and could not reuse Chromium, Firefox, Servo or V8; the codebase is roughly 400k lines of Rust plus 500k lines of tests, and the author says it has cost nothing beyond his Claude Max subscription, which he estimates would have been $7,000–$10,000 in API tokens.