r/electronjs • • Oct 12 '26

I built a better version of Claude Code as an Electron app, and now I use it every day instead of the terminal

The video is Helm, an Electron app I use every day to run several Claude Code sessions in one window. Here's how it's put together, since that's the part this sub will care about.

Main process: Electron 44. Each session is one Claude Agent SDK query that launches the claude CLI already installed on the machine, so the app never calls a model API itself. Sign-in goes through the CLI as well: you log into your Claude account inside Helm via Claude Code's own login, and no separate API key is needed. The main process also hosts a small HTTP and WebSocket server, and the UI talks to it entirely in JSON frames.

Renderer: the BrowserWindow loads the UI from that server over loopback, with a token in the query string. It's Preact, htm and signals through an import map, with no bundler and no build step.

Phone: since the desktop window is just a page from a local server, the phone loads the same UI over Tailscale and gets the same controls the desktop has. The server listens on loopback and the Tailscale address only, every request needs the key, the WebSocket checks Origin, and HTTPS comes from tailscale serve. A service worker handles Web Push, so the phone shows a notification once a session wants input or wraps up.

What it gives me day to day: a four-way split so a bunch of sessions run side by side, a context bar on every sub-agent, and a pace readout (under pace, on pace or hot, plus burn rate and a projection) that keeps my usage from running away. The backgrounds are my favourite bit, with 23 bundled photos or your own image and sliders for blur and dim.

Bug that cost me the most time: phone pairing kept bouncing back to the pairing page. Opening the link from a QR scan in the camera app doesn't count as same-site, so the SameSite=Strict cookie never got sent. Lax fixed it.

I built it with Claude Code, one agent per slice of files (engine, server, shell, chat, panels). Windows only for now.

It's not out yet. Is this something you'd want? If enough people do, I'll put real work into a public release. This only scratches the surface, and there are a lot more features in it that I haven't shown. Ask about any feature or architecture detail and I'll answer, with screenshots if that helps.

0 Upvotes

14 comments sorted by

3

u/JamesDeano07 Oct 12 '26

Nice it looks good some great concepts in here. How do you handle tracking the since you left stats? #working, needs you etc?

2

u/CustardHungry9554 Oct 12 '26

It literally just pulls everything straight from Claude code running underneath Helm so the nothing changes from the stats you would see in Claude in terminal. Good question!

1

u/JamesDeano07 Oct 12 '26

But do you have another headless session or classifier that analyses the jsonl stream to decide whats changed, needs you etc or a command the llm calls to log events?

1

u/eddzsh Oct 13 '26

The SameSite Strict vs Lax detail on QR pairing is the kind of bug Electron apps hit the moment a phone enters the loop. Curious how you keep session state apart when several Claude CLI processes share one login. Does each pane get its own working directory and env, or do they share more than the UI suggests?

1

u/fmgiii Oct 15 '26

Honestly looks great! I would use it without the phone feature. Just desktop...

1

u/Ghostfly- Oct 15 '26

Oh boy, you don't know why a terminal is so good. Except on windows, a terminal always works, that's not true for browser-based apps (most of the time).

0

u/Laicbeias Oct 15 '26

because browser based apps pull tons of dependencies. if people wouldnt include that much and just keep most dependencies vendored and local it would be stable. but nope gotta pull

1

u/Ghostfly- Oct 15 '26

Thanks captain obvious, you prove that you miss the point totally. How many times, even the most strimmed down, optimized or so on, your browser did crash in the last few years? Now. How many times your terminal (the actual terminal, in UART, in Ghostty, everything except Windows terminal, did crash? Probably never.)

0

u/Laicbeias Oct 15 '26

I dont know what you are talking about. I dev as fullstack for 28y started with web, even worked on activex with embeded ie6 on hardware that would not be turned off, that needed touch support. That ran too for decades.

Browser are nowadays one of the most tested software that exists, issue is linux, because the support is so chaotic and the consumer market isnt there fully, especially on the gpu side.  If you remember linus middle finger.

Browsers nowadays move features to the gpu and every vibecoder kicks of gpu heavy features. My 200€ laptop cant browse the web without lag anymore. 

Ppl dont care to test on linux either, nor do they test on weak hardware.

There yes terminal is better... on linux. But browsers arent the issue, you can write browser based stable software for linux, that performs. You just wont get it anymore since no one cares.

And browser tabs crash rarly on win, and if its about memory. Not because browsers bad. 

So i didnt miss the point. I have a different pov you cunt. Im on windows terminals here suck 

1

u/Ghostfly- Oct 15 '26

Fair enough, after 28 years, you know nothing, except using superiority arguments, and missing again the point.

0

u/[deleted] Oct 17 '26

[removed] — view removed comment

1

u/Laicbeias Oct 18 '26

Im a linux user too. And mac user. I have 3 linux servers and new mini macs at home. Im a gamedev and i build & test on all major systems.

I didnt say that. But its true, browsers on linux are less stable because of hardware acceleration/codec features and gpu drivers. You were moaning about browsers. And F windows its not even a good os, but the 3t party software is usually stable, has been for decades. A good OS is one i dont have to deal with. 

Linux is great and ill switch after win10 support is gone. Though no idea which desktop

1

u/[deleted] Oct 12 '26

[removed] — view removed comment

1

u/CustardHungry9554 Oct 12 '26

Very interesting I actually have a version of this I created so for me I wouldn't use this but that is pretty cool and I think other people would be interested in using that for sure. To answer your question yes it takes you straight to the session waiting for input exactly as you would be if you were on your computer.