adapters/opencode/plugin.mjs). The plugin intercepts trigger prompts, starts a Local Composer, and tries to deliver the approved prompt back into the same OpenCode session.
Tested version
The README listsopencode v2.3.0 for the adapter-harness verification.
Installation
~/.config/opencode/plugins/eispatch.mjs~/.config/opencode/skills/eispatch/SKILL.md
Plugin hooks
Because the original message parts are replaced with the notice, the model does not receive your unreviewed prompt in that turn.
Dispatch
After you click Approve and Dispatch in the composer, the plugin tries these paths in order:
Approval tokens, SHA-256 prompt hashes, and 401/403/409 responses apply because OpenCode uses the Local Composer.
Server lifetime
The OpenCode plugin starts the Local Composer without an idle timeout. The server is closed when the plugin intercepts the next trigger prompt.Environment variables
EISPATCH_NO_SPAWN is not implemented by the OpenCode plugin.