dispatch-opencode

Installation
SKILL.md

dispatch-opencode

Routes subagent dispatch through opencode using async file-based signaling. The skill does NOT implement ACP (Agent Client Protocol) or HTTP serve mode — those were dropped per ADR-001. Instead, it uses CLI opencode run as the invocation transport, wrapped in a .subagents/ lock-watch protocol.

For previous versions of this skill (ACP/CLI/HTTP), see ADR-001.

Step 0: opencode version detection

opencode v1 and v2 have different CLI flags (server, working directory, auto-approve). Every dispatch first runs the shared helper scripts/opencode-version.sh, which resolves the opencode binary, parses opencode --version, and exports OPENCODE_BIN, OPENCODE_VERSION, OPENCODE_MAJOR, OPENCODE_MINOR, and OPENCODE_PATCH. It fails loudly if opencode is missing, the version cannot be parsed, or the major version is not 1 or 2. Set OPENCODE_BIN to pin a specific binary.

Installs
13
GitHub Stars
3
First Seen
Apr 30, 2026