OpenCode setup
OpenCode uses the bundled plugin bridge. Once you make the plugin visible to OpenCode, the sidebar can receive its events automatically.
Plugin bridge
Section titled “Plugin bridge”Link the plugin file
Section titled “Link the plugin file”Create OpenCode’s global plugin directory if it does not already exist, then symlink the plugin file (not the directory) into it. Linking the single file lets the bridge coexist with any other plugins you have installed:
mkdir -p ~/.config/opencode/pluginsln -sf ~/.tmux/plugins/tmux-agent-sidebar/.opencode/plugins/tmux-agent-sidebar.js \ ~/.config/opencode/plugins/tmux-agent-sidebar.jsIf you keep tmux-agent-sidebar in a different path, point the symlink at
that copy instead.
Restart OpenCode
Section titled “Restart OpenCode”Restart OpenCode after adding the plugin so it discovers the new bridge.