opencode

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

115|9|Updated Aug 5, 2026
One-click install
npx skills add https://github.com/AtlasOmnia/donna-starter --skill opencode-atlasomnia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/AtlasOmnia/donna-starter/tree/main/skills/autonomous-ai-agents/opencode
Command: npx skills add https://github.com/AtlasOmnia/donna-starter --skill opencode-atlasomnia

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It offloads implementation, refactoring, and PR review work to the OpenCode CLI, an autonomous coding agent, so long-running coding sessions can run in the background while progress is monitored through Hermes process tools. ## Core Features & Use Cases - One-shot task execution: Run bounded coding tasks with opencode run, attaching context files and forcing specific models when needed. - Interactive background sessions: Launch the OpenCode TUI with pty support, submit prompts, poll logs, and resume prior sessions by ID. - PR review and parallel work: Review pull requests with opencode pr and run multiple isolated sessions in separate workdirs or worktrees. - Use Case: Ask the agent to implement OAuth refresh token handling with tests in your repository, monitor its progress in the background, then receive a summary of changed files 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 back 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?

Use `opencode run 'your task description'` in the project directory; it executes the task and exits without needing a pty. Attach context files with `-f` and show model reasoning with `--thinking`.

How do I run OpenCode interactively in the background?

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

Can OpenCode review pull requests?

Yes, OpenCode has a built-in PR command: run `opencode pr 42` in the repository. For isolation, you can clone the repo into a temporary directory and review the diff against main with `opencode run`.

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

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

Can I run multiple OpenCode sessions in parallel?

Yes, launch separate background sessions scoped to different workdirs or git worktrees so they do not collide. Track them with process list and poll each session's logs independently.