Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By claude-contribv1.10.0MITIn 1 marketplace
tmux notifications for Claude Code — bell, display-message, and auto-focus
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Get notified in tmux when Claude Code finishes a task or needs your attention — per-pane, with no status bar conflicts.
When you run Claude Code in a background tmux pane, you need a reliable signal when it's done. Status bar widgets break when you have multiple Claude instances because they share state across windows. tmux-notify works at the pane level using three independent mechanisms:
\a directly to the pane's TTY so your terminal flashes/beeps regardless of which window is activeBell is on by default; display-message and auto-focus are opt-in. All three work independently.
/plugin install tmux-notify@claude-extensions
jq, JSON parsing falls back to sed, which silently fails on values containing escaped quotes, newlines, or special characters. Install jq for reliable operation.Set options in ~/.tmux.conf for persistence, or at runtime with tmux set-option:
| Option | Default | Values | Description |
|---|---|---|---|
@claude-notify-bell | on | on / off | Write \a to the pane TTY (visual/audible bell) |
@claude-notify-message | off | on / off | Show contextual message when Claude's window is inactive |
@claude-notify-auto-focus | off | on / off | Select Claude's pane within its window |
Note: Option values are case-sensitive. Only the exact lowercase strings
onandoffare recognised. Values likeON,true, or1are treated asoff.
~/.tmux.conf example:
set-option -g @claude-notify-bell on
set-option -g @claude-notify-message on
set-option -g @claude-notify-auto-focus off
Runtime (takes effect immediately):
tmux set-option -g @claude-notify-message on
tmux set-option -g @claude-notify-auto-focus off
Options set with -g are global (apply to all sessions). Omit -g to scope an option to the current session only. Global options are recommended to ensure the hook script always finds the configured values regardless of which session Claude is running in.
The plugin hooks into three Claude Code events:
Stop — fires when Claude finishes responding (matcher: *)Notification — fires only for user-interaction events that require attention: permission_prompt and elicitation_dialogPreToolUse — fires for AskUserQuestion only (matcher: AskUserQuestion). The question form sends no Notification event, so this is how a question reaches you. Other tools are ignored.Note: Not all
Notificationevent subtypes trigger this plugin. Onlypermission_promptandelicitation_dialogare hooked, as these are the cases where you actually need to be alerted. Generic or informational notifications are intentionally excluded.
Writes the ASCII bell character (\a) directly to #{pane_tty} — the TTY device of the pane where Claude is running. This triggers the terminal's bell action (visual flash, audible beep, or dock badge depending on your terminal settings) independently of which pane is currently focused.
Compares Claude's #{window_id} to the currently active window within the same tmux session. If they differ (i.e. you've switched away from Claude's window), it runs tmux display-message with a short, fixed message:
| Event | Message shown |
|---|---|
Stop | Claude [window]: done |
Notification | Claude [window]: waiting |
AskUserQuestion | Claude [window]: question |
Where window is the tmux window name of Claude's pane at the time the event fires.
Selects Claude's pane within its window via tmux select-pane -t $TMUX_PANE. Fires on Stop, Notification and question events. Uses a short delay (0.25s) to run after Claude Code finishes its terminal UI update. Only affects the current window — it does not switch windows.
The script compares #{pane_id} of the active pane to $TMUX_PANE (the pane where Claude is running). If they match — meaning Claude's pane is already focused — all notifications and auto-focus are skipped. This prevents bells and popups when you're already looking at Claude.
Each pane that runs Claude has its own $TMUX_PANE environment variable set by tmux. The notification script uses $TMUX_PANE to target only its own pane, so two Claude instances running in separate panes each send their bell to their own TTY independently. No coordination needed.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub claude-contrib/claude-extensions --plugin tmux-notifyPlugins from other owners that cover similar ground