opencode

Delegate coding tasks to the OpenCode CLI agent for implementation, refactoring, and PR review.

5|2|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/AjayRajan05/VoiceOS --skill opencode-ajayrajan05
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/AjayRajan05/VoiceOS/tree/main/skills/bundled/community/autonomous-ai-agents/opencode
Command: npx skills add https://github.com/AjayRajan05/VoiceOS --skill opencode-ajayrajan05

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Offloading multi-step coding work (feature implementation, refactoring, code review) to an autonomous agent is hard to orchestrate manually. This Skill lets VoiceOS drive the OpenCode CLI as an external coding worker, handling one-shot runs, interactive TUI sessions, and parallel tasks without you babysitting the terminal. ## Core Features & Use Cases - One-Shot Task Execution: Run bounded coding tasks with opencode run, attach context files, force specific models, and show model reasoning. - Interactive Session Management: Launch the OpenCode TUI in the background, submit prompts, poll progress, and exit cleanly via VoiceOS process tools. - PR Review & Parallel Work: Review pull requests in isolated clones and run multiple OpenCode sessions in separate worktrees to avoid collisions. - Use Case: Ask VoiceOS to "use OpenCode to add retry logic to the API client and update the tests" — it verifies auth, runs the task in your repo, monitors output, and reports files changed and test results. ## Quick Start Ask VoiceOS to use OpenCode to implement a specific code change or review a pull request in your current repository.

Frequently Asked Questions about opencode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a one-shot coding task with OpenCode CLI?▼

Use `opencode run 'your task description'` from the project directory for bounded, non-interactive tasks. Attach context files with `-f`, force a model with `--model provider/model`, and show reasoning with `--thinking`. No pty is needed for run mode.

How do I manage an interactive OpenCode TUI session in the background?▼

Start `opencode` with background=true and pty=true, then send prompts with process submit and monitor with poll or log. Exit by sending Ctrl+C (\x03) or killing the process — never use /exit, which opens an agent selector instead.

Can OpenCode review pull requests automatically?▼

Yes, OpenCode has a built-in `opencode pr <number>` command for PR review. For isolation, you can clone the repo into a temporary directory and run a review prompt with the changed files attached via `-f`.

Why does OpenCode behave differently in VoiceOS than in my terminal?▼

Shell environments can resolve different OpenCode binaries, causing version or config mismatches. Check with `which -a opencode` and `opencode --version`, and pin an explicit binary path like $HOME/.opencode/bin/opencode if needed.

How do I run multiple OpenCode sessions in parallel safely?▼

Give each session its own working directory or git worktree so they never share one repo checkout. Launch each with background=true and pty=true, then track all sessions with the process list action.