Live data from Hacker News

Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

github.com

171–180 of 420 posts

Re: Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

#171
I've seen this concept a few times recently and am interested.

However, what's the benefit over just using the "Claude Code for Web" feature built into the Claude Code mobile app?

It clones your repo into a VM which has a bunch of dev tools installed, you can install additional packages, set env vars, and then prompt it remotely. The sessions can be continued from the web and desktop apps, and it can even be "teleported" into the terminal app when back at a laptop/desktop.

Would be great to understand what the differences / advantages of OP approach are.

Re: Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

#172

Earlier quoted context omitted.

In the last 5 years I pretty much fully migrated to my laptop being a terminal for other machines. I more use it like a local machine in HPC: web browsing, word processing, scripting. Anything serious is done remotely. But I also live in the terminal and so realistically what's the difference? 99% of the time the result is that I get to use a "big" computer without having to carry it around. FWIW, I'm not a big fan o…

Same setup as mine, I have an OpenVPN server running in my router, and my main PC has wake-on-lan and a KVM as a backup to turn it on and off. I have an old used Dell Latitude that I use as a pseudo thin client. I ssh into my PC, and everything just works. I really like this setup because I only have one environment, so everything is there, and I don't have to install anything in the laptop

  > I really like this setup because I only have one environment, so everything is there, and I don't have to install anything in the laptop
Yeah that's one of my favorite parts. Same about living in the terminal. I can be effective anywhere nearly instantly. I carry everything around in my dotfiles and keep it small (keep the .git folder small and don't add anything except text files)[0].

On that note, one thing I highly recommend to people is to add some visual clues to tell you which machine you're on. I use starship and have a few indicators but I also have some PS1 exports that I've used in the past or use in new tmp instances (I HIGHLY recommend also doing this for when you're using the root account). It can get confusing when you have different tabs on different machines and it is easy to mistake which one you're on.

[0] I also recommend keeping notes there if you like writing in markdown. Files are so tiny that it's worth having them. It's benefited me more times than I can count.

Re: Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

#173
post #103

Earlier quoted context omitted.

Well the beauty is the logic lives on the server. The client is just a client. If it disconnects you just reload the page. It can work just fine in the background because it’s not running on your phone. Just like you can refresh the ChatGPT website, but OpenCode lives on your pc at home, not OpenAI servers.

yes but I've never seen a terminal interface embedded in a browser that is as good as a native terminal app interface, and blink shell has been well worth the upfront cost to me (way better than Termius, which was suggested in the writeup)

Is it easy to move the text cursor around in the text input in blink shell?

Re: Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

#174

Earlier quoted context omitted.

How do I use a laptop while standing on a train each day? It sounds like a laptop is sufficient for you, but I suspect (based on myself and other responses in this thread) that a laptop is not always viable for many people; this tutorial appears targeted toward those people. I’ve actually considered a neck/shoulder support for a laptop in the past but decided against it because it’d be cumbersome and make me a theft…

dont try to code while standing on a train. one of many antpatterns a wise engineer should learn to avoid, as part of polishing our craft. also: dont juggle chainsaws, etc ;-)

I wouldn’t want to code but I could easily be working on plans with Claude.

Re: Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

#175

So this is the 4th+ article I've seen on using a VPN to vibe code on your phone. Would an email interface to Claude code work better? - Email Claude to start the coding - Claude emails you with any thing it needs acked on. - you reply back to emails telling it what to do. - maybe Claude can run your program and send back screen shots. seems easier then getting a vpn working. What is the downside to using email?

E-mail is not secure (sent in plain text)

Re: Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

#176
post #64

Earlier quoted context omitted.

Why not use a browser? OpenCode has a webUI, you can simply host that on your machine at home and VPN to it. https://opencode.ai/docs/server/ (sadly no screenshots, but its a pretty good GUI, looks like their desktop app)

From that page: > The opencode serve command runs a headless HTTP server that exposes an OpenAPI endpoint… Unless I missed it, there’s no mention of a web UI?

`opencode web` runs the web ui. It's very good.

Re: Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

#177
I recommend https://happy.engineering/ . It is very easy to set up. I can have an instance in a container which contains my repository and lots of packages/binaries necessary for the work. I can then use the different binaries to run commands in the container. I was able to easily do `ls -la` in the container and email that to myself, all done from my phone. You can also connect it to applescript and whatnot in order to send sms messages, or you can connect to whatsapp. I was able to make it extract the top 5 headlines on hacker news, get the top ideas being discussed in the comments for each submission, and send all of that into my Apple Reminders for me to read on my phone.

No VPN needed.

Re: Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

#178
My flow is GitHub issues+ GitHub Copilot+ Web Deployments from GitHub actions.

I can just ask GitHub to fix something from the mobile app, and then set it to build on PR merge. It works most of the time, but you'd have to be absolutely wacky to do it in production or with any code you actually care about

Re: Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

#179
I love this! This concept on steroids is one of the main reasons I made https://github.com/knowsuchagency/vibora after trying both happy.engineering and Vibe Kanban for remote coding. There's the claude mobile app, too, but I want to run Claude on my own hardware in a terminal
Post reply on HN