opencode

Delegate coding and pull request review tasks to the OpenCode CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the problem of time-consuming, error-prone coding work by delegating implementation, refactoring, and pull-request review to an external autonomous coding agent.

Core Features & Use Cases

  • Delegated coding worker: Uses the OpenCode CLI to implement, refactor, and review code on your behalf.
  • One-shot and interactive workflows: Supports bounded run tasks and longer TUI sessions with background polling/logging.
  • PR review workflows: Reviews a target PR (or an isolated diff) to report bugs, security risks, test gaps, and style issues.
  • Parallel isolation pattern: Runs multiple coding tasks in separate workdirs/worktrees to avoid collisions.

Quick Start

Ask your agent to delegate the task to OpenCode by running the command: terminal(command="opencode run 'Add retry logic to API calls and update tests'", workdir="~/project").

Frequently Asked Questions about opencode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delegate coding and pull request review to an autonomous agent?▼

To delegate coding and PR review, use the OpenCode CLI to implement code, refactor logic, and audit changes. It processes bounded one-shot fixes and longer interactive TUI sessions with background polling and logging.

How do I automate code review for security risks and bugs in a pull request?▼

Automate PR review by delegating the target PR or isolated diff to the CLI. It analyzes changes to report bugs, security risks, test gaps, and style issues across your repositories.

Can I run multiple coding tasks in parallel without file collisions?▼

Yes, you can run multiple coding tasks in parallel using separate workdirs or worktrees. This isolation pattern prevents collisions when executing concurrent autonomous coding sessions.

Do I need to install OpenCode before using this delegated coding workflow?▼

Yes, OpenCode must be installed and authenticated prior to use. Proper workdir scoping for isolation and support for interactive background sessions via process polling are also required.

What's the best way to execute a bounded one-shot code fix?▼

Execute a bounded one-shot fix by running the CLI `run` command with your specific prompt. This delegates the implementation task directly to the autonomous agent.

How does the TUI session handle longer iterative coding workflows?▼

The TUI session supports longer iterative coding by running in the background. It uses process polling and logging to manage the interactive session while you continue other work.