← Blog

Claude Code in tmux with multiple agents

2026-11-14 · 4 min read

tmux panes are addressable, but a banner click cannot pick the pane. In our Ghostty test, a click on a banner from tmux focused the Ghostty split running tmux, not the originating pane. With several panes, you then cycle windows to find it.
  • tmux needs 3.0 or newer. Your tmux config stays as it is.
  • Free: status per session, chime, notification.
  • Pro: returns you to the exact tmux pane.
Session detail card beside the Session Rail

What tmux does and does not do

Sessions survive a closed terminal or a dropped SSH connection, and each pane can be targeted. tmux does not watch your agents, so you still poll by eye.
back2vibing does not replace tmux. It watches the agents running inside it.

Set it up

tmux is optional. You keep your existing config. No dotfiles or plugin manager are needed.
  • Pick a terminal and agent in Launch settings.
  • Create a session with the plus chip or t in quick-pick, or run b2v with the agent name.
brew install tmux
# Settings, Launch: set Multiplexer to tmux
b2v claude

What you get per pane

Each session gets a tab on the Session Rail with a status color. When an agent finishes or needs input, a flyout appears beside its tab and a chime plays. Focus does not move on its own.
With Pro, clicking the session returns you to the original pane. Command+Return jumps to the next agent that needs you.
TierResult
FreeStatus, chime, notification, flyout
ProReturn to the exact tmux pane

The Agent Pane Switcher

Command-Tab lists apps, not tmux panes. The Agent Pane Switcher (Option+Tab by default, Pro) expands apps into their sessions, including those in tmux panes. Rows show the chain, such as tmux seoul and a pane number. It does not replace Command-Tab.
An expanded flyout showing a session conversation

If the wrong pane opens

Start a tracked agent in tmux, switch away, let it finish, and confirm you return to the original pane. If the wrong pane opens, check Agents, then Terminal session integration, start a fresh session, and retry.

Try back2vibing

Every new install includes a 14-day Pro trial, and Pro is a one-time $19 lifetime license.
Download Free
$ brew tap builtby-win/back2vibing https://github.com/builtby-win/back2vibing && brew install --cask back2vibing
Install via Homebrew macOS

Frequently asked questions

Can I run multiple Claude Code agents in tmux and track them?

Yes. Set Multiplexer to tmux in Launch settings. Each session shows on the rail with its own status.

Which tmux version is needed?

tmux 3.0 or newer, locally and on any remote host. Older versions reject the indexed hooks used to follow focus.

Will it change my tmux config?

No. You keep your existing configuration.

Does it return me to the exact tmux pane?

Yes, with Pro. The free tier notifies you but does not return you to the pane.

Keep reading