sidebar
Toggles a live agent status sidebar on the left or top edge of all tmux windows. Shows all active agents across all sessions and projects with live status updates.
workmux sidebar # Toggle sidebar on/off (all sessions)
workmux sidebar --session # Toggle current session only, or opt out of global modeWhat it shows
Each agent row displays:
- Status icon (working/waiting/done with spinner animation)
- Project and worktree name (e.g.
myproject/fix-bug) - Elapsed time since last status change
- Git diff stats, plus optional pull request number and check status in custom templates
Keybindings
| Key | Action |
|---|---|
j/k | Navigate up/down |
Enter | Jump to agent pane |
g/G | Jump to first/last |
v | Toggle layout mode |
z | Toggle sleeping on agent |
q | Quit sidebar |
Navigation commands
Switch between agents from any tmux pane, in the same order shown in the sidebar:
| Command | Action |
|---|---|
workmux sidebar next | Switch to the next agent (wraps) |
workmux sidebar prev | Switch to the previous agent (wraps) |
workmux sidebar jump <N> | Jump to the Nth agent (1-indexed) |
Example tmux keybindings
# Alt+j / Alt+k to cycle agents (no prefix needed)
bind -n M-j run-shell "workmux sidebar next"
bind -n M-k run-shell "workmux sidebar prev"
# Alt+1..9 to jump directly
bind -n M-1 run-shell "workmux sidebar jump 1"
bind -n M-2 run-shell "workmux sidebar jump 2"
bind -n M-3 run-shell "workmux sidebar jump 3"
# ...
# Or with prefix key (avoids terminal conflicts)
bind C-j run-shell "workmux sidebar next"
bind C-k run-shell "workmux sidebar prev"Configuration
sidebar:
position: left # "left" (default) or "top"
width: 40 # left width in columns (default: "10%", clamped 25-50)
# width: "15%"
layout: tiles # left only: "compact" or "tiles" (default)For a horizontal top bar:
sidebar:
position: top
height: 3 # top height in rows
horizontal:
item_width: 24 # horizontal chip width in columns (default, clamped 12-80)
templates:
horizontal:
- "{status_icon} {primary} {pane_suffix} {fill} {elapsed}"
- "{secondary} {fill} {git_stats}"
- "{pane_title}"Explicit width values bypass the default 25-50 column clamp (minimum 10 columns). Layout preference can also be toggled at runtime with v and is persisted across restarts. Height only applies to position: top; set it as a row count for the number of horizontal lines you want to show. The top bar uses a horizontal chip layout, so v has no effect there. Horizontal templates render as many configured lines as the current height allows. horizontal.item_width controls each chip width and is clamped between 12 and 80 columns. Position changes take effect after toggling the sidebar off and on.
How it works
When enabled, a background daemon polls tmux state every 2 seconds and pushes snapshots to each sidebar pane over a Unix socket. The sidebar creates a tmux pane on the configured edge of every existing window. A tmux hook (after-new-window) ensures newly created windows also get a sidebar automatically.
Running workmux sidebar again disables the sidebar globally, killing all sidebar panes, the daemon, and removing hooks.
Session-scoped mode
By default, the sidebar appears in all tmux sessions. Use --session to scope it to the current session only, leaving other sessions untouched:
workmux sidebar --session # Enable in current session only
workmux sidebar --session # Run again to disableYou can enable session-scoped sidebars in multiple sessions independently. Each session can be toggled on/off without affecting others.
If the global sidebar is already active, workmux sidebar --session hides the sidebar in the current tmux session only. Run it again to show the sidebar in that session again while other sessions remain globally managed.
Starting global mode still replaces any session-scoped sidebars.
Limitations
- tmux only (other backends are not supported yet)
Example tmux binding
bind C-t run-shell "workmux sidebar"