Plugins
Plugins provide context, evidence, or enforcement hooks for OpenCode. They are loaded from ~/.config/opencode/plugins/.
| Plugin | Description |
|---|---|
branch-context | Injects branch-context blocks into command prompts before execution |
env-protection | Blocks direct access to .env files to prevent leaking secrets |
notes-guard | Restricts file tools to the repository notes directory for note commands |
notification | Plays a desktop notification sound when agent tasks complete |
readonly-subagent-task-guard | Forces read-only primary agents to delegate only to non-modifying subagents |
repo-notes | Routes OpenCode note commands through dot note against the notes vault |
tui-dot-git-diff | Registers a TUI keybinding (ctrl+shift+g) to open dot git-diff |
tui-lazygit | Registers a TUI keybinding to open lazygit |