Claude Code plugin that automatically focuses your tmux pane when Claude needs your attention.
When Claude Code emits a Notification event (e.g., waiting for user input or permission approval), this plugin:
| Tool | Platform | Purpose |
|---|---|---|
terminal-notifier | macOS | System notifications (brew install terminal-notifier) |
notify-send | Linux | System notifications (apt install libnotify-bin) |
Claude Code 안에서:
/plugin marketplace add chaewan/claude-tmux-focus
/plugin install claude-tmux-focus@chaewan-claude-tmux-focus
claude --plugin-dir ./claude-tmux-focus
claude plugin list
claude plugin disable claude-tmux-focus
claude plugin enable claude-tmux-focus
claude plugin uninstall claude-tmux-focus
Edit config/user-config.json inside the plugin directory to customize behavior.
If the file doesn't exist, config/default-config.json is used.
{
"enableNotification": true,
"enableMacOSNotifier": true,
"enableLinuxNotifier": true,
"highlightColor": "blue",
"tmuxMessageDuration": 3000,
"logLevel": "info"
}
| Option | Type | Default | Description |
|---|---|---|---|
enableNotification | boolean | true | Enable/disable system notifications |
enableMacOSNotifier | boolean | true | Use terminal-notifier on macOS |
enableLinuxNotifier | boolean | true | Use notify-send on Linux |
highlightColor | string | "blue" | tmux color for pane highlight |
tmuxMessageDuration | number | 3000 | tmux message display duration in ms |
logLevel | string | "info" | "debug", "info", "warn", "error" |
Notification event UserPromptSubmit event
│ │
▼ ▼
tmux-focus.sh tmux-clear.sh
│ │
├─ inside tmux? ─no─▶ exit 0 ├─ inside tmux? ─no─▶ exit 0
│ │ │ │
│ yes │ yes
▼ ▼ ▼ ▼
select-window + select-pane clear_highlight
│ (restore original style)
├─ highlight pane ON
├─ display-message
└─ system notification
claude-tmux-focus/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest
│ └── marketplace.json # Marketplace definition
├── hooks/
│ └── hooks.json # Notification + UserPromptSubmit hooks
├── scripts/
│ ├── tmux-focus.sh # Notification → focus + highlight on
│ ├── tmux-clear.sh # UserPromptSubmit → highlight off
│ ├── tmux-control.sh # tmux window/pane control
│ ├── notify.sh # Cross-platform notifications
│ └── config.sh # Config loader + logging
├── config/
│ └── default-config.json # Default settings
└── README.md
tail -f /path/to/claude-tmux-focus/logs/tmux-focus.log
Set logLevel to "debug" for verbose output.
evalMIT
Matches all tools
Hooks run on every tool call, not just specific ones
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub amsminn/claude-tmux-focus --plugin claude-tmux-focusTmux session awareness and pane interaction
TMUX session awareness and process management for running services in dedicated panes
Provides tmux-cli skill, to allow Claude-Code to interact with CLI scripts or other code-agents in tmux panes, using the `tmux-cli` command
Warp terminal integration for Claude Code - native notifications, and more to come
Updates tmux window title with Claude Code status indicators showing current activity (working, editing files, running commands, etc.)
Smart notifications for Claude Code task statuses (Go implementation)