Skip to content

rgplvr/claude-code-opencode-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opencode Claude Code Plugin

Delegate tasks to opencode from Claude Code for parallel execution.

Install

# 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-ai

Prerequisite: opencode CLI must be installed and accessible in your $PATH.

Commands

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

Usage

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

When to delegate to opencode

  • Tasks independent of your current session context
  • Long-running refactors or large changes
  • Parallelizable work (e.g. fixing tests while writing new features)

How it works

  1. /opencode:task submits work to opencode via the local CLI
  2. Task runs in a separate opencode session (foreground or background)
  3. Results are captured and retrievable via /opencode:result
  4. Session lifecycle is managed automatically via Claude Code hooks

Uninstall

claude plugin remove opencode@opencode-ai

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors