One Mac mini, seven projects, one tmux session and about 80 lines of shell script. Survived a reboot, a kill -9 and a dead tmux server. Did not survive my attempt to automate the login.
Two weeks ago, seven Claude Code sessions were running on my Mac mini in seven Terminal tabs. Each one belonged to a project: Captain Drawdown, my Remy skill (my Google Docs skill for Claude), a home infrastructure project, a modelling project for enhanced weathering and some more. I talk to all of them from my phone through Remote Control in the Claude app.
It worked great, until the Mac restarted. Then all seven tabs were gone, and I had to sit down in front of the machine (or connect via screen sharing), open seven tabs, cd into seven folders and type the same command seven times.
I call the fix “Terminal Window Wrangling”: every agent gets a window in tmux, every window runs an endless loop, and macOS itself makes sure the windows exist. No framework, no orchestration layer, no Docker. Shell, tmux and one LaunchAgent.
Continue reading “Terminal Window Wrangling: How I Keep Seven Claude Code Agents Alive on a Mac Mini”



You must be logged in to post a comment.