opencode

Orchestrate OpenCode sessions and tasks across multiple workspaces and repos.

6|2|Updated Jul 8, 2012
One-click install
npx skills add https://github.com/athal7/dotfiles --skill opencode-athal7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/athal7/dotfiles/tree/main/skills/opencode
Command: npx skills add https://github.com/athal7/dotfiles --skill opencode-athal7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OpenCode provides a unified runtime to manage, orchestrate, and repair AI agent sessions across multiple workspaces, reducing manual session handling and context switching.

Core Features & Use Cases

  • Unified session management: create, list, and reuse OpenCode sessions across repos and workspaces.
  • Plan-mode task dispatch: send tasks to running sessions with controlled agent behavior and isolation.
  • Session recovery and repair: diagnose and fix broken sessions, missing sandboxes, and DB inconsistencies to keep workflows flowing.
  • Cross-workspace coordination: coordinate worktrees, branches, and PR reviews using worktree sandboxes.

Quick Start

Initialize OpenCode in your environment and load your first session.

Frequently Asked Questions about opencode

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

FAQPage Schema
How do I manage AI agent sessions across multiple git worktrees?

You can manage AI agent sessions across multiple git worktrees by using an orchestration runtime to create, list, and dispatch tasks across repos. This isolates worktree sandboxes while coordinating branches and PR reviews.

What is the best way to dispatch tasks to running AI agent sessions?

The best way to dispatch tasks to running AI agent sessions is using plan-mode task dispatch. This sends tasks to running sessions with controlled agent behavior and isolation, keeping workflows flowing across workspaces.

How do I repair broken OpenCode sessions and fix SQLite database issues?

To repair broken OpenCode sessions and fix SQLite database issues, you can use session recovery features to diagnose and fix broken sessions, missing sandboxes, and DB inconsistencies to keep workflows flowing.

Can I coordinate PR reviews across separate worktree sandboxes?

Yes, you can coordinate PR reviews across separate worktree sandboxes. Cross-workspace coordination allows you to manage worktrees and branches using isolated worktree sandboxes.

Why does my AI agent runtime lose context when switching between multiple repos?

Your AI agent runtime loses context when switching between multiple repos due to manual session handling. A unified session management runtime solves this by reusing sessions across repos and workspaces without context switching.

Do I need CLI-based workflows to reset diffs across worktrees?

Yes, you need CLI-based workflows to reset diffs across worktrees. The orchestration runtime satisfies requirements for CLI-based workflows, worktree isolation, plan-mode dispatch, and robust session recovery.