opencode

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

Updated Aug 22, 2026
One-click install
npx skills add https://github.com/vivekgoquest/hermes-agent-stable --skill opencode-vivekgoquest
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/vivekgoquest/hermes-agent-stable/tree/main/skills/autonomous-ai-agents/opencode
Command: npx skills add https://github.com/vivekgoquest/hermes-agent-stable --skill opencode-vivekgoquest

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Offloading bounded or long-running coding work to an external autonomous agent is hard to orchestrate reliably from a chat session. This Skill lets you drive the OpenCode CLI through terminal and process tools, handling one-shot runs, interactive TUI sessions, parallel worktrees, and PR reviews without manual babysitting. ## Core Features & Use Cases - One-Shot Task Execution: Run bounded coding tasks with opencode run, attaching context files, forcing models, and showing reasoning. - Interactive Background Sessions: Launch the OpenCode TUI with pty, submit prompts, poll progress, and exit cleanly with Ctrl+C. - PR Review & Parallel Work: Review pull requests in isolated clones and run multiple OpenCode sessions in separate workdirs or worktrees. - Use Case: Ask the agent to fix issue #101 in one worktree while adding regression tests in another, then monitor both sessions and report files changed and test results. ## Quick Start Use the opencode skill to run a one-shot task that adds retry logic to the API calls in my project and updates the tests.

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 repository, which executes the task and exits without needing a pty. Attach context files with `-f`, force a model with `--model provider/model`, or show reasoning with `--thinking`.

How do I review a pull request with OpenCode?▼

Run `opencode pr 42` inside the repository to use the built-in PR command. For isolation, clone the repo into a temporary directory and run a review prompt with the changed files attached via `-f`.

Does OpenCode interactive mode require a pty?▼

Yes, the interactive OpenCode TUI requires `pty=true` when started in background mode. The non-interactive `opencode run` command does not need a pty and is preferred for bounded automation tasks.

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

PATH mismatches can resolve different OpenCode binaries or model configs between environments. Check with `which -a opencode` and `opencode --version`, then pin an explicit binary path such as `$HOME/.opencode/bin/opencode` if needed.

How do I exit an OpenCode TUI session cleanly?▼

Send Ctrl+C (`\x03`) via the process write action or kill the process directly. Do not use `/exit`, which is not a valid OpenCode command and opens an agent selector dialog instead.

Can I run multiple OpenCode sessions in parallel?▼

Yes, launch separate background sessions scoped to different workdirs or git worktrees to avoid file collisions. Track all running sessions with the process list action and monitor each with poll or log.