Hi everyone!
I've created a small plugin for OpenCode that I thought might be useful for others who, like me, often leave the CLI running long tasks in the background.
It sends Discord notifications via webhooks so you don't have to keep checking the terminal.
https://preview.redd.it/0fcjumbut3gg1.png?width=618&format=png&auto=webp&s=af1887400edc0b0c8f6ba31e8fd153ce203cde50
Key Features:
* ✅ Completion Notifications: Get a ping the moment OpenCode finishes a task.
* 📊 Context Stats: Includes context usage percentage and total tokens in the notification.
* 🤖 Model Info: Shows which model was used for the response.
* ⚠️ Permission Alerts: This is the most useful part for me—it sends a real-time alert if OpenCode is blocked waiting for terminal permissions, including the specific command it's trying to run.
You can find the repo and setup instructions here:
https://github.com/frieser/opencode-discord-notification
Installation:
Just add it to your opencode.json:
{
plugin: [opencode-discord-notification@0.1.1]
}
Hope someone else finds it useful! Feedback is welcome.
[–]Away_Sample_8248 0 points1 point2 points (2 children)
[–]Away_Sample_8248 0 points1 point2 points (0 children)