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 |
context-capture | Opt-in capture of the assembled starter context for token profiling |
env-protection | Blocks direct access to .env files to prevent leaking secrets |
generated-artifact-guard | Blocks direct mutation of generated dotfiles artefacts |
mcp-repo-gate | Per-repo MCP server gating for OpenCode |
notes-guard | Blocks direct file and shell access to the repository notes vault |
notification | Sends contextual desktop notifications and terminal attention for agent events |
pitchfork-dev-server-guard | Enforces a project’s declared pitchfork dev-server workflow for agents |
readonly-subagent-shell-guard | Rejects shell syntax that can turn read-only subagent commands into writes |
repo-notes | Injects repo-note context into OpenCode note commands |
stack-context | Injects codebase stack-context blocks into prompts |
subagent-chrome-devtools-guard | Blocks Chrome DevTools tools from delegated subagent sessions |
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 |