Build a phone web terminal for Claude Code sessions on a Mac

A blogger had Claude Code build TmuxFlex, a phone browser front end for tmux sessions on a Mac, without writing code; a clean rebuild took five requests and about 39 minutes.

Done withClaude Code· Nov 23, 2026

What they did

The author, who writes as HomoFuturus, wanted to drive about twenty Claude Code sessions on a MacBook from an iPhone. Starting in August, they asked Claude Code for a phone-friendly web view of the Mac's tmux sessions, served only on localhost and reached through Tailscale. They never wrote code: they tried each build on the phone, listed what bothered them as numbered points, sometimes with a screenshot, and sent them back. Features added this way included Korean input typed straight into the terminal, a folder picker, a session list that survives a tmux restart, up to four panes on wide screens and a shortcut bar with Esc, arrows, PgUp, F-keys and a one-tap /usage key. For the post they rebuilt it in a clean macOS VM, repeating the original requests in order.

How it went

The original took about two months and over 50 commits, and the author uses it daily, including on the commute. The VM rebuild reached most of the same skeleton in five requests and about 39 minutes, with steps timed between 4 and 13 minutes. Claude added a password and localhost-only serving without being asked and tested at iPhone size in Chrome, but said it had not tried a real phone. Real-device bugs still needed the human: a stray gray selection block took over two weeks to fix, solved only once the author described the exact sequence that triggered it.

Worth knowing

An emulated phone in Chrome misses real keyboard behaviour, so the final test has to be on the device. The author credits part of the rebuild's speed to already knowing the path. Keeping requests narrow, such as saving only the session list rather than full state, kept the agent from overbuilding.

Try it

With Claude Code· 4 parts to fill in

I want to use the coding agent sessions running in tmux on [this Mac or home server] from a phone browser. Build a small web app in [this folder] that lists the tmux sessions, attaches to one, and has a phone layout where the line I type on stays above the keyboard. Serve it on 127.0.0.1 only with a password; I will reach it through [Tailscale or my VPN]. Add a shortcut row for keys a phone lacks: [Esc, Shift+Tab, arrows, PgUp, PgDn]. Test it at phone size, tell me plainly what you could not test on a real device, and stop after the first working version so I can try it on my phone and send numbered fixes.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related