logoalt Hacker News

afruitpie • yesterday at 9:44 PM • 8 replies • view on HN

Native apps connecting to the OpenCode server is a great way to run sessions on remote hosts!

I wish Claude Code would adopt the same model. The desktop app deploys a separate engine that restarts and clobbers long-running sessions upon reconnect (Remote Control is their recommended solution but requires a Claude.ai account).

I’ve been vibe coding a native macOS Claude Code app that spawns a server that wraps Claude Code on remote hosts, but the UX and features are always lagging behind.


Replies

DanielHB • today at 9:56 AM

I am quite keen on this as well, I have been trying to move all my active development to happen inside a container, including the harnesses. This, of course, makes it very hard to run GUI harnesses. I prefer CLI, but it would be neat to be able to better isolate gui-based harnesses as well.

I have been using VSCodium with https://github.com/jeanp413/open-remote-ssh so (most of) the IDE also runs inside the container. I have been trying to get everything inside the container, including the projects I work on, the IDE, the harness, the dependencies, etc. Both for security and for portability so I can have the same setup in both my work and home computers.

One thing I haven't been able to do is limit the blast radius of is git, github ssh keys give blanket access to all repos tied to my profile and ATM I set up the github SSH key inside the container.

avereveard • yesterday at 9:58 PM

Claude code agents have a protocol that's usable for the same purpose it just listen locally but it's usable i have my own claw-like that has options for claude, codex, and pi (my subscription, wife subscription, and i got a yearly sub on glm when it was cheap)

dofm • yesterday at 11:01 PM

I was experimenting with Paseo for this.

The Opencode desktop app could already connect to a remote web session; does it now talk to the server directly?

ghboo0927 • today at 3:43 AM

Claude Code already has a server mode. The difference is that it connects through Anthropic rather than via a local socket.

➕ show 1 reply
awkii • today at 3:03 AM

I've developed something similar for personal use. A harness who's only job is to delegate to other harnesses (i.e: AntiGravity, Codex, Claude Code, Hermes) to create an opencode-web-like interface across multiple hosts.

For Claude Code, don't use remote-connections. Your best option is to look at how the closed-source VSCode plugin interfaces with Claude Code. The way it works is that it reads files directly. This API, although unofficial, is likely very stable, because an old VSCode extension still has to interact with new version of Claude Code.

If there's any interest in this sort of thing, maybe I'll open-source it. I would have to cleanup the slop though.

➕ show 1 reply
julesrms • today at 6:49 AM

[flagged]

janzong • today at 7:23 AM

[flagged]