Claude Code On-the-Go

https://news.ycombinator.com/rss Hits: 23
Summary

I run six Claude Code agents in parallel from my phone. No laptop, no desktop鈥攋ust Termius on iOS and a cloud VM.The Setupflowchart LR A[Phone] -->|Termius + mosh| B[Tailscale VPN] B --> C[Vultr VM] C --> D[Claude Code] D -->|PreToolUse hook| E[Poke webhook] E -->|Push notification| A The loop is: kick off a task, pocket the phone, get notified when Claude needs input. Async development from anywhere.InfrastructureA Vultr VM in Silicon Valley:SpecValueInstancevhf-8c-32gbCost$0.29/hr (~$7/day when running)AccessTailscale-only (no public SSH)I pay only when working. Two scripts handle lifecycle:vm-start # Start VM, wait for Tailscale, connect via mosh vm-stop # Halt VM I also have an iOS Shortcut that calls the Vultr API directly鈥攕tart the VM from my phone before I even open Termius.The VM鈥檚 public IP has no SSH listener. All access goes through Tailscale鈥檚 private network. Defense in depth: cloud firewall blocks everything except Tailscale coordination, local nftables as backup, fail2ban for good measure.Mobile TerminalTermius handles SSH and mosh on iOS/Android. Mosh is the key鈥攊t survives network transitions. Switch from WiFi to cellular, walk through a dead zone, put the phone to sleep. The connection persists.One gotcha: mosh doesn鈥檛 forward SSH agent. For git operations that need GitHub auth, I use regular SSH inside tmux.Session PersistenceThe shell auto-attaches to tmux on login. Close Termius, reopen hours later, everything鈥檚 still there.# In .zshrc if [[ -z "$TMUX" ]]; then tmux attach -t main 2>/dev/null || tmux new -s main fi Multiple Claude agents run in parallel windows. C-a c for new window, C-a n to cycle. Works well on a phone keyboard.Push NotificationsThis is what makes mobile development practical. Without notifications, you鈥檇 constantly check the terminal. With them, you can walk away.The hook in ~/.claude/settings.json:{ "hooks": { "PreToolUse": [{ "matcher": "AskUserQuestion", "hooks": [{ "type": "command", "command": "~/.claude/hooks/poke-notif...

First seen: 2026-01-04 21:21

Last seen: 2026-01-05 19:25