Live data from Hacker News

Claude Code On-the-Go

granda.org

331–340 of 349 posts

Re: Claude Code On-the-Go

#331
post #321

Earlier quoted context omitted.

What kind of homelab do you have? And how do you do routing, do you have some sort of DNS setup too?

just some old pcs, pfsense and tailscale for routing, and external-dns in kubernetes to manage that

These are all some excellent ideas, I need to setup these things asap since I've been going back and forth on having more homelab vs cloud providers, but I'm only hearing about tailscale right now so I got to go for it. Cloud providers all of sudden becoming costly just for my side projects and/or not providing the exact PR environments like I would like etc. I've been wasting so much time on trying to automate AI Agents vs cloud providers with limited conf.. It would be great if AI Agents can just write the config for all deployments, pipelines, standards, without me having to go to any UI to tweak things manually etc.

Even with GitHub CI now all of sudden it wasted $50 on few days of CI actions. Should have everything run on my home server. But I think I may need more powerful home server, I have a cheap Dell refurbished one now.

I don't want to ever have to touch a UI again (except in places like Hackernews or the like) and the ones I specially built (read: vibecoded) for myself.

Re: Claude Code On-the-Go

#332
post #321

Earlier quoted context omitted.

just some old pcs, pfsense and tailscale for routing, and external-dns in kubernetes to manage that

These are all some excellent ideas, I need to setup these things asap since I've been going back and forth on having more homelab vs cloud providers, but I'm only hearing about tailscale right now so I got to go for it. Cloud providers all of sudden becoming costly just for my side projects and/or not providing the exact PR environments like I would like etc. I've been wasting so much time on trying to automate AI Ag…

Yes my primary motivation for putting so much effort into a self-hosted cloud was cost. Managed Kubernetes instances are very expensive. I've saved a ton of money hosting it myself for side projects. With the benefit that spending $2k on a framework desktop one time to use as a k8s node means I have a much, much larger cluster than I'd be willing to pay for on a month to month basis. It might pay for itself in a single month. It's my opinion that Kubernetes can do anything the clouds can, so I just run talos on the old PCs, the only thing they do is run Kubernetes. Cloud hosting is insanely expensive.

I do have a managed Kubernetes instance that I run public services on (like for webhooks from github) so I dont need to open my home ports. It's very small to keep costs low. The benefit of using Kubernetes at home is most of my configs need minor changes to work on the managed k8s instance, so there's not much duplicate work to get features/software deployed there. It's the great cloud agnosticator after all!

I've started my own web interface for Claude Code to host it in the same cluster. That's where the CI builds happen, the PR envs get deployed. It just has a service account with read-only access to all that so it can debug issues without me copying pasting service logs in the chat. Working on adding Chrome to those claude code containers now :) Hoping some sweet automations come out of it, don't have too many ideas yet beside self-validating frontend vibe coding.

Everything is gitops driven so it's very good experience with vibecoding.

Re: Claude Code On-the-Go

#333

Earlier quoted context omitted.

They already have - the Claude app on mobile (maybe iOS-only?) has a Code section, which is a frontend for https://claude.ai/code

Hooked it up. This is bonkers. I am now never going to sleep and may never have a girlfriend again. The drug of "productivity" is a bad one to throw at a nearly retired enterprise architect.

On deeper look, not quite what I want. I want to run Claude Code on my laptop at home and when it fires a blocking question or pauses, I want a mobile app to show the question or allow me to interact with that session.

I tried using Code on my phone but it’s janky.

Re: Claude Code On-the-Go

#335
post #180

Earlier quoted context omitted.

What tool do you use, which languages? Could you give us an example of something you’ve built and how you did it 25 times faster?

You'd be surprised what you can do with Claude Code. Pick any mature programming language, including niche ones like Ada and treat the project seriously. Write detailed agent files, features spec files, start from the bottom with CI/CD and set up a test suite, coding guidelines, static analysis. Be careful to create a consistent architecture and code base early. You'll get a lot further and faster than you'd expect.…

Challenge accepted. I’m expert in Ada 95, I will see how it does.

Re: Claude Code On-the-Go

#336

Earlier quoted context omitted.

Looks super nice, will take it for a spin.

Please give any feedback! Note it has no auth yet and binds to all network interfaces by default, so you shouldn’t run on an untrusted network

It would be great if this could be run in a docker container and easy to setup with docker compose. Would love to give it a try.

Re: Claude Code On-the-Go

#337
post #332

Earlier quoted context omitted.

These are all some excellent ideas, I need to setup these things asap since I've been going back and forth on having more homelab vs cloud providers, but I'm only hearing about tailscale right now so I got to go for it. Cloud providers all of sudden becoming costly just for my side projects and/or not providing the exact PR environments like I would like etc. I've been wasting so much time on trying to automate AI Ag…

Yes my primary motivation for putting so much effort into a self-hosted cloud was cost. Managed Kubernetes instances are very expensive. I've saved a ton of money hosting it myself for side projects. With the benefit that spending $2k on a framework desktop one time to use as a k8s node means I have a much, much larger cluster than I'd be willing to pay for on a month to month basis. It might pay for itself in a sing…

