Delegate tasks to opencode from Claude Code for parallel execution.
# 1. Add marketplace and install plugin
claude plugin marketplace add rgplvr/claude-code-opencode-plugin
claude plugin install opencode@opencode-ai
# 2. Ensure opencode is installed
npm install -g opencode-aiPrerequisite: opencode CLI must be installed and accessible in your
$PATH.
| Command | Description |
|---|---|
/opencode:task <description> |
Delegate a task to opencode |
/opencode:task --background <description> |
Run task in background, return immediately |
/opencode:task --write <description> |
Allow opencode to write to workspace |
/opencode:task --resume-last <description> |
Resume last opencode task |
/opencode:status [job-id] |
Check status of all jobs or a specific job |
/opencode:result [job-id] |
Retrieve results of a completed task |
/opencode:cancel [job-id] |
Cancel a running task |
/opencode:setup |
Check installation status |
Offload independent work to opencode while Claude Code continues with other tasks:
# Delegate a foreground task
/opencode:task fix all failing unit tests in the auth module
# Delegate a long-running task in the background
/opencode:task --background refactor the entire data layer
# Check on running tasks
/opencode:status
# Retrieve results when done
/opencode:result task-abc123
- Tasks independent of your current session context
- Long-running refactors or large changes
- Parallelizable work (e.g. fixing tests while writing new features)
/opencode:tasksubmits work to opencode via the local CLI- Task runs in a separate opencode session (foreground or background)
- Results are captured and retrievable via
/opencode:result - Session lifecycle is managed automatically via Claude Code hooks
claude plugin remove opencode@opencode-ai