Skip to main content
OpenCode uses plugins for lifecycle events. Save this plugin as .opencode/plugins/midway-notifications.js:
--background lets the notification send continue if OpenCode or its plugin is interrupted. Remove the flag if you want the plugin to wait for the send to finish. See send-text for details. OpenCode loads local plugins from .opencode/plugins/ when it starts.