Skip to content

Plugins

Plugins provide context, evidence, or enforcement hooks for OpenCode. They are loaded from ~/.config/opencode/plugins/.

PluginDescription
branch-contextInjects branch-context blocks into command prompts before execution
env-protectionBlocks direct access to .env files to prevent leaking secrets
notes-guardRestricts file tools to the repository notes directory for note commands
notificationPlays a desktop notification sound when agent tasks complete
readonly-subagent-task-guardForces read-only primary agents to delegate only to non-modifying subagents
repo-notesRoutes OpenCode note commands through dot note against the notes vault
tui-dot-git-diffRegisters a TUI keybinding (ctrl+shift+g) to open dot git-diff
tui-lazygitRegisters a TUI keybinding to open lazygit