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•3h 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•1h 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•46m 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•16m 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•51m 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•49m 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•25m 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?

rahimnathwani•1m 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.

Somebody used spoofed ADSB signals to raster the meme of JD Vance

https://alecmuffett.com/article/143548
120•wubin•1h ago•29 comments

Trinity large: An open 400B sparse MoE model

https://www.arcee.ai/blog/trinity-large
49•linolevan•22h ago•12 comments

Airfoil (2024)

https://ciechanow.ski/airfoil/
320•brk•8h ago•47 comments

Mousefood – Build embedded terminal UIs for microcontrollers

https://github.com/ratatui/mousefood
126•orhunp_•5h ago•35 comments

Did a celebrated researcher obscure a baby's poisoning?

https://www.newyorker.com/magazine/2026/02/02/did-a-celebrated-researcher-obscure-a-fatal-poisoning
39•littlexsparkee•22h ago•4 comments

Oban, the job processing framework from Elixir, has come to Python

https://www.dimamik.com/posts/oban_py/
153•dimamik•6h ago•68 comments

Android's desktop interface leaks

https://9to5google.com/2026/01/27/android-desktop-leak/
115•thunderbong•19h ago•204 comments

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

https://github.com/jmuncor/sherlock
35•jmuncor•4h ago•15 comments

Computer History Museum Launches Digital Portal to Its Collection

https://computerhistory.org/press-releases/computer-history-museum-launches-digital-portal-to-its...
74•ChrisArchitect•5h ago•17 comments

Apple to Soon Take Up to 30% Cut from All Patreon Creators in iOS App

https://www.macrumors.com/2026/01/28/patreon-apple-tax/
101•pier25•1h ago•52 comments

The Five Levels: From spicy autocomplete to the dark factory

https://www.danshapiro.com/blog/2026/01/the-five-levels-from-spicy-autocomplete-to-the-software-f...
30•benwerd•5d ago•25 comments

Jellyfin LLM/"AI" Development Policy

https://jellyfin.org/docs/general/contributing/llm-policies/
85•mmoogle•1h ago•41 comments

How to turn 'sfo-jfk' into a suitable photo

https://www.approachwithalacrity.com/how-to-turn-sfo-jfk-into-a-beautiful-photo/
16•bblcla•3h ago•15 comments

Hellenistic War-Elephants and the Use of Alcohol Before Battle

https://www.cambridge.org/core/journals/classical-quarterly/article/hellenistic-warelephants-and-...
5•perihelions•5d ago•3 comments

Show HN: The HN Arcade

https://andrewgy8.github.io/hnarcade/
288•yuppiepuppie•12h ago•72 comments

Show HN: Cursor for Userscripts

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

Microsoft forced me to switch to Linux

https://www.himthe.dev/blog/microsoft-to-linux
1471•bobsterlobster•8h ago•1155 comments

Spinning around: Please don't – Common problems with spin locks

https://www.siliceum.com/en/blog/post/spinning-around/
60•bdash•6h ago•25 comments

How London became the rest of the world’s startup capital

https://www.economist.com/britain/2026/01/26/how-london-became-the-rest-of-the-worlds-startup-cap...
73•ellieh•22h ago•61 comments

In a genre where spoilers are devastating, how do we talk about puzzle games?

https://thinkygames.com/features/in-a-genre-where-information-is-sacred-and-spoilers-are-devastat...
19•tobr•5d ago•8 comments

Amazon One palm authentication discontinued

https://amazonone.aws.com/help
50•KerryJones•6h ago•108 comments

Native Linux VST plugin directory

https://linuxmusic.rocks
62•Aldipower•3h ago•18 comments

I overengineered a spinning top [video]

https://www.youtube.com/watch?v=Wp5NodfvvF4
105•bane•5d ago•29 comments

Amazon cuts 16k jobs

https://www.reuters.com/legal/litigation/amazon-cuts-16000-jobs-globally-broader-restructuring-20...
428•DGAP•7h ago•590 comments

3D-Printed Mathematical Lampshades

https://hessammehr.github.io/blog/posts/2025-12-24-maths-to-lampshade.html
43•hessammehr•4d ago•17 comments

Bf-Tree: modern read-write-optimized concurrent larger-than-memory range index

https://github.com/microsoft/bf-tree
5•SchwKatze•54m ago•0 comments

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

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

Kyber (YC W23) Is Hiring a Staff Engineer

https://www.ycombinator.com/companies/kyber/jobs/GPJkv5v-staff-engineer-tech-lead
1•asontha•10h ago

Tuning Semantic Search on JFMM.net – Joint Fleet Maintenance Manual

https://carlkolon.com/2026/01/27/jfmm-semantic-search/
10•cckolon•7h ago•0 comments

I have written gemma3 inference in pure C

https://github.com/robitec97/gemma3.c
45•robitec97•2d ago•17 comments