Skip to main content
Experimental. OpenCode support in v1.1.0 is verified through real CLI discovery, the portable installer, and an @opencode-ai/plugin adapter harness. Native end-to-end verification inside a live OpenCode session is pending. Expect rough edges and report issues on GitHub.
OpenCode integrates with EISPATCH through a plugin (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 lists opencode v2.3.0 for the adapter-harness verification.

Installation

The installer writes:
  • ~/.config/opencode/plugins/eispatch.mjs
  • ~/.config/opencode/skills/eispatch/SKILL.md
Keep the cloned repository in place after installing. The installed plugin references absolute paths inside it.

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.

Check and uninstall

Uninstall removes only EISPATCH-owned entries.