opencode

Delegates coding, refactoring, and PR review tasks to the OpenCode CLI agent.

Updated Aug 19, 2026
One-click install
npx skills add https://github.com/swcstudiospace/aimeecodes --skill opencode-swcstudiospace
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/swcstudiospace/aimeecodes/tree/main/.aimee/skills/opencode
Command: npx skills add https://github.com/swcstudiospace/aimeecodes --skill opencode-swcstudiospace

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Delegating implementation, refactoring, and code review work to an external autonomous coding agent requires managing CLI flags, interactive TUI sessions, and long-running processes, which is error-prone without clear operational guidance. ## Core Features & Use Cases - One-Shot Task Execution: Run bounded coding tasks with opencode run, attaching context files, forcing specific models, and showing model thinking. - Interactive Session Management: Launch the OpenCode TUI in background PTY sessions, submit prompts, poll progress, resume sessions, and exit cleanly with Ctrl+C. - PR Review & Parallel Work: Review pull requests via opencode pr and run parallel tasks in isolated workdirs or git worktrees to avoid collisions. - Use Case: Ask the agent to implement OAuth refresh flow with tests in your repository; it starts an OpenCode session, monitors progress, and reports files changed and test results. ## Quick Start Ask the agent to use OpenCode to implement a feature or fix a bug in your project directory and report the changed files and test results.

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 project directory. 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 review a pull request with OpenCode?▼

Run `opencode pr 42` in the repository to use the built-in PR review command. Alternatively, clone the repo into a temporary directory and run a review prompt against the diff with attached changed files for isolation.

How do I exit an OpenCode interactive TUI session?▼

Exit the OpenCode TUI by sending Ctrl+C (\x03) or killing the process. Do not use `/exit`, which is not a valid command and opens an agent selector dialog instead.

Can I run multiple OpenCode sessions in parallel?▼

Yes, run parallel OpenCode tasks by assigning each session a separate working directory or git worktree. Sharing one working directory across parallel sessions causes collisions and should be avoided.

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 such as `$HOME/.opencode/bin/opencode` if needed.