ai newsMi., 21. Okt.
EilmeldungExclusive: ServiceNow and Nvidia launch Arc, a new AI agent for enterprise

I built a tmux sidebar that tells me which Claude Code session needs me

Running one Claude Code session is easy. Running five at once is where it gets awkward: one is refactoring, one is writing docs, one is fixing a bug, and somewhere in those tabs a session stopped two minutes ago to ask "Do you want to make this edit?" Nothing moves until you find it. I built hivemu

dev.toMittwoch 12:56 · 21.10.2 Min. Lesezeit
Bild: dev.to

Running one Claude Code session is easy. Running five at once is where it gets awkward: one is refactoring, one is writing docs, one is fixing a bug, and somewhere in those tabs a session stopped two minutes ago to ask "Do you want to make this edit?" Nothing moves until you find it.

I built hivemux for exactly that. It is a tmux sidebar that shows every Claude Code session, running, waiting for you, or done, and lets you jump to the one that needs you.

It is free, MIT licensed, and runs on macOS (Linux likely works but is untested).

The sidebar sits on the left of every tmux window. Each project gets a colored box, and each Claude gets a card with its task name and how long it has been in its current state:

The task name is Claude's own conversation title. Double-click a card to rename it, and hivemux sends /rename to that Claude.

So the loop becomes: keep working, glance at the sidebar or the status line, press Option+0, answer, carry on.

Because everything lives in tmux, closing the terminal window does not stop anything. After a reboot, tmux-resurrect brings back the layout and hivemux runs claude --resume <id> in each pane, so every Claude comes back in the same conversation.

There is no daemon and no cloud service. hivemux is a set of shell and Python scripts built on two things that already exist:

hivemux has no server and no telemetry. Apart from installing (it downloads hivemux and two tmux plugins from GitHub) and checking the latest Claude Code version when you update Claude, it makes no network requests of its own.

The installer adds clearly marked blocks to your tmux and shell config, and hivemux uninstall removes exactly those.

This one started as a joke and stayed. hivemux office opens a small office where every Claude session is a bee:

At the end of the day, Clock out stops your Claudes and the bees walk home to a little village. Clock in brings every one back in the same conversation.

It is a silly way to see the same state as the sidebar, and it is oddly useful on a second monitor.

You need tmux 3.3+, jq, git, python3 and a logged-in Claude Code. Ghostty is recommended, but any terminal works if you start tmux yourself.

curl -fsSL https://hivemux.dev/install.sh | bash Enter fullscreen mode Exit fullscreen mode or with Homebrew:

brew install esteban-eg-kim/tap/hivemux hivemux setup Enter fullscreen mode Exit fullscreen mode Then open a project and start Claude:

hm ~/code/api hm ~/code/web Enter fullscreen mode Exit fullscreen mode Watch the sidebar, and press Option+0 when something is waiting.

If you try it, I would love to hear what works and what does not, here in the comments or in a GitHub issue.

Quelle: dev.to (dev.to). Original öffnen