by 777genius
π Cross-platform smart notifications plugin for Claude Code. 6 types. Click-to-focus. 1 line installation. Instant. Analyze context. Zero dependencies. webhooks (ntfy, slack, telegram...). Linux, MacOS, Windows.
# Add to your Claude Code skills
git clone https://github.com/777genius/claude-notifications-goSmart notifications for Claude Code with click-to-focus, git branch display, and webhook integrations.
Boost your productivity β check out the advanced task manager for Claude with a convenient UI, from the creator of this plugin.
No comments yet. Be the first to share your thoughts!
β
Completed main [cat]One command to install everything:
curl -fsSL https://raw.githubusercontent.com/777genius/claude-notifications-go/main/bin/bootstrap.sh | bash
Then restart Claude Code and optionally run /claude-notifications-go:settings to configure sounds.
The binary is downloaded once and cached locally. You can re-run /claude-notifications-go:settings anytime to reconfigure.
If the bootstrap script doesn't work for your environment, use the Manual Install steps below inside Claude Code.
Run these slash commands in the Claude Code chat, not in your system terminal:
# 1) Add marketplace
/plugin marketplace add 777genius/claude-notifications-go
# 2) Install plugin
/plugin install claude-notifications-go@claude-notifications-go
# 3) Restart Claude Code
# 4) Download binary
/claude-notifications-go:init
# 5) (Optional) Configure sounds and settings
/claude-notifications-go:settings
Having issues with installation? See Troubleshooting.
Run the same command as for installation β it will update both the plugin and the binary:
curl -fsSL https://raw.githubusercontent.com/777genius/claude-notifications-go/main/bin/bootstrap.sh | bash
Then restart Claude Code to apply the new version. Your settings in ~/.claude/claude-notifications-go/config.json are preserved across updates.
Claude Code also periodically checks for plugin updates automatically. Binaries are updated on the next hook invocation when a version mismatch is detected.
To update manually via Claude Code UI:
/plugin, select Marketplaces, choose claude-notifications-go, then select Update marketplaceclaude-notifications-go, then select Update nowIf the binary auto-update didn't work (e.g. no internet at the time), run /claude-notifications-go:init to download it manually. If hook definitions changed in the new version, restart Claude Code to apply them.
| Status | Icon | Description | Trigger |
|--------|------|-------------|---------|
| Task Complete | β
| Main task completed | Stop/SubagentStop hooks (state machine detects active tools like Write/Edit/Bash, or ExitPlanMode followed by tool usage) |
| Review Complete | π | Code review finished | Stop/SubagentStop hooks (state machine detects only read-like tools: Read/Grep/Glob with no active tools, plus long text response >200 chars) |
| Question | β | Claude has a question | PreToolUse hook (AskUserQuestion) OR Notification hook |
| Plan Ready | π | Plan ready for approval | PreToolUse hook (ExitPlanMode) |
| Session Limit Reached | β±οΈ | Session limit reached | Stop/SubagentStop hooks (state machine detects "Session limit reached" text in last 3 assistant messages) |
| API Error | π΄ | Authentication expired, rate limit, server error, connection error | Stop/SubagentStop hooks (state machine detects via isApiErrorMessage flag + error field from JSONL) |
Supported platforms:
No additional dependencies:
Windows-specific features:
Clicking a notification activates your terminal window. Auto-detects terminal and platform.
macOS β via AX API with bundle ID detection:
| Terminal | Focus method |
|----------|-------------|
| Ghostty | AXDocument (OSC 7 CWD) |
| VS Code / Insiders / Cursor | AXTitle (focus-window subcommand) |
| iTerm2 | Exact tab/pane targeting via iTerm2 Python API when available, otherwise app-level iTerm activation |
| Warp, kitty, WezTerm, Alacritty, Hyper, Apple Terminal | AXTitle (focus-window subcommand) |
| Any other (custom terminalBundleId) | AXTitle (focus-window subcommand) |
Linux β via D-Bus daemon with automatic compositor detection:
| Terminal | Supported compositors | |----------|----------------------| | VS Code | GNOME, KDE, Sway, X11 | | GNOME Terminal, Konsole, Alacritty, kitty, WezTerm, Tilix, Terminator, XFCE4 Terminal, MATE Terminal | GNOME, KDE, Sway, X11 | | Any other | Fallback by name |
Linux focus methods (tried in order): GNOME extension, GNOME Shell Eval, GNOME FocusApp, wlrctl (Sway/wlroots), kdotool (KDE), xdotool (X11).
Multiplexers (both platforms): tmux (including iTerm2 -CC integration mode), zellij, WezTerm, kitty β click switches to the correct pane/tab.
iTerm2 note: to open the exact iTerm2 tab or split pane, enable iTerm2 > Settings > General > Magic > Enable Python API. If you just toggled it, restart iTerm2 once. Without the Python API, the plugin falls back to app-level iTerm activation instead of exact tab targeting.
Windows β notifications only, no click-to-focus.
See Click-to-Focus Guide for configuration details.
Run /claude-notifications-go:settings to configure sounds, volume, webhooks, and other options via an interactive wizard. You can re-run it anytime to reconfigure.
Config file location:
| Platform | Path |
|----------|------|
| macOS / Linux | ~/.claude/claude-notifications-go/config.json |
| Windows (Git Bash) | ~/.claude/claude-notifications-go/config.json |
| Windows (PowerShell) | $env:USERPROFILE\.claude\claude-notifications-go\config.json |
Edit the config file directly:
{
"notifications": {
"desktop": {
"enabled": true,
"sound": true,
"volume": 1.0,
"audioDevice": "",
"clickToFocus": true,
"terminalBundleId": "",
"appIcon": "${CLAUDE_PLUGIN_ROOT}/claude_icon.png"
},
"webhook": {
"enabled": false,
"preset": "slack",
"url": "",
"chat_id": "",
"f