Engineering / Agent collaboration
OpenCode for Claude Code
Bounded OpenCode review and collaboration inside Claude Code.
Archived · 2026-10-05 · No longer maintained. Continued in · turnweft
- 01Define the scope
- 02Delegate the task
- 03Verify the result
01The project
A Claude Code port of the official openai/codex-plugin-cc surface, adapted to drive the local OpenCode CLI. It lets Claude Code hand bounded review, adversarial-review, rescue, transfer, status, result, cancel, setup, and optional stop-time review work to OpenCode, which can front Anthropic, OpenAI, Google, open-weight, and free zen models.
02The problem
Claude Code needed a controlled way to use a second model without leaving its local workflow or losing ownership of context. The risk was handing too much scope to another tool.
03Key decisions
I ported the official command surface to OpenCode CLI and kept job control, stop-time review, and the delegation boundary explicit. Claude Code remains responsible for files, git, verification, and final judgment.
04My contribution
- Current source version 0.3.0: background tasks run in detached persistent workers. Session end or caller timeout does not cancel the job; its saved job ID supports status, result retrieval, and explicit cancellation.
- Claude Code commands for review, adversarial-review, rescue, transfer, status, result, cancel, and setup
- Bounded delegation to whichever model OpenCode is configured with — OpenCode's own provider range covers Anthropic, OpenAI, Google, open-weight, and free opencode zen models
More contributions
- A background job store that prints the job handle before the run starts, status/result/cancel controls, and an optional stop-time review gate
- 0.2.0 turned failure into data: a run is classified completed, incomplete, or failed instead of pass/fail; a failed run carries a typed class such as model_unauthorized or quota_exhausted; job records are reconciled against process liveness every time they are read; and structured review output is validated against a schema before it is believed
05Outcome and current stage
Public v0.3.0 · port of the official codex-plugin-cc surface · multi-provider second-model delegation · optional stop-time review gate
Technical details & evidence
Role · Sole adapter and maintainer of the Claude Code port — OpenCode CLI wiring, command surface, job store, failure classification, stop-time gate
- JavaScript
- Node.js
- Claude Code Plugin
- OpenCode CLI
- background jobs