zmx - run local code agents on remote machines
10 points by erock
10 points by erock
This undersells the overall value of zmx. I've been using it a lot just to manage different sessions within my projects. I use Zed which ships with its own terminal. If Zed needs to update (which it does a lot!) I need to restart it. Using zmx means those sessions survive the restart.
If I'm working on my website I might run:
zmx attach sh-bun-dev bun run dev
Reattaching is very similar:
zmx attach sh-bun-dev
zmx is very handy, especially if you don't want to deal with tmux but just want session persistence. The screen persistence via ghostty-vt is key — that's all I really wanted from tmux anyway.
It's a shame that this got tagged vibecoding just because agents were mentioned, so half of Lobsters will now miss out on it.
Hello. I couldn't find a great way to interact with remote terminal sessions, especially ones that required multiple hops through SSH / containers so I adapted zmx to integrate with local code agents.
To be clear, I did nothing special with zmx beyond adding features that make it easier to send commands to a terminal session and then receive the output/exit code. Code agents can just "zmx help" and figure out how to use the tool but these features are equally useful to humans.
Happy to answer questions