This guide shows how to create an OpenCode CLI plugin that plays an audio notification when OpenCode needs user permissions. The solution consists of two components:
- A shell script to play system audio
- An OpenCode plugin that listens for the
permission.askedevent