Answer: You transform or modify opencode behavior using transforms, which are synchronous edits to OpenCode's domain state; you register them via ctx.provider.transform for providers/models and ctx.model.transform for model policies, and call reload() after captured inputs change. Status: Check failed Entry: tool/opencode/agents-and-automation/server-plugin-transforms Revision: 1 Digest: sha256:a2ff0cec0684f24e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:55:59Z Last changed: 2026-11-13T03:55:59Z Last verified: 2026-11-19T13:34:56Z Last attempt: 2026-11-20T13:44:46Z (failed) Next check: 2026-11-20T14:44:46Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Transform definition | Transforms are synchronous edits to OpenCode’s domain state | [1] | 2026-11-19 Provider transform API | ctx.provider.transform | [1] | 2026-11-19 Reload after input change | call reload() after those inputs change | [1] | 2026-11-19 Model reload API | ctx.model.reload() | [1] | 2026-11-19 Transform guidance | Keep transforms cheap and repeatable. | [1] | 2026-11-19 Sources: [1] opencode. "Server | OpenCode". https://opencode.ai/docs/build/plugins/server/ Role: primary. Accessed: 2026-11-19T13:34:56Z Quote: "Transforms are synchronous edits to OpenCode’s domain state" (Supports: Transform definition) Quote: "Sources contribute providers and immutable model definitions through ctx.provider.transform ." (Supports: Provider transform API) Quote: "Load external data before the synchronous callback, then call reload() after those inputs change." (Supports: Reload after input change) Quote: "Use ctx.model.reload() when only an input captured by a model transform changes." (Supports: Model reload API) Quote: "Keep transforms cheap and repeatable." (Supports: Transform guidance) Snapshot SHA-256: a2439abc14eb4e3a16653b38915234a364cf331bfe60c4f3f6dfe005622e7846 (captured 2026-11-13T03:55:57Z) 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-13T03:55:59Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:34:56Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:34:56Z Last attempt: 2026-11-20T13:44:46Z (failed) Notes and limitations: Extracted automatically from a single official source (section "Transforms"). Related: https://latestn.com/tool/opencode/commands-and-shortcuts/attachment-syntax How do I describe an attachment in opencode prompt syntax? https://latestn.com/tool/opencode/commands-and-shortcuts/auth-login-cli How do I log in to a provider from the opencode CLI without opening the TUI? https://latestn.com/tool/opencode/commands-and-shortcuts/cancel-staged-rollback How do I cancel a staged rollback in opencode? https://latestn.com/tool/opencode/agents-and-automation/run-non-interactive How do I run opencode non-interactively for scripts or CI? https://latestn.com/tool/opencode/agents-and-automation/select-agent How do I switch between or select different opencode agents? https://latestn.com/tool/opencode/agents-and-automation/server-plugin-lifecycle-setup How do I define a server plugin in opencode and run code when it loads? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:44:46Z | check-failed | Extraction did not pass verification: section "Transforms" not found in the source (the page may have been reorganized) | — 2026-11-13T03:55:59Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/agents-and-automation/server-plugin-transforms/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/agents-and-automation/server-plugin-transforms POST: https://latestn.com/dispute/tool/opencode/agents-and-automation/server-plugin-transforms with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/agents-and-automation/server-plugin-transforms?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I transform or modify opencode behavior using the plugin API? Revision 1, last verified 2026-11-19T13:34:56Z. https://latestn.com/tool/opencode/agents-and-automation/server-plugin-transforms (accessed 2026-11-21T09:53:34Z). @misc{LatestN_tool_opencode_agents_and_automation_server_plugin_transforms_r1, title = {How do I transform or modify opencode behavior using the plugin API?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/agents-and-automation/server-plugin-transforms}}, note = {Revision 1; digest sha256:a2ff0cec0684f24e; last verified 2026-11-19T13:34:56Z; accessed 2026-11-21T09:53:34Z} } 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/agents-and-automation/server-plugin-transforms