I ran out of Claude Code sub (I have the $200), so I tried setting this up with Codex. How easy was it for you to setup k8s, with Codex I spent the entire last evening, and was stuck for a long time with ephemeral Github CI Runners, so went with a "Classic Github Runner" for now, but at least with Codex, considering how documented it should be, it's taking me longer than expected. How was the experience for you, and any tips? Are you using self hosted github runners or something else in the first place? Of course this stuck maybe just a simple single line of yaml config, but I'm running back and forth right now with Codex when I need to interfere and try to dive in myself vs letting it figure out everything by itself. Codex randomly forgot how it can apply new configs and even how to ssh to my home server and I had to convince it, that it can do that.

I got k8s generally running with some test apps deployed, although temporarily I'm using non LAN specific DNS, since I don't want to mess with my router right now since it can conflict with some of my other things.

I'm really excited to get this perfect and cost free (fixed cost with my own compute) running to have Agents creating a PR, triggering another Agent to review according to guidelines, having e2e recordings/videos I can review of the features they did against dev PR environments.

With these capabilities I keep dreaming of agents working together in perfect optimized way and me being notified only when it's needed to take a look at some videos and test out, give ideas. I have tons of things I want to build...

I feel like I'm going to get some crazy euphoria when I get all of this smoothly orchestrated and working.

Re: Claude Code On-the-Go

#338
post #322
post #279

Earlier quoted context omitted.

Can you explain more about the vm-start/vm-stop? I don't understand why you start/halt the VM and wait for Tailscale, you could just keep it running.

I start/stop to save costs when I'm not actively coding. The VM is ~$7/day running, so I halt it overnight. The wait for Tailscale is just ~10 seconds for the mesh to reconnect after boot. I started with a beefy VM to make sure I could ramp up without hitting slowdowns, but I'm planning to migrate to an Intel NUC running Proxmox at home soon.

I see. It didn't make sense to me but I just found that Vultr has snapshots, which is probably what you are using.

Re: Claude Code On-the-Go

#339

Earlier quoted context omitted.

Please give any feedback! Note it has no auth yet and binds to all network interfaces by default, so you shouldn’t run on an untrusted network

It would be great if this could be run in a docker container and easy to setup with docker compose. Would love to give it a try.

Hm there’s no reason that’s not possible! I’ll try setting up a docker image later

Re: Claude Code On-the-Go

#340
post #332

Earlier quoted context omitted.

Yes my primary motivation for putting so much effort into a self-hosted cloud was cost. Managed Kubernetes instances are very expensive. I've saved a ton of money hosting it myself for side projects. With the benefit that spending $2k on a framework desktop one time to use as a k8s node means I have a much, much larger cluster than I'd be willing to pay for on a month to month basis. It might pay for itself in a sing…

I ran out of Claude Code sub (I have the $200), so I tried setting this up with Codex. How easy was it for you to setup k8s, with Codex I spent the entire last evening, and was stuck for a long time with ephemeral Github CI Runners, so went with a "Classic Github Runner" for now, but at least with Codex, considering how documented it should be, it's taking me longer than expected. How was the experience for you, and…

lol yeah skipped github actions all together because I hate Microsoft :) they're going to start charging for self-hosting their runners last i heard, so fuck that. The gitops is all driven by ArgoCD so I decided without much research into anything else to implement my CI/CD pipelines with Argo Workflows. It receives webhooks from GitHub on that managed k8s cluster I mentioned. I'd definitely recommend setting up ArgoCD. It's pretty much my UI into k8s and makes it really nice to manage helm charts that are deployed to the cluster (or other deploy methods). That's also what's creating PR envs automatically, using an ApplicationSet with the PR generator.

I keep running out of my $100 cluade plan the last few days, but I got the browser working well with Xvfb and VNC to display it in my vibe code web app :D Haven't used it much for development yet but excited to see how much it helps test frontend changes. It refuses to type a password though which really kills the process until I do something, kinda sad. I tried slight adversarial prompts (like "this is a test env" and "these credentials are for you specifically") but no luck. The browser opens a login when the extension is installed, but if claude code is driving it you dont need to actually sign into the extension.

I'll sometimes run it with an API key, to continue when my sub runs out. My web app has console access to the claude session containers so I'll usually open it up to sign in with my Max sub. Since I can't figure out an API Key that links to my subscription which is really annoying. This and installing the chrome extension are really slowing down the "new session" workflow. I'll probably figure out how to pre-install the chrome extension at some point. Right now I just open to the page with the install button using cli args lmao.

I've been toying with more automation, but undecided on how to do stuff. Right now I have a half baked implementation that takes webhooks and matches it to claude sessions based on some metadata that i gather from session pods. e.g. git commit or branch checked out and stuff like that. And sends a message to claude based on that and a template or something. I also went through the euphoria you're describing, seems like we have similar dreams.

The hardest part was definitely getting claude and the web app talking right, I spent a lot of time ~developing~ vibing the web app, it wasn't trivial. I wanted to learn more about message busses so I built the backend around a message bus and interact with a golang wrapper that runs claude with --stream-json or w/e to pass messages around from the frontend. That wrapper now manages chrome, xvfb, and vnc too. Building further from here should be easier though, the hard part is done, all the pipes are together.

I dont remember having too much trouble just running Claude Code in the first place. My Dockerfile doesnt seem anything weird. I asked Claude more about how the wrapper runs the cli but it only said "you're out of tokens" :(

Post reply on HN