Opencode Delegate
Delegate a coding task to the OpenCode CLI as a background implementer, then review its...
Install
npx skills add amElnagdy/delegate-skills --skill opencode-delegate -g -a claude-code -y- Repository
- amElnagdy/delegate-skills2.5k
- Category
- Git and review
- Updated
- 6d ago
- License
- MIT
- Context cost
- Mediumabout 2,611 tokens
- Runs scripts
- Yes, review before use
What it does
Delegate a coding task to the OpenCode CLI as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to hand implementation work to OpenCode, phrasings like "have OpenCode do X", "delegate this to OpenCode", "run it through OpenCode", or "use OpenCode to implement/fix/refactor", or wants to run a queue of coding tasks through OpenCode while staying the reviewer. Prefer it when the user will review the diff and commit it themselves. DO NOT USE for tasks small enough to do inline, or when the user wants the code written directly without delegating.
OpenCode Delegate
You are the orchestrator. This skill lets you hand a bounded coding task to a separate implementer, the OpenCode CLI, then review what it produced and land it yourself. You write the brief and own the judgment; OpenCode does the typing in its own session; you verify and commit.
Nothing here is specific to one orchestrating agent. The loop needs only the ability to run a shell command and read a file, so any agent with those two capabilities, Claude Code, OpenCode driving a sibling session, or a comparable one, can drive it. (It is designed for and run on Claude Code; treat other orchestrators as designed-for, not yet proven.)
When NOT to use this
- The task is small enough to just do inline, delegation overhead is not worth it.
- The
opencodeCLI is not installed or not authenticated (runopencode auth login). - You want to write the code yourself, or you only need a review (use the
planagent via--read-only).
Prerequisites (check once)
opencode --versionsucceeds. If not, install (npm i -g opencode-ai, or the native installer from opencode.ai) andopencode auth login.- Confirm which
opencodeis on PATH.command -v opencodeshows the active binary andopencode --versionits version. The relay records the version it ran intoresult.json, so a stale binary is visible after the fact. - A model provider is authenticated,
opencode auth listshows at least one credential. - You are in (or will point
--cdat) the target git repository.
Choose the implementer model
OpenCode has no safe default, a bare opencode run errors, so a fresh run needs a model via
--model or a fleet --lane that sets one (a resumed run inherits its session's model). Naming the
model is the one decision a single-model backend like codex-delegate never had, and it has two owners:

