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
context-captureOpt-in capture of the assembled starter context for token profiling
env-protectionBlocks direct access to .env files to prevent leaking secrets
generated-artifact-guardBlocks direct mutation of generated dotfiles artefacts
mcp-repo-gatePer-repo MCP server gating for OpenCode
notes-guardBlocks direct file and shell access to the repository notes vault
notificationSends contextual desktop notifications and terminal attention for agent events
pitchfork-dev-server-guardEnforces a project’s declared pitchfork dev-server workflow for agents
readonly-subagent-shell-guardRejects shell syntax that can turn read-only subagent commands into writes
repo-notesInjects repo-note context into OpenCode note commands
stack-contextInjects codebase stack-context blocks into prompts
subagent-chrome-devtools-guardBlocks Chrome DevTools tools from delegated subagent sessions
tui-dot-git-diffRegisters a TUI keybinding (ctrl+shift+g) to open dot git-diff
tui-lazygitRegisters a TUI keybinding to open lazygit