frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Cursor for Userscripts

https://github.com/chebykinn/browser-code
26•mifydev•4h ago
I’ve been experimenting with embedding an Claude Code/Cursor-style coding agent directly into the browser.

At a high level, the agent generates and maintains userscripts and CSS that are re-applied on page load. Rather than just editing DOM via JS in console the agent is treating the page, and the DOM as a file.

The models are often trained in RL sandboxes with full access to the filesystem and bash, so they are really good at using it. So to make the agent behave well, I've simulated this environment.

The whole state of a page and scripts is implemented as a virtual filesystem hacked on top of browser.local storage. URL is mapped to directories, and the agent starts inside this directory. It has the tools to read/edit files, grep around and a fake bash command that is just used for running scripts and executing JS code.

I've tested only with Opus 4.5 so far, and it works pretty reliably. The state of the file system can be synced to the real filesystem, although because Firefox doesn't support Filesystem API, you need to manually import the fs contents first.

This agent is really useful for extracting things to CSV, but it's also can be used for fun.

Demo: https://x.com/ichebykin/status/2015686974439608607

Comments

Esophagus4•2h ago
Awesome! So the agent has access to the DOM/JS running in the browser?

That’s one of my biggest headaches writing user scripts currently: I write the script in an IDE with Claude then copy it to the browser / manually test it in the browser, then copy the results back to Claude or tell it what went wrong.

Looking forward to trying this.

mifydev•1h ago
Yup, full access to DOM! Still needs a lot of optimizations, but the trick is that the agent reads the DOM as file, so it can grep parts of it naturally.
Zekio•58m ago
to my knowledge all the major userscript extensions, at least allow watching for file changes so you don't have to copy it manually, so you can just refresh the page to test
Akranazon•1h ago
I'm working on a version of this, https://www.quillmonkey.com/ so you got ahead of me. I imagine there are many versions of this coming. Interesting what set of tools you went with.
mifydev•1h ago
Oh that's cool! I've just used wxt to pack extension for firefox and chrome and just used typescript and plain anthropic api. My goal is to make this run fully inside the browser, without any helper binaries, like I've seen with others.
Akranazon•1h ago
Your project seems pretty close to where mine was a couple weeks ago, where I was focused on a BYOK solution (user-entered Anthropic API key). I saw there was another similar extension already released in the app store (RobotMonkey) which hooks up to their own backend service, and offers subscriptions. For my project, I think that's the right way to go.

It's funny what details about our designs are similar through accident. And what other things are completely different. I can show you my design potentially.

Representing websites in a virtual filesystem is creative and definitely makes it easier for the agent to collect information about the page. But I'm confused between the `Bash` and the `Edit` tools. It seems like one uses the chrome executeScript API, and the other updates the file system. But if it's just doing file writes, are those edits visible in the browser, and persistent across sessions?

mifydev•22m ago
Backend service is definitely way to go if you want to serve models for the user.

So Bash and Edit tools are a bit weird, Bash tool is essentially JS execution, and Edit tool automatically generates a script that performs the edits on the page. These tools are needed for the model to explore the page, whatever it does at the end it creates a separate script that will be applied on the page load.

Akranazon•51s ago
Oh neat. So the edit tool is like a convenient API/wrapper for it to eg add HTML to some element? I guess theoretically that can also be achieved through Bash as well, but the tool fits closer to an interface we know exiting agents are good at.
rahimnathwani•43m ago
It would be cool if you could make this work with Gemini Flash, with keys from AI Studio. I imagine that would expand the set of people who would try it out, because they could use 'free' keys and not worry about unexpected bills.
mifydev•21m ago
That's a good point, I'll add support for other models shortly.

Show HN: A MitM proxy to see what your LLM tools are sending

https://github.com/jmuncor/sherlock
47•jmuncor•4h ago•22 comments

Show HN: The HN Arcade

https://andrewgy8.github.io/hnarcade/
292•yuppiepuppie•12h ago•76 comments

Show HN: Cursor for Userscripts

https://github.com/chebykinn/browser-code
26•mifydev•4h ago•10 comments

Show HN: SHDL – A minimal hardware description language built from logic gates

