opencode

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

1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/brittb-dev/zerogravityclaw --skill opencode-brittb-dev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/brittb-dev/zerogravityclaw/tree/main/src/hermes-core/skills/autonomous-ai-agents/opencode
Command: npx skills add https://github.com/brittb-dev/zerogravityclaw --skill opencode-brittb-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Offloading bounded or long-running coding work to an external autonomous agent is hard to orchestrate manually. This Skill lets you drive the OpenCode CLI from Hermes terminal and process tools to implement features, refactor code, and review pull requests without leaving your workflow. ## Core Features & Use Cases - One-Shot Task Execution: Run bounded, non-interactive coding tasks with opencode run, attaching context files and forcing specific models. - Interactive Background Sessions: Start the OpenCode TUI in a PTY background session, submit prompts, poll progress, and resume prior sessions. - PR Review & Parallel Work: Review pull requests in isolated clones and run parallel tasks across separate workdirs or git worktrees. - Use Case: Ask the agent to fix issue #101 in one worktree while adding regression tests in another, then monitor both sessions and summarize 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 prompt'` in the target workdir for bounded, non-interactive tasks. Attach context files with `-f`, force a model with `--model provider/model`, and show reasoning with `--thinking`.

How do I review a pull request with OpenCode?▼

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

Does OpenCode interactive mode require a PTY?▼

Yes, interactive TUI sessions require `pty=true` when launched in the background. The `opencode run` one-shot command does not need a PTY and works as a plain terminal command.

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

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

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`, since it 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 collisions. Track them with the process list action and monitor each with poll or log.