← Back to Blog
4 min read

Claude Code in My Pocket

InfrastructureAIReliability

I build and run things that don't keep office hours—a card shop, a fleet of content sites, an IT function for a healthcare company. The work shows up whenever it shows up. For a long time the tool I lean on hardest didn't play along. Claude Code lives in a terminal, and a terminal lived on one machine, at one desk, in one room.

So I moved it into my pocket. I can pick up a session from my phone now—on a train, in a waiting room, anywhere with cell signal. But the part that actually changed how I work isn't that I can type from a phone. It's that the session stopped caring whether I was connected at all.

The Desk Was the Bottleneck

Claude Code is a terminal tool, and a powerful one—but traditionally it's tied to wherever that terminal happens to be running. Stepping away from the desk meant one of two bad options. Leave the active session behind and hope it's still useful when I get back. Or lose the context mid-task and start it over later from scratch.

Those look like two problems. They're the same one wearing different clothes: the work was chained to a place. And a thing you can only do at your desk is a thing you don't do on the half of the day you're not at it.

Three Boring Tools, One Workflow

There's nothing clever in how I fixed it. I stacked three tools that each do exactly one thing, none of them invented for this.

Tailscale gives me a secure mesh network back to my home machine from anywhere, a zero-config VPN with WireGuard encryption underneath. tmux keeps the terminal session alive on that machine whether or not anyone is attached to it. Terminus is a capable iOS SSH client with real keyboard shortcuts, so the phone is a usable window instead of a toy one.

Tailscale to reach the machine, tmux to hold the session, an SSH client to look at it. Total setup was under thirty minutes, and it's asked nothing of me since.

Persistence Is the Real Feature

Here's the thing people miss when they hear "Claude Code on my phone." The session doesn't live on the phone. The phone is just a window onto a session that lives on the home machine, inside tmux—and tmux doesn't flinch when the connection drops.

The cell signal dies in a tunnel. I close the app to take a call. I put the phone down, walk to my desk, and open the same session on my laptop. Every time, it's exactly where I left it. Nothing was lost, because the connection was never holding anything worth losing in the first place.

That's the move. The fragile part of this setup is the network—phones lose signal, apps get closed, connections reset. So I made sure the fragile part holds no state that matters. The session is the durable thing; the connection to it is disposable. I can sever it a hundred times a day and the work doesn't notice.

Boring on Purpose

This isn't a trick I came up with for Claude Code. It's twenty years of infrastructure pointed at my own workflow. The rule I kept relearning running IT is that the layer most likely to fail is the one that must never hold anything you can't afford to lose. Networks drop. Devices die. You design so that when they do, the thing underneath is still standing.

A real test of any setup isn't how it behaves when everything works—anything behaves then. It's how it behaves the moment the connection cuts out. Mine behaves like nothing happened, because I built it assuming the connection would, constantly.

The point was never to code from my phone. That's a party trick, and a cramped one. The point was to stop losing my place. The desk is optional now, and so is the laptop, and so is a stable signal. The work sits where I left it and waits, and I get to stop pretending my attention keeps the same hours a desk does.