Persistent sessions
Your agents keep running even if your terminal window closes or your SSH connection drops. Reconnect and everything is exactly where you left it.
Tmux gives every agent a permanent, addressable pane. When an agent finishes, back2vibing restores focus to that exact pane — the right session, the right window, the right pane. No hunting through tabs.
Persistent sessions
Your agents keep running even if your terminal window closes or your SSH connection drops. Reconnect and everything is exactly where you left it.
Automatic focus restoration
Back2vibing tracks which tmux pane each agent runs in. When an agent finishes, focus snaps to that pane automatically.
Parallel agents
Split panes let you run multiple agents side by side. Switch between project sessions instantly.
Zero overhead at scale
One agent is manageable without tmux. Three agents across two projects is chaos — unless your tools handle the routing.
The fastest way to set up tmux for back2vibing is to use our recommended dotfiles. This will automatically install tmux, sesh, and all necessary configurations for macOS or Linux.
# Clone and run the interactive setupgit clone https://github.com/builtby-win/dotfiles.git ~/dotfilescd ~/dotfiles./setup.shThe setup script will walk you through installing everything you need, including terminal themes and shell integrations.
j+k LeaderStandard tmux uses Ctrl+b as the prefix (the “Leader”), which can be hard on the hands over time. Our dotfiles include a Karabiner-Elements configuration that maps holding j + k together to the Leader key.
Ctrl+b + keyj and k simultaneously, then press keyThis allows you to trigger any tmux command without ever leaving the home row.
If you prefer to manage your own config, follow these steps.
brew install tmux seshgit clone https://github.com/builtby-win/dotfiles.git ~/dotfilescd ~/dotfilesstow -d stow-packages -t ~ tmuxThis uses GNU Stow to symlink the config files into your home directory. Stow will warn you if there is a conflict — your existing files will not be overwritten.
Install TPM (Tmux Plugin Manager):
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpmStart tmux:
tmuxPress Leader then I (capital I) to install all plugins.
Wait for the “Done” message at the bottom of the screen.
Add the back2vibing shell hook to your shell config so b2v can track sessions:
# Add to ~/.zshrc (or ~/.bashrc for bash)eval "$(b2v shell-hook --shell zsh)"Then restart your shell or reload:
source ~/.zshrcThese are the essential keybindings from our recommended config. All use Ctrl+b (or j+k) as the prefix (called “Leader”).
| Shortcut | What it does | When to use it |
|---|---|---|
Leader Space | Open session picker | Switch between projects |
Leader / | Command palette | Forgot a keybinding? Search here |
Leader d | Split pane vertically | Run an agent side-by-side |
Leader g | Floating terminal | Quick command without leaving your pane |
Leader T | Jump to last session | Bounce between two projects |
tmuxLeader db2v claudeLeader h or Leader lIf focus snaps back, you are all set.
The session picker (Leader Space) is powered by sesh and fzf. It has several modes:
| Key | Mode | What it shows |
|---|---|---|
j / k | Navigate | Move up and down the list |
/ | Search | Enable fuzzy search |
Ctrl+A | All sessions | Reload the full list |
Ctrl+T | Tmux only | Show only tmux sessions |
Ctrl+G | Configs | Show config directories |
Ctrl+X | Zoxide | Show recently visited directories |
x | Kill | Delete a session |
The right panel shows a live preview of the selected session’s windows and panes.
Our dotfiles config installs these plugins via TPM:
| Plugin | What it does |
|---|---|
| tmux-resurrect | Save and restore sessions across restarts |
| tmux-continuum | Auto-save sessions in the background |
| tmux-fingers | Copy text with keyboard hints (Leader f) |
| tmux-yank | Enhanced clipboard integration |
| tmux-floax | Floating terminal overlay (Leader g) |
| tmux-fzf-url | Open URLs from the pane with fzf (Leader u) |