Oh My OpenCode
tip
59,187 GitHub stars — The most comprehensive agent harness for OpenCode. Previously named oh-my-opencode, now oh-my-openagent.
Overview
Oh My OpenCode bundles everything you need for advanced OpenCode workflows into a single package: background agents, pre-built LSP/AST/MCP tools, curated agents, Claude Code compatibility, and an orchestration layer. It is the closest thing to an OpenCode distribution with batteries included.
What's Included
| Component | Description |
|---|---|
| Background Agents | Run agents asynchronously in the background |
| LSP Tools | Pre-configured Language Server Protocol integrations |
| AST Tools | Abstract syntax tree analysis and manipulation |
| MCP Tools | Model Context Protocol server integrations |
| Curated Agents | Ready-to-use specialized agents |
| Orchestration | Multi-agent coordination and task distribution |
| Claude Code Compat | Compatibility layer for Claude Code skills and workflows |
When to Use
| Scenario | Benefit |
|---|---|
| Power users | Get advanced features without manual configuration |
| Multi-agent setups | Built-in orchestration for complex workflows |
| IDE-like features | LSP and AST tools for code intelligence |
| Migration from Claude Code | Compatibility layer eases transition |
| All-in-one configuration | Single install instead of wiring multiple plugins |
Installation
Add to your opencode.json:
{
"plugin": ["oh-my-opencode"]
}
Or clone the repository for local development:
git clone https://github.com/code-yeongyu/oh-my-openagent.git
ln -s $(pwd)/oh-my-openagent ~/.config/opencode/plugins/oh-my-openagent
Configuration
Basic Setup
{
"plugin": ["oh-my-opencode"],
"agent": {
"background-worker": {
"description": "Handles background tasks delegated by the main agent",
"mode": "subagent",
"hidden": true
}
}
}
Enable Specific Features
{
"experimental": {
"batch_tool": true
}
}
Usage
Background Agent Delegation
The primary agent can delegate long-running tasks to background agents:
@background-worker analyze the performance impact of this refactor across all modules
LSP Code Intelligence
With LSP tools enabled, agents can:
- Navigate to symbol definitions.
- Find all references across the project.
- Get hover documentation for any symbol.
- List symbols in a file or workspace.
AST Analysis
Agents can parse and analyze code structure:
- Detect unused exports and imports.
- Validate naming conventions programmatically.
- Generate metrics like cyclomatic complexity.
Best Practices
Selective Feature Enablement
- Start with the core plugin and enable advanced features gradually.
- Monitor context usage since more tools means more tokens per request.
Background Agent Design
- Give background agents clear, bounded tasks.
- Set appropriate step limits to prevent runaway execution.
- Use permissions to restrict what background agents can modify.
GitHub
- Repo: code-yeongyu/oh-my-openagent
- Topics:
ai-agents,orchestration,claude-code,opencode - Category: Agent Workflow / Orchestration