Skip to content

Opencode Notify

Opencode Notify

Opencode Notify delivers native OS notifications when your OpenCode tasks complete, errors occur, or the AI needs your input. Stay focused on other work and get alerted when the AI finishes or needs attention.

Key Features

FeatureDescription
Stay focusedWork in other apps, get notified when the AI needs you
Native OS notificationsmacOS Notification Center, Windows Toast, Linux notify-send
Smart defaultsOnly notifies for meaningful events with quiet-hours support
Terminal focus detectionSuppresses notifications when your terminal is active (macOS)
Click-to-focusClick notification to foreground terminal (macOS)
37+ terminals supportedGhostty, Kitty, iTerm2, WezTerm, Alacritty, VS Code, and more

Notification Events

EventNotifies?SoundWhy
Session completeYesGlassMain task done
Session errorYesBassoSomething broke
Permission neededYesSubmarineAI is blocked
Question askedYesSubmarineDirect prompts reach you promptly
Sub-task complete/errorNo (default)Enable with notifyChildSessions: true

Platform Support

FeaturemacOSWindowsLinux
Native OS notificationsYesYesYes
Custom soundsYesNoNo
Focus detectionYesNoNo
Click-to-focusYesNoNo
Terminal detectionYesYesYes

Installation

ocx add kdco/notify --from https://registry.kdco.dev

Or install the full workspace bundle:

ocx add kdco/workspace --from https://registry.kdco.dev

Manual

Copy plugin files into .opencode/plugins/ preserving the multi-file layout. Requires node-notifier and detect-terminal dependencies.

Configuration

Config file: ~/.config/opencode/kdco-notify.json

{
  "notifyChildSessions": false,
  "terminal": "ghostty",
  "sounds": {
    "idle": "Glass",
    "error": "Basso",
    "permission": "Submarine",
    "question": "Submarine"
  },
  "quietHours": {
    "enabled": false,
    "start": "22:00",
    "end": "08:00"
  }
}

Configuration Options

KeyDefaultDescription
notifyChildSessionsfalseInclude child/sub-session notifications
terminalauto-detectedOverride terminal auto-detection
soundsper-event defaultsPer-event sounds (idle, error, permission, question)
quietHoursdisabledScheduled suppression window

Available macOS sounds: Basso, Blow, Bottle, Frog, Funk, Glass, Hero, Morse, Ping, Pop, Purr, Sosumi, Submarine, Tink.