Answer: The Effect plugin API provides session hooks (context, compaction, generate, title, model.request, http.request, http.response, experimental.ws.handshake, experimental.ws.send, experimental.ws.receive, retry), a shell hook (create.before), and tool hooks (execute.before, execute.after). Status: Confirmed Entry: tool/opencode/features/effect-plugin-hooks Revision: 1 Digest: sha256:e675211bce626867 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:55:44Z Last changed: 2026-11-13T03:55:44Z Last verified: 2026-11-20T13:44:32Z Next check: 2026-11-21T13:44:32Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of session hooks | context | [1] | 2026-11-20 shell hook | create.before | [1] | 2026-11-20 tool hooks | execute.before | [1] | 2026-11-20 Sources: [1] opencode. "Effect plugins | OpenCode". https://opencode.ai/docs/build/plugins/effect/ Role: primary. Accessed: 2026-11-20T13:44:32Z Quote: "readonly context : SessionContext" (Supports: session hooks) Quote: "readonly "create.before" : ShellCreateBefore" (Supports: shell hook) Quote: "readonly "execute.before" : ToolExecuteBefore" (Supports: tool hooks) Snapshot SHA-256: a201bf9748af19ccffd161d2016ee0eda4521c1ea1933aec3600bdca0bfb0bb4 (captured 2026-11-18T13:38:09Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:38:10Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:44:32Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:44:32Z Last attempt: 2026-11-20T13:44:32Z Notes and limitations: Extracted automatically from a single official source (section "Hooks"). Related: https://latestn.com/tool/opencode/features/effect-plugin-lifecycle-scope What is the plugin lifecycle and Scope in opencode's Effect plugin API? https://latestn.com/tool/opencode/features/glob-file-patterns How do I find files by pattern with opencode's glob tool? https://latestn.com/tool/opencode/features/grep-search-contents How do I search file contents with opencode's grep tool? https://latestn.com/tool/opencode/features/builtin-formatters Which built-in formatters does opencode include? https://latestn.com/tool/opencode/features/builtin-themes Which built-in themes does opencode include? https://latestn.com/tool/opencode/features/create-custom-theme How do I create a custom theme for opencode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:55:44Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/features/effect-plugin-hooks/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/features/effect-plugin-hooks POST: https://latestn.com/dispute/tool/opencode/features/effect-plugin-hooks with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/features/effect-plugin-hooks?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What hooks does the opencode Effect plugin API provide for sessions, shell, and tools? Revision 1, last verified 2026-11-20T13:44:32Z. https://latestn.com/tool/opencode/features/effect-plugin-hooks (accessed 2026-11-21T09:50:25Z). @misc{LatestN_tool_opencode_features_effect_plugin_hooks_r1, title = {What hooks does the opencode Effect plugin API provide for sessions, shell, and tools?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/features/effect-plugin-hooks}}, note = {Revision 1; digest sha256:e675211bce626867; last verified 2026-11-20T13:44:32Z; accessed 2026-11-21T09:50:25Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/features/effect-plugin-hooks