OpenCode Plugin Configuration
- Fetch the latest docs: https://opencode.ai/docs/plugins
- Refine the type of plugin you need to create: a hook that runs a script, a custom tool, a logger that prints structured output to the client interface, etc.
- Determine scope: is this a user-level plugin (in
~/.opencode/plugins) that would accelerate every project, or a project-level plugin with highly specific details (in<project root>/.opencode/plugins)? - Build the plugin in TypeScript with bun as the target runtime. Use bun for quick iteration and testing if necessary, before moving on to testing the integration with OpenCode.