Unverified50% confidenceConceptExact time
The core mechanism of OpenCode plugins is hooks: plugins register callbacks at specific points in the tool lifecycle, which the host triggers at the appropriate time, rather than calling the tool directly.
1
Sources
50%
Confidence
Long-term
Relevance
10/13/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedThe plugin mechanism allows third-party code to extend functionality without modifying the main program through predefined interfaces (APIs) or hooks.76% similarUnverifiedThe scope of an OpenCode hook is a single tool call, not the entire session or process; throwing an error only terminates the current operation, and the session can continue.75% similarUnverifiedPost-tool-use hooks are an event hook mechanism in the Claude Code plugin system that automatically trigger after each tool call by the Agent is completed, allowing developers to inject custom validation logic72% similarUnverifiedHarness的插件机制类似VS Code的Extension API,通过暴露UI渲染接口、工具调用接口和生命周期钩子允许第三方代码注入引擎运行时72% similarUnverifiedIn OpenCode V2, ~/.claude/skills is read automatically, but skills inside plugins are not loaded automatically, and the skills directory in the plugin cache must be manually written into the configuration; when IDs conflict the latter overrides the former, so personal skills should be ordered after plugins.72% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1017655API
curl https://kongchang.com/api/v1/knowledge/claims/1017655MCP
get_claim(id=1017655)