https://github.com/rafa-rrayes/SHDL
25•rafa_rrayes•11h ago•10 comments

Show HN: Frame – Managing projects, tasks, and context for Claude Code

2•kozhan•36m ago•0 comments

Show HN: Pinecone Explorer – Desktop GUI for the Pinecone vector database

https://www.pinecone-explorer.com
7•arsentjev•22h ago•0 comments

Show HN: Dwm.tmux – a dwm-inspired window manager for tmux

https://github.com/saysjonathan/dwm.tmux
85•saysjonathan•4d ago•16 comments

Show HN: Lendy – Keep track of books you have lended

https://lendy.viraat.dev/
7•viraatdas•22h ago•3 comments

Show HN: I built a small browser engine from scratch in C++

https://github.com/beginner-jhj/mini_browser
117•crediblejhj•9h ago•38 comments

Show HN: Config manager for Claude Code (and others) – rules, MCPs, permissions

https://github.com/regression-io/coder-config
9•jtr101•7h ago•0 comments

Show HN: Sandbox Agent SDK – unified API for automating coding agents

https://github.com/rivet-dev/sandbox-agent
17•NathanFlurry•9h ago•0 comments

Show HN: WordRE, Wordle for Real Estate

https://reidsherman.com/wordre/
6•reidjs•18h ago•0 comments

Show HN: Cua-Bench – a benchmark for AI agents in GUI environments

https://github.com/trycua/cua
34•someguy101010•2d ago•6 comments

Show HN: Build Web Automations via Demonstration

https://www.notte.cc/launch-week-i/demonstrate-mode
27•ogandreakiro•1d ago•10 comments

Show HN: I'm building an AI-proof writing tool. How would you defeat it?

https://auth-auth.vercel.app/
7•callmeed•5h ago•8 comments

Show HN: Spar – Built a tool to help improve store conversion rates

https://spar.cuped.ai
2•6farer•1h ago•0 comments

Show HN: Extracting React apps from Figma Make's undocumented binary format

https://albertsikkema.com/ai/development/tools/reverse-engineering/2026/01/23/reverse-engineering...
50•albertsikkema•5d ago•13 comments

Show HN: Record and share your coding sessions with CodeMic

https://codemic.io/#
10•seansh•9h ago•2 comments

Show HN: LemonSlice – Upgrade your voice agents to real-time video

114•lcolucci•1d ago•123 comments

Show HN: pqry – A fast, lightweight CLI tool to diagnose Parquet datasets

https://github.com/symblic/pqry
4•setzeno•4h ago•0 comments

Show HN: One Human + One Agent = One Browser From Scratch in 20K LOC

https://emsh.cat/one-human-one-agent-one-browser/
305•embedding-shape•1d ago•146 comments

Show HN: Fuzzy Studio – Apply live effects to videos/camera

https://fuzzy.ulyssepence.com/
52•ulyssepence•1d ago•19 comments

Show HN: SharpAPI – Real-time sports odds API with +EV and arbitrage detection

https://sharpapi.io
3•MykLaz•4h ago•0 comments

Show HN: We Built the 1. EU-Sovereignty Audit for Websites

https://lightwaves.io/en/eu-audit/
101•cmkr•1d ago•78 comments

Show HN: I wrapped the Zorks with an LLM

https://infocom.tambo.co/
104•alecf•1d ago•57 comments

Show HN: Ghostly: The Ultimate Platform for Ghosting Candidates (Satire)

https://staticfile-25978.wasmer.app/
2•dw1014•5h ago•0 comments

Show HN: PNANA - A TUI Text Editor

https://github.com/Cyxuan0311/PNANA
7•Frameser•10h ago•7 comments

Show HN: A header-only C++20 compile-time assembler for x86/x64 instructions

https://github.com/mahmoudimus/static_asm
2•mahmoudimus•7h ago•0 comments

Show HN: Is this the perfect 404 page? [CSS only]

https://github.com/AntiKippi/errorpages
3•AntiKippi•8h ago•0 comments

Show HN: We built a type-safe Python ORM for RedisGraph/FalkorDB

5•hello-tmst•8h ago•3 comments