Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1015 Bytes

File metadata and controls

35 lines (24 loc) · 1015 Bytes

OpenCode Delegate Quickstart

Use this skill when the caller explicitly wants OpenCode CLI to run as a separate headless agent.

Requirements

  • Python 3.10+
  • OpenCode CLI on PATH, or OPENCODE_BIN set to the executable path
  • OpenCode provider authentication already configured by the user

Run

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 45m

Windows PowerShell:

py -3 .\scripts\delegate_opencode.py `
  --cwd (Get-Location).Path `
  --task "Review this repository and report the highest-risk issue." `
  --timeout 45m

If python3 or py -3 is not available, use the Python command discovered in references/runtime-setup.md.

Result

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.