OpenCode v2 plugin that plays sounds and sends system notifications when permission is needed, generation completes, errors occur, or a question is asked.
This is an OpenCode v2 port of @mohak34/opencode-notifier. The original plugin targeted the OpenCode v1 plugin API and does not run on v2.
Add this to ~/.config/opencode/opencode.json:
{
"plugins": ["github:sankalpmukim/opencode-notifier-v2"]
}Restart OpenCode:
opencode service restartYou get notified when:
- OpenCode needs permission
- A session finishes
- An error happens
- The question tool or a form pops up
- A plan is ready for review
- A session starts
- A user message is sent
- The plugin loads (
client_connected)
subagent_complete and user_cancelled are silent by default.
Create ~/.config/opencode/opencode-notifier.json. Options match the original notifier plugin: sounds, notifications, bell, custom commands, focus suppression, min duration, and per-event toggles.
See the original README for the full option list.
MIT. Notification, sound, focus, and config logic is adapted from mohak34/opencode-notifier.