Use this skill when the caller explicitly wants OpenCode CLI to run as a separate headless agent.
- Python 3.10+
- OpenCode CLI on
PATH, orOPENCODE_BINset to the executable path - OpenCode provider authentication already configured by the user
POSIX shell on macOS, Linux, or WSL:
python3 scripts/delegate_opencode.py \
--cwd "$PWD" \
--task "Review this repository and report the highest-risk issue." \
--timeout 45mWindows PowerShell:
py -3 .\scripts\delegate_opencode.py `
--cwd (Get-Location).Path `
--task "Review this repository and report the highest-risk issue." `
--timeout 45mIf python3 or py -3 is not available, use the Python command discovered in references/runtime-setup.md.
The wrapper prints a JSON manifest with response, exit_code, stdout, stderr, and output_dir. Treat OpenCode's answer as unverified until the controlling agent checks the diff and tests.