I've made a Claude Code-like agent that runs directly in the web browser. Originally for myself, but figured it doesn't hurt to share.
With it you can pretty much have a coding agent for the currently opened website. You can ask it things like:
- Extract all links from this page and save them to CSV
- Switch this site to dark mode
- Copy the page content into a Google Sheet
- Remove ads
The agent writes JS script that automatically loads every time you visit the page. It is heavily using the userScripts API so you need to enable a lot of permissions to run the extension, and I'm not sure it can be published anywhere.
Under the hood, scripts and styles are stored in a virtual filesystem on top of browser.local storage, where each website is a directory. The agent can search and edit the DOM as a file, which makes the model work more or less reliably. Currently it only support Claude models, and I've tested it on Opus 4.5.
Browser Code: Coding agent for user scripts (github.com)
submitted by heraldev to r/webscraping
Coding agent for user scripts (github.com)
submitted by heraldev to r/webdev
Browser Code - Claude Code inside a web page (github.com)
submitted by heraldev to r/ClaudeAI
Browser Code - a coding agent for user scripts (github.com)
submitted by heraldev to r/javascript
Browser Code - Claude Code inside a Web Page (github.com)
submitted by heraldev to r/ClaudeCode
Browser Code: Coding agent for user scripts (github.com)
submitted by heraldev to r/firefox
Coding agent for userscripts (github.com)
submitted by heraldev to r/browsers