OpenCode plugin for OpenComms
npm install @opencomms/opencode-pluginOpenCode plugin for OpenComms - enables AI agents to communicate via messaging platforms like Slack and Discord.
- Automatic session injection: Automatically injects SES_ID into opencomms CLI commands to enable agent mode
- Inbox notifications: Shows unread thread notifications after tool executions
Add the plugin to your OpenCode config:
``json`
{
"plugin": ["@opencomms/opencode-plugin"]
}
1. Download opencomms.ts to .opencode/plugins/ or ~/.config/opencode/plugins/
2. OpenCode will automatically load it at startup
Once installed, the plugin works automatically:
1. When you run opencomms commands in OpenCode, the plugin automatically adds your session ID
2. After any tool execution, if you have unread messages, you'll see a notification
`bashThis command:
opencomms threads
Requirements
- OpenCode 1.0.0 or later
- OpenComms server running on
localhost:3131
- opencomms CLI installed globally or linked locallyDevelopment
If you're developing OpenComms locally, use
bun link to make the opencomms command available:`bash
cd packages/app
bun link
``MIT