tmux Integration
Popup overlay (recommended)
Section titled “Popup overlay (recommended)”Add to your ~/.tmux.conf:
# pertmux dashboard popup (prefix+a toggles open/close)bind-key a display-popup -h 80% -w 80% -E "pertmux connect"This gives you:
prefix+aopens the TUI client, connecting to the running daemonprefix+aagain closes the popup; next open reconnects instantlyq/Escquits the client (daemon keeps running in the background)
How it works
Section titled “How it works”The daemon (pertmux serve) runs persistently and keeps data fresh. Each time you open the popup, pertmux connect attaches to the daemon via Unix socket and receives the latest DashboardSnapshot immediately — no loading delay.
Smart pane focus
Section titled “Smart pane focus”When you press Enter on an MR or worktree, pertmux uses smart pane focus to jump to the right tmux pane:
- Searches ALL panes across ALL tmux sessions by matching the worktree path
- If no match, prefers a session whose name matches the project name
- Falls back to the current session
This means you can have coding agents scattered across multiple tmux sessions and pertmux will always find them.
Session-per-project workflow
Section titled “Session-per-project workflow”pertmux works best when you use one tmux session per project. When you press Enter on a worktree, pertmux looks for a tmux session whose name matches the project name (case-insensitive). If it finds one, it opens the worktree as a new window in that session. If no matching session exists, it falls back to opening a window in your current session instead.
This means your tmux session list naturally mirrors your active projects — each session has one window per worktree, and pertmux keeps everything organized automatically.
Here’s a trimmed tmux config that supports this workflow well:
# Start windows from 1set -g base-index 1setw -g pane-base-index 1
# Quick window cyclingbind -n C-n next-windowbind -n C-p previous-window
# Session navigation — flip between project sessionsbind J switch-client -nbind K switch-client -p
# Create a new session by name (use your project name)bind S command-prompt -p "New Session:" "new-session -A -s '%%'"
# pertmux dashboard popupbind-key a display-popup -h 80% -w 80% -E "pertmux connect"Typical flow:
- Start sessions for each project:
prefix+S→ typemy-app,prefix+S→ typeoss-lib - Open pertmux with
prefix+a, navigate to a worktree, pressEnter - pertmux opens the worktree as a new window in the matching session
- Flip between projects with
prefix+J/prefix+K— each session has its own set of worktree windows