
Security News
Socket for Origin Now Available
Socket for Origin scans dependency changes in pull requests and flags security risks based on your team’s policies. Now available in Cursor’s App Marketplace.
@serkanalgur/opencodev2-notification
Advanced tools
Native OS notifications for OpenCode V2 - know when tasks complete, errors occur, or the AI needs your input
Native OS notifications for OpenCode V2
A CLI plugin for OpenCode V2 that delivers native OS notifications when tasks complete, errors occur, or the AI needs your input.
You delegate a task and switch to another window. Now you're checking back every 30 seconds. Did it finish? Did it error? Is it waiting for permission?
This plugin solves that:
opencode plugin add @serkanalgur/opencodev2-notification
Add to your opencode.json or opencode.jsonc:
{
"plugins": ["@serkanalgur/opencodev2-notification"]
}
Or copy the plugin files to your .opencode/plugins/ directory:
.opencode/plugins/notification/index.ts
"Notify the human when the AI needs them back, not for every micro-event."
| Event | Notifies? | Sound | Why |
|---|---|---|---|
| Session complete | Yes | done | Main task done - time to review |
| Session error | Yes | error | Something broke - needs attention |
| Permission needed | Yes | permission | AI is blocked, waiting for you |
| Sub-task complete/error | No (default) | - | Set notifyChildSessions: true to include child sessions |
The plugin automatically:
attention.notify() API for native notifications| Platform | Method | Status |
|---|---|---|
| macOS | Notification Center | ✅ Full support |
| Windows | Toast notifications | ✅ Full support |
| Linux | Desktop notifications | ✅ Full support |
Works out of the box. To customize, create ~/.config/opencode/opencodev2-notification.json:
{
"notifyChildSessions": false,
"sounds": {
"idle": "done",
"error": "error",
"permission": "permission"
},
"quietHours": {
"enabled": false,
"start": "22:00",
"end": "08:00"
}
}
| Key | Type | Default | Description |
|---|---|---|---|
notifyChildSessions | boolean | false | Include child/sub-session notifications |
sounds.idle | string | "done" | Sound for session complete |
sounds.error | string | "error" | Sound for errors |
sounds.permission | string | "permission" | Sound for permission requests |
quietHours.enabled | boolean | false | Enable quiet hours |
quietHours.start | string | "22:00" | Quiet hours start (HH:MM) |
quietHours.end | string | "08:00" | Quiet hours end (HH:MM) |
default, question, permission, error, done, subagent_done
Minimal footprint. The plugin is event-driven - it listens for session events and fires notifications. No tools are added to your conversation.
No. Smart defaults prevent noise:
Remove the plugin from your opencode.json or delete the plugin files.
Inspired by opencode-notify by kdcokenny.
MIT
FAQs
Native OS notifications for OpenCode V2 - know when tasks complete, errors occur, or the AI needs your input
The npm package @serkanalgur/opencodev2-notification receives a total of 7 weekly downloads. As such, @serkanalgur/opencodev2-notification popularity was classified as not popular.
We found that @serkanalgur/opencodev2-notification demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Socket for Origin scans dependency changes in pull requests and flags security risks based on your team’s policies. Now available in Cursor’s App Marketplace.

Security News
Agent Baseline’s new reference architecture shows how to secure software factories with four boundaries enforced outside the AI agent.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.