opencode

Delegate coding tasks to the OpenCode CLI agent via terminal and process tools.

5|2|Updated May 26, 2026
One-click install
npx skills add https://github.com/perasyudha/Nyxora --skill opencode-perasyudha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/perasyudha/Nyxora/tree/main/packages/core/playbooks/autonomous-ai-agents/opencode
Command: npx skills add https://github.com/perasyudha/Nyxora --skill opencode-perasyudha

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It lets you offload implementation, refactoring, and PR review work to the OpenCode CLI coding agent, orchestrating one-shot runs and long interactive sessions without leaving your agent workflow. ## Core Features & Use Cases - One-Shot Task Execution: Run bounded coding tasks with opencode run, attaching context files and forcing specific models. - Interactive TUI Sessions: Launch background OpenCode sessions with pty, submit prompts, poll progress, and resume prior sessions. - PR Review & Parallel Work: Review pull requests with opencode pr and run parallel tasks in isolated workdirs or worktrees. - Use Case: Ask the agent to implement OAuth refresh flow with tests in your repo; it starts an OpenCode session, monitors progress, and reports files changed and test results. ## Quick Start Use the opencode skill to run a one-shot task that adds retry logic to API calls and updates the tests in my project.

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'` in the target workdir; it executes and exits without needing a pty. Attach context files with `-f` and force a model with `--model provider/model`.

How do I run interactive OpenCode sessions in the background?

Start `opencode` with background=true and pty=true, then send prompts via process submit and monitor with poll or log. Exit with Ctrl+C (\x03) or process kill, never `/exit`.

Can OpenCode review pull requests automatically?

Yes, OpenCode has a built-in PR command: run `opencode pr 42` in the repository. Alternatively, clone the repo into a temporary directory and run a review prompt against the diff for isolation.

Why does OpenCode behave differently in my terminal versus the agent?

Shell environments may resolve different OpenCode binaries due to PATH mismatches. Check with `which -a opencode` and `opencode --version`, and pin an explicit binary path if needed.

What are the limitations of parallel OpenCode sessions?

Parallel sessions must use separate workdirs or git worktrees to avoid file collisions. Sharing one working directory across concurrent OpenCode sessions causes conflicts and unpredictable changes.