@moudy99/agent-notification
v1.1.0
Published
Windows desktop notifications for Claude Code and OpenCode.
Maintainers
Readme
Agent Notification
Beautiful Windows toast notifications for OpenCode and Claude Code.
Run one command, choose the agents you use, and the installer adds the local notification hooks for you.
Install And Run
npx @moudy99/agent-notificationThe CLI opens an interactive installer:
AGENT NOTIFICATION
Select agents to install notifications for:
[ ] OpenCode
[ ] Claude CodeUse:
SPACE toggle
ENTER install
CTRL+C cancelYou can select OpenCode, Claude Code, or both.
After selecting agents, enter how many seconds each notification should stay visible.
Direct Commands
Install both without the selector:
npx @moudy99/agent-notification --allInstall only OpenCode:
npx @moudy99/agent-notification --opencodeInstall only Claude Code:
npx @moudy99/agent-notification --claudeOverwrite existing files without asking:
npx @moudy99/agent-notification --all --yesSet the notification duration directly:
npx @moudy99/agent-notification --all --duration=10What It Installs
OpenCode
~/.config/opencode/plugins/plan-complete-notify.js
~/.config/opencode/hooks/notification.ps1
~/.config/opencode/hooks/notification.bat
~/.config/opencode/hooks/notification.vbs
~/.config/opencode/hooks/notification-config.jsonNotifications fire when:
- OpenCode completes a response.
- OpenCode asks a plan-mode question.
- OpenCode needs permission to continue.
Restart OpenCode after installing.
Claude Code
~/.claude/hooks/notification.ps1
~/.claude/hooks/notification.bat
~/.claude/hooks/notification-config.json
~/.claude/settings.jsonThe installer adds these hook events:
StopNotification
It does not add SubagentStop, so subagent completions do not trigger premature notifications.
Restart Claude Code after installing.
Safety
- Windows-only.
- Uses local PowerShell WPF toast windows.
- No runtime network calls.
- Writes only to your user config folders.
- Asks before overwriting existing hook files.
- Backs up
~/.claude/settings.jsonbefore editing. - Removes old package-installed
welcome.ps1Claude hook entries to avoid duplicate notifications. - Stores only the notification display duration in
notification-config.json.
