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 derekspelledcorrectlyv0.4.0MITIn 1 marketplace
iTerm2-native Claude Code notifications: custom OSC 9 banners with project name, dock attention, and per-session waiting state via OSC 1337 user variables. Pairs with an iTerm2 AutoLaunch Python script for sound, voice readout, and a hotkey to cycle through waiting Claudes across all sessions (including SSH+tmux into remote machines).
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.
iTerm2-native Claude Code notifications for macOS.
When Claude waits for your input, this plugin posts a custom-text iTerm2 banner with the project name, bounces the dock, and marks the session as waiting via iTerm2 user variables. A companion AutoLaunch Python script (deployed separately via your dotfiles, not part of this plugin) watches those variables to play a custom sound, speak the project name aloud, and bind a hotkey to "jump to the longest-waiting Claude" across all your iTerm2 sessions - including remote SSH+tmux sessions, since the escape sequences pass through tmux.
Claude Code's built-in iTerm2 notifications (via OSC 9) post a banner whose body is whatever the terminal happens to set as the title - often just the tab name. There's no project context, and the sound is locked to whatever macOS plays for iTerm2 in general.
This plugin replaces that with hook-driven banners that include the project name and route by event type, plus a side-channel state mechanism (iTerm2 session user variables) that a small Python AutoLaunch script can watch to provide cycling and richer audio UX.
| Event | What fires |
|---|---|
Notification with notification_type=idle_prompt | OSC 9 banner "Claude waiting in $project", dock bounce, set user.claudeWaitingProject and user.claudeWaitingSince |
Notification with notification_type=permission_prompt | OSC 9 banner "Claude needs permission in $project", dock bounce, set the same waiting vars |
Notification with other types | Silent (auth_success, elicitation_*, etc.) |
UserPromptSubmit | Clear user.claudeWaitingSince and user.claudeWaitingProject |
Hooks deliberately do NOT play sounds or call say directly. That work
is handled by the AutoLaunch script on the local Mac, which watches the
iTerm2 user variables uniformly across local and remote-SSH sessions
and dispatches audio centrally.
| Variable | Meaning | Set by | Cleared by |
|---|---|---|---|
user.claudeWaitingSince | Unix timestamp when Claude started waiting (empty = not waiting). The trigger watched by external tooling. | notification.sh on idle/permission prompt | user-prompt-submit.sh |
user.claudeWaitingProject | Project name (basename of git toplevel or cwd). | notification.sh (set FIRST, before claudeWaitingSince) | user-prompt-submit.sh |
External tooling can printf '\033]1337;SetUserVar=...' to read the
plain-text values via the iTerm2 Python API
(session.async_get_variable("user.claudeWaitingSince")).
This plugin emits state but doesn't dispatch audio or provide cycling. Pair it with an iTerm2 AutoLaunch Python script that:
user.claudeWaitingSince changes via iterm2.VariableMonitor
across all sessions; on transition empty → timestamp, plays a sound and
speaks the project name.cycle_waiting() to cycle through waiting sessions
(oldest-first, wraps from the current foreground session) and
clear_waiting() to manually clear stuck markers on the current
session. Bind to hotkeys via iTerm2 Settings → Keys → Invoke Script
Function.A reference implementation lives in Derek's chezmoi dotfiles at
~/Library/Application Support/iTerm2/Scripts/AutoLaunch/claude_cycle.py.
Re-enable iTerm2 OS-level notifications: System Settings → Notifications → iTerm2 → Allow Notifications: ON.
Allowlist iTerm2 in your Focus modes so banners break through DND: System Settings → Focus → [each mode] → Apps & People → Allow iTerm2.
Bind hotkeys for cycling: iTerm2 → Settings → Keys → Key Bindings
→ + → record shortcut (e.g. ⌘⇧J) → Action: "Invoke Script
Function" → cycle_waiting(). Same for ⌘⇧K → clear_waiting().
(Local Mac, zero-config) — Hook discovery for the right PTY
device is automatic via the daemon-maintained session map. Nothing
to set up beyond installing and running the AutoLaunch script. The
daemon writes a session_id → tty map to
~/.claude/run/iterm-notifs/sessions.txt on startup and on each
session create/terminate event; the hook reads it on each fire.
Minimum iTerm2 version: 3.4.x (for SessionTerminationMonitor).
Older iTerm2 will see an error in
~/.claude/logs/iterm2-claude-cycle.log at startup.
(Remote SSH+tmux only) — On remote machines (where the local-Mac
daemon and map file are unreachable), hooks need the user to export
CLAUDE_TTY in the remote shell rc:
# In remote .zshrc / .bashrc
[[ -t 0 ]] && export CLAUDE_TTY=$(tty)
The hook writes OSC sequences to that PTY; tmux's allow-passthrough
forwards them back to the local iTerm2. Without CLAUDE_TTY, remote
hook events silently fail.
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 derekspelledcorrectly/claude-plugins --plugin iterm-notifsPlugins from other owners that cover similar ground