Delegate a review or inspection task to the local OpenCode CLI through headless `opencode run` for a second opinion. Use after Claude's own review, or when an independent perspective is needed on code, documentation, or proposal content.
Request an additional review from the local OpenCode CLI using the project's headless agent setup. Use this skill to obtain a second perspective and reduce blind spots.
review_delegate.sh wrapper (foreground, blocking).bash tools/review_delegate.sh opencode "[review prompt]"
The wrapper uses opencode run --format json --agent portpolio-review internally and extracts only the final text response — no intermediate tool calls, no ANSI noise.
Multiple Bash tool calls in a single message will run in parallel, each blocking independently:
Bash 1: bash tools/review_delegate.sh codex "서버 관점 리뷰..."
Bash 2: bash tools/review_delegate.sh opencode "클라이언트 관점 리뷰..."
Both return clean results directly in the tool response — no polling, no extra reads.
bash tools/review_delegate.sh opencode "
Review type: Code review
Target file: server/src/03_core/combat/CombatSystem.cpp
Evaluation criteria:
- Layer rule: 03_core must not depend on 04_service or 05_network
- Single responsibility: check whether any class carries too many roles
- Potential bugs: null checks, bounds checks, race conditions
Report issues as a numbered list with file:line references.
"
When the review produces a clear fix direction, delegate immediately to OpenCode direct-apply mode.
| Situation | Path |
|---|---|
| Fix scope is ambiguous or requires design judgment | Claude fixes directly |
| Target files and changes are clear, and OpenCode has sole write ownership | OpenCode direct-apply |
opencode run --agent portpolio-implement --format json "[fix task prompt]"
portpolio-propose) instead.opencode run uses the local OpenCode provider/model configuration.opencode is not installed or the headless run fails, skip this skill and report the reason.