opencode-companion

Installation
SKILL.md

OpenCode Companion

OpenCode is a headless coding agent runtime. This skill lets you launch coding sessions, continue existing sessions, attach/wait for results, manage the serve process, and forward outputs through a single companion script.

Set the companion script path from this skill path:

SCRIPT="${SKILL_ROOT}/scripts/opencode-companion.mjs"

${SKILL_ROOT} is the path to this opencode-companion skill directory. Set it from the loaded skill path; do not prepend another install root.

Typical workflows

Host-background note

Several patterns below say "run this in the host agent's background mode." That phrase has a concrete mapping per host:

  • Claude Code — call the Bash tool with run_in_background: true. The shell stays alive until OpenCode exits; Claude Code emits a task-completion notification with an output-file path. Read that file to recover stdout (Session ID, status, etc.).
Related skills

More from atomlink-ye/my-claude-plugins

Installs
12
First Seen
Apr 29, 2026