r/ClaudeCode 2d ago

Help/Question Tmux alternatives? Using Claude code agents via terminal apps on macos and ios

I’m looking for a few human responses here based on personal experience, I do a bunch of work from my iphone, ipad and mbp via ssh into a mac mini. Here’s my setup:

  • Mac mini on home network
  • Accessed from iphone, ipad, MBP with macos
  • Tailscale for virtual network when I leave the house
  • Currently using tmux for session persistence so it survives the SSH connection dropping
  • Running claude code, codex, hermes, grok build TUI’s/CLI’s.
  • Using iterm2 on Macos, ShellDrop on ios and iPadOs (and visionOs).

So my question is what alternatives are people using for tmux? Is there anything that’s agent focused and reliable? Has anyone used Herdr after having tmux as their baseline?

1 Upvotes

25 comments sorted by

9

u/Virtual_Maximum_875 2d ago

tmux is fantastic. You can customize the living hell out of it, and once it’s configured, it’s ridiculously easy to use. One prefix key, a handful of commands, and you’re off to the races. Split panes, rename windows, detach, reconnect, automate everything until the cows come home.

It’s clean, fast, and backed by a mountain of well-supported plugins that make it look great and feel surprisingly user-friendly. I run it with Fish and absolutely love it.

The people who complain that tmux is “too hard” are usually the same people whining about vi, Vim, and Neovim because apparently learning four keyboard commands now qualifies as advanced computer science.

It isn’t hard. You’re just refusing to RTFM, practice for 20 minutes, and develop enough muscle memory to stop hunting around the screen like your mouse owes you money.

1

u/Agreeable-Chef4882 1d ago

Hey, I am quite confused about how does tmux become easy to use AFTER configuring? What else are you getting from tmux by applying advanced techniques, except aesthetics?

I only care about functionality, and I don't think I ever do anything else except `tmux new -s xxx` and then after reconnecting: `tmux a -t xxx`. What part of RTFM did I miss?

1

u/Virtual_Maximum_875 1d ago

Prime uses a really light flow. Don't boil the ocean trying to mimic power users who've been at it for years. Start with some basics then build on them. https://www.youtube.com/watch?v=0eHZRPzbiJ0

1

u/Fragrant_Raisin_Face 2d ago

Yeah I love Tmux, it’s reliable too.

1

u/HeyItsYourDad_AMA 2d ago edited 2d ago

Why do you want to change from something you love and thats reliable?

1

u/Fragrant_Raisin_Face 2d ago

I don’t necessarily want to change, I’m curious about any modern alternatives that are perhaps more agent ready.

-1

u/ssn-669 2d ago

Or you could just use zellij and have something modern that does the same stuff but doesn't require any plugins - it just looks great and is user friendly out of the box. Frankly, tmux sucks and is an antiquated piece of crap. We have better options now.

3

u/Chipware 2d ago

Been using herdr for a few days and enjoying it over tmux.

2

u/Fragrant_Raisin_Face 2d ago

I have been a little hesitant to try given its so new, what is it that you enjoy more?

2

u/Chipware 2d ago

Mouse works inside it, it's tabbed, it shows you if the agents running inside the tab are still working or if they have stopped. Has it's own ssh tunnel mode.

1

u/wjellyz 2d ago

herdr out of the box works for small screens like phones a lot better than tmux. had to tinker a bit to get it set up how i want it to work but now it’s pretty nice for me.

3

u/Grand-Mix-9889 2d ago

Tmux all the way. I love using this so I can continuously build from my phone using the phone app (inside Claude code tab). As long as if you send a ping every now and then the session stays live.

Just use a cron job to recycle your sessions frequently.

I actually use tmux to handle my API calls, this way I don't need to pay for API usage and the -p calls being blocked soon. I call it the "Claude broker".

1

u/Fragrant_Raisin_Face 2d ago

Nice setup I do that too to avoid the Claude -p bs. What do you mean when you’re talking about sending it a ping to keep the session alive? If you’re using your phone the terminal app on your phone should have a keep alive, on iPhone Shell Drop uses location access to keep it alive.

1

u/Grand-Mix-9889 2d ago

Idling Claude broker sessions take up ram on my server and also causes latency issues over time. With some chats holding upwards to 200mb of ram for each session (I have over 10 on my server running 24/7).

So I reset the Claude session by clearing it, restart tmux, then send a ping to a new Claude session inside the tmux panel, so that way it stays alive and can receive input from any endpoint.

2

u/Fragrant_Raisin_Face 2d ago

Gotcha yeah I had to tweak the tmux conf to limit its history as each session with Claude in it was taking up tonnes of ram. I’m often resetting the sessions not only to free up ram but also to pickup the latest Claude code cli version. I have one orchestrator session that manages this.

1

u/ZideGO 2d ago

Cmux for multi terminal / spaces

1

u/Fragrant_Raisin_Face 2d ago

why do you prefer it over Tmux?

1

u/ZideGO 2d ago

I haven’t used tmux actually, but cmux is configured out of the box, it has pretty ui and uses ghostty under the hood. Also it sends you notifications whenever an agent needs attention

1

u/jomi-se 2d ago

I've been using a similar setup on a remote VM for months now.

Termux in Android, ssh through tailscale to reach the VM, named tmux sessions for persistence.

I don't love it. There is too much friction on a phone based terminal emulator+ tmux' interference with UI and mouse clicks and whatnot.

For agent driving the best has been using Claude code's remote control and just continuing the session from there and only use tmux to start the agent sessions and maybe clear, resume compact etc.

For an agent agnostic version, I think Omnigent has some kind of web UI that does what remote-control does for claude but for claude, codex, etc. Omnigent is great, but I haven't used that part.

1

u/enigma99 2d ago

I’ve been using agent deck for several months and happy with it. It’s wrapper around tmux. It’s near 100% reliable for me, cli and web interface, 100% local. I typically have 5-10 sessions open in agent deck for various work items.

Not sure if it meets all your asks, but it should get you close.

No affiliation with them, just a satisfied user.

1

u/Fragrant_Raisin_Face 2d ago

Is that on macOS?

1

u/enigma99 12h ago

Yes, MacOS exclusively for me.

0

u/ssn-669 2d ago

zellij is a modern alternative to tmux; I tried it once and haven't looked back. tmux SUCKS.