agentlytics
Comprehensive analytics dashboard for AI coding agents β Cursor, Windsurf, Claude Code, VS Code Copilot, Zed, Antigraviβ¦
π Cross-platform smart notifications plugin for Claude Code. 6 types. Click-to-focus. 1 line installation. Instant. Anβ¦
git clone https://github.com/777genius/claude-notifications-go.git777genius/claude-notifications-go![]() |
![]() |
Smart 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.
β
Completed main [cat]One command to install everything:
curl -fsSL https://raw.githubusercontent.com/777genius/claude-notifications-go/main/bin/bootstrap.sh | bash
Windows users: open Git Bash from the Start menu and run this command there. Do not run the
curl ... | bashcommand from PowerShell or Windows Terminal ifbashopens WSL, because that targets Linux paths and binaries instead of Windows.
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 | Exact tab focus via Ghostty AppleScript, with AXDocument fallback |
| 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 β clicking a notification raises the originating terminal window (Windows Terminal, VS Code, conhost, β¦) via a protocol-activated toast. Window-level only: tab/split-pane targeting isn't possible (one window hosts all tabs), and picking among multiple WT windows in one process is best-effort. See the guide for details.
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": "",
"format": "json",
"headers": {},
"payloadFields": {}
},
"suppressQuestionAfterTaskCompleteSeconds": 12,
"suppressQuestionAfterAnyNotificationSeconds": 7,
"notifyOnSubagentStop": false,
"suppressForSubagents": true,
"notifyOnTextResponse": true,
"respectJudgeMode": true,
"notifyOnlyWhenUnfocused": false,
"notifyDelaySeconds": 0,
"suppressFilters": [
{
"name": "Suppress ClaudeProbe completions (remote-control)",
"status": "task_complete",
"gitBranch": "",
"folder": "ClaudeProbe"
}
]
},
"statuses": {
"task_complete": {
"title": "β
Completed",
"sound": "${CLAUDE_PLUGIN_ROOT}/sounds/task-complete.mp3"
},
"review_complete": {
"title": "π Review",
"sound": "${CLAUDE_PLUGIN_ROOT}/sounds/review-complete.mp3"
},
"question": {
"title": "β Question",
"sound": "${CLAUDE_PLUGIN_ROOT}/sounds/question.mp3"
},
"plan_ready": {
"title": "π Plan",
"sound": "${CLAUDE_PLUGIN_ROOT}/sounds/plan-ready.mp3"
},
"session_limit_reached": {
"title": "β±οΈ Session Limit Reached",
"sound": "${CLAUDE_PLUGIN_ROOT}/sounds/error.mp3"
},
"api_error": {
"title": "π΄ API Error: 401",
"sound": "${CLAUDE_PLUGIN_ROOT}/sounds/error.mp3"
},
"api_error_overloaded": {
"title": "π΄ API Error",
"sound": "${CLAUDE_PLUGIN_ROOT}/sounds/error.mp3"
}
}
}
| Option | Default | Description |
|---|---|---|
notifyOnSubagentStop |
false |
Send notifications when subagents (Task tool) complete. Has no effect unless suppressForSubagents is also set to false. |
suppressForSubagents |
true |
Suppress subagent (SubagentStop) notifications, plus any Stop notification whose transcript is a subagent/teammate transcript. Detection uses the hook event for SubagentStop (Claude Code passes the parent session transcript_path to that hook, so a path check alone can't identify it). Set to false together with notifyOnSubagentStop: true to get a notification each time a subagent finishes. |
notifyOnTextResponse |
true |
Send notifications for text-only responses (no tool usage) |
respectJudgeMode |
true |
Honor CLAUDE_HOOK_JUDGE_MODE=true env var to suppress notifications |
notifyOnlyWhenUnfocused |
false |
Skip the desktop notification only when the focused terminal window can be matched to the current Claude Code session. Best-effort per platform; if focus can't be determined the notification is still shown. |
notifyDelaySeconds |
0 |
Wait N seconds before delivering a desktop notification (capped at 25s by the hook timeout). With notifyOnlyWhenUnfocused, focus is re-checked after the wait. Webhooks are unaffected. |
suppressQuestionAfterTaskCompleteSeconds |
12 |
Suppress question notifications for N seconds after task complete |
suppressQuestionAfterAnyNotificationSeconds |
7 |
Suppress question notifications for N seconds after any notification |
suppressFilters |
[] |
Array of rules to suppress notifications by status, git branch, and/or folder. Each rule is an AND of its fields; omitted fields match any value. Set gitBranch to "" to match sessions outside git repos. |
Each status can be individually disabled by adding "enabled": false.
You can also override individual channels per status:
{
"statuses": {
"question": {
"title": "β Question",
"sound": "${CLAUDE_PLUGIN_ROOT}/sounds/question.mp3",
"desktop": { "enabled": true },
"webhook": { "enabled": false }
}
}
}
statuses.<name>.enabled is still the master switch for both channels. Use
desktop.enabled and webhook.enabled when you want one channel on and the
other off for the same status.
Two independent options cut notification noise when you're already watching the terminal:
notifyOnlyWhenUnfocused - skip the desktop notification only when the focused terminal window can be matched to the current Claude Code session.notifyDelaySeconds - wait N seconds before delivering, so a quick task can finish before any banner appears (capped at 25s to stay within the hook timeout).They compose: with both set, the plugin waits, then notifies only if the terminal still isn't focused - "tell me once I've looked away."
{
"notifications": {
"notifyOnlyWhenUnfocused": true,
"notifyDelaySeconds": 10
}
}
Both apply to desktop notifications only - webhook delivery is never delayed or suppressed. Focus detection is best-effort and degrades safely by notifying when unsure:
$WINDOWID to the active window. Wayland or terminals without $WINDOWID are treated as unknown.Unknown means "show the notification", not "suppress it".
Built-in sounds (included):
${CLAUDE_PLUGIN_ROOT}/sounds/task-complete.mp3${CLAUDE_PLUGIN_ROOT}/sounds/review-complete.mp3${CLAUDE_PLUGIN_ROOT}/sounds/question.mp3${CLAUDE_PLUGIN_ROOT}/sounds/plan-ready.mp3${CLAUDE_PLUGIN_ROOT}/sounds/error.mp3System sounds:
/System/Library/Sounds/Glass.aiff, /System/Library/Sounds/Hero.aiff, etc./usr/share/sounds/**/*.ogg (varies by distribution)Supported formats: MP3, WAV, FLAC, OGG/Vorbis, AIFF
See all available notification sounds on your system:
# List all sounds (built-in + system) bin/list-sounds # Output as JSON bin/list-sounds --json # Preview a sound bin/list-sounds --play task-complete # Preview at specific volume bin/list-sounds --play Glass --volume 0.5
Or use the skill command: /claude-notifications-go:sounds
Route notification sounds to a specific audio output device instead of the system default:
# List available audio devices bin/list-devices # Output: # 0: MacBook Pro-Lautsprecher # 1: Babyface (23314790) (default) # 2: Immersed
Then add the device name to your ~/.claude/claude-notifications-go/config.json:
{
"notifications": {
"desktop": {
"audioDevice": "MacBook Pro-Lautsprecher"
}
}
}
Leave audioDevice empty or omit it to use the system default device.
Preview any sound file with optional volume control:
# Test built-in sound (full volume) bin/sound-preview sounds/task-complete.mp3 # Test with reduced volume (30% - recommended for testing) bin/sound-preview --volume 0.3 sounds/task-complete.mp3 # Test macOS system sound at 30% volume bin/sound-preview --volume 0.3 /System/Library/Sounds/Glass.aiff # Test custom sound at 50% volume bin/sound-preview --volume 0.5 /path/to/your/sound.wav # Show all options bin/sound-preview --help
Volume flag: Use --volume to control playback volume (0.0 to 1.0). Default is 1.0 (full volume).
The plugin is invoked automatically by Claude Code hooks. To test manually:
# Test PreToolUse hook
echo '{"session_id":"test","transcript_path":"/path/to/transcript.jsonl","tool_name":"ExitPlanMode"}' | \
claude-notifications handle-hook PreToolUse
# Test Stop hook
echo '{"session_id":"test","transcript_path":"/path/to/transcript.jsonl"}' | \
claude-notifications handle-hook Stop
See CONTRIBUTING.md for development setup, testing, building, and submitting changes.
For local plugin workflows and real-claude smoke/manual E2E testing, see docs/LOCAL_DEVELOPMENT.md.
See Troubleshooting Guide for common issues:
EXDEV: cross-device link not permitted during /plugin install (TMPDIR workaround)%TEMP% / %TMP% locationArchitecture - Plugin architecture, directory structure, data flow
Local Development And E2E - Local marketplace testing, real Claude smoke tests, manual click-to-focus validation
Click-to-Focus - Configuration, supported terminals, platform details
Volume Control Guide - Customize notification volume
Interactive Sound Preview - Preview sounds during setup
Plugin Compatibility - Integration with other Claude Code plugins
Troubleshooting - Common install/runtime issues
EXDEV during /plugin install (TMPDIR workaround)Webhook Integration Guide - Complete guide for webhook setup
GPL-3.0 - See LICENSE file for details.
more like this
Comprehensive analytics dashboard for AI coding agents β Cursor, Windsurf, Claude Code, VS Code Copilot, Zed, Antigraviβ¦
Free open-source Cloudflare R2 desktop client and S3 GUI for macOS, Windows, and Linux. Manage Cloudflare R2, AWS S3, Mβ¦
search projects, people, and tags