Plugins
OpenCode lifecycle plugins defined in this repo.
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 |
commit-context |
Injects session-attributed commit scope into commit command prompts |
context-capture |
Opt-in capture of the assembled starter context for token profiling |
context-zone-warning |
Warns when long-context models enter less reliable context ranges |
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 |
workflow-manifest |
Resolves pushed GitHub Actions runs into a compact watcher manifest |