Oh My OpenCode Integration
Overview
Oh My OpenCode is the ultimate harness for OpenCode, providing advanced multi-model orchestration, curated agents, background task execution, and comprehensive tooling. This skill enables OpenClaw to leverage OpenCode's full potential with all the power of oh-my-opencode's agent ecosystem.
When to Use
Trigger phrases:
"oh my opencode"
"Installing or configuring OpenCode with oh-my-opencode"
"Operating OpenCode from OpenClaw environment"
"Leveraging advanced agents (Sisyphus, Hephaestus, Oracle, Librarian, Explore)"
Installing or configuring OpenCode with oh-my-opencode
Operating OpenCode from OpenClaw environment
Leveraging advanced agents (Sisyphus, Hephaestus, Oracle, Librarian, Explore)
Running background agents and parallel tasks
Using LSP/AST tools, MCP servers, and Claude Code compatibility
Implementing autonomous deep work with goal-oriented execution
Quick Start
Install OpenCode and oh-my-opencode:
- Use the oh-my-opencode-installation skill for detailed setup
- Or paste this to your LLM agent:
Install and configure oh-my-opencode:
https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md
Initialize for your project:
cd /path/to/project
opencode
/init
Load this skill in OpenClaw:
- Load the oh-my-opencode skill
- Configure according to your needs
Core Agents
- Primary agent handles core task execution
- Validator agent checks output quality
- Reporter agent formats and delivers results
- Each agent operates with clear input/output contracts
Sisyphus — Main Orchestrator
- The primary agent that coordinates all others
- Uses Prometheus (planner) and Metis (plan consultant)
- Executes with "ultrawork" mode for autonomous completion
- Delegates to specialized agents based on task requirements
Hephaestus — Autonomous Deep Worker
- Goal-oriented execution (GPT 5.3 Codex Medium)
- Explores thoroughly before acting (2-5 parallel agents)
- End-to-end completion with verification
- Pattern matching for codebase consistency
Oracle — Architecture & Debugging
- High-IQ strategic consultation (GPT 5.2)
- Complex debugging after 2+ failed attempts
- Architecture design decisions
- Multi-system tradeoffs analysis
Librarian — Documentation & Search
- Official docs and open source implementations (GLM-4.7)
- Real-time source code digestion
- External library patterns and best practices
Explore — Fast Codebase Exploration
- Contextual grep for rapid codebase analysis
- Pattern discovery across multiple modules
- Quick file and symbol location
Installation Methods
This section covers installation methods for the oh-my-opencode skill.
Key operations include input validation, core processing, and output verification.
Refer to the skill overview for detailed usage instructions.
For Humans
Install and configure oh-my-opencode:
https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md
For LLM Agents
curl -s https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md
Manual Installation
# Install OpenCode
curl -fsSL https://opencode.ai/install | bash
# Install oh-my-opencode
npm install -g oh-my-opencode
# Or use npm directly
npm install -g @opencode-ai/plugin
Configuration
{
"enabled": true,
"autoRun": false,
"timeout": 30000,
"retries": 3
}
Set environment variables as needed for authentication and endpoints.
Config Locations
- Project:
.opencode/oh-my-opencode.jsonc or .opencode/oh-my-opencode.json
- User:
~/.config/opencode/oh-my-opencode.jsonc or ~/.config/opencode/oh-my-opencode.json
Key Configuration Options
- Agents: Override models, temperatures, prompts for each agent
- Built-in Skills: playwright, git-master, and more
- Background Tasks: Concurrency limits per provider/model
- Categories: Domain-specific task delegation
- Hooks: 25+ configurable hooks
- MCPs: Built-in websearch (Exa), context7, grep_app
- LSP: Full LSP support with refactoring tools
Features
- Core operation execution with comprehensive error handling
- Input validation and output quality assurance
- Integration with existing workflows and toolchains
- Detailed logging for debugging and audit trails
Agent Orchestration
- Multi-model support with intelligent routing
- Domain-specific task categories (visual, business-logic, etc.)
- Fallback chains and model recommendations
Background Execution
- Run multiple agents in parallel like a real dev team
- Async task completion
- Todo continuation enforcement
Tools & Refactoring
- Full LSP / AST Tools (refactoring, rename, diagnostics)
- Hash-anchored edit tool (LINE#ID format)
- AST-aware code search and replacement
Claude Code Compatibility
- Commands, Agents, Skills, MCP, Hooks
- PreToolUse, PostToolUse, UserPromptSubmit, Stop hooks
- Full compatibility layer
Session Management
- List, read, search, analyze session history
- Session continuity across agents
- Session-based task continuation
Workflow Integration
- Receive input and validate format
- Route to appropriate handler based on input type
- Execute core operation with monitoring
- Transform output to expected format
- Return results or trigger follow-up actions
With OpenClaw
- Load oh-my-opencode skill in OpenClaw
- Ensure OpenCode is installed and configured
- Use agents as needed for tasks
- Leverage background execution for parallel work
Best Practices
- Start with Sisyphus for complex tasks
- Use Hephaestus for autonomous deep work
- Consult Oracle for architecture decisions
- Use Librarian for unfamiliar libraries
- Employ Explore for rapid codebase analysis
Common Patterns
- Parallel exploration: Fire 2-5 agents simultaneously
- Deep work: Use Hephaestus for thorough research first
- Debugging: Oracle after 2+ failed attempts
- Documentation: Librarian for official docs and OSS patterns
Troubleshooting
| Symptom |
Cause |
Fix |
| Operation times out |
Network or service issue |
Check connectivity and retry |
| Permission denied |
Missing credentials |
Verify API keys and access tokens |
| Invalid output |
Input format mismatch |
Validate input against expected schema |
Plugin Not Loading
- Verify config file location and format
- Check permissions and dependencies
- Review error logs:
opencode logs
Agent Issues
- Check model availability and API keys
- Review agent-specific configuration
- Validate permissions settings
Performance Issues
- Reduce concurrency limits
- Disable unused hooks
- Optimize model selections
Safety & Considerations
This section covers safety & considerations for the oh-my-opencode skill.
Key operations include input validation, core processing, and output verification.
Refer to the skill overview for detailed usage instructions.
Terms of Service
- OpenCode works with Claude, ChatGPT, and Gemini subscriptions
- Some plugins may have ToS implications
- Review official documentation for latest guidance
Security
- Use official installation sources only
- Verify plugin origins before installing
- Review permissions before loading skills
The Process
- Verify prerequisites – Check Node.js 18+, OpenCode and oh-my-opencode are installed
- Install or verify installation – Use oh-my-opencode-installation skill for guided setup
- Configure agents – Set models, temperatures, and permissions in config location
- Choose the right agent – Sisyphus for coordination, Hephaestus for deep work, Oracle for architecture, Librarian for docs, Explore for exploration
- Load skill in OpenClaw – Ensure the skill is accessible to your agent environment
- Execute tasks – Use agents with appropriate task categories for domain-specific work
- Monitor and iterate – Watch agent output, adjust configuration as needed
When NOT to Use
- Task is outside your authorization scope
- You need to implement controls (use implementing-* skills)
- Task is about analysis, not action (use analyzing-* skills)
- You don't have access to target systems
- Task requires compliance expertise (consult professionals)
- Task is about defense, not offense (use defensive skills)
Red Flags
- Trying to use without OpenCode – Oh My OpenCode is a harness on top of OpenCode, not a standalone tool
- Using agents incorrectly – Assigning simple tasks to Sisyphus (overkill) or complex tasks to quick category (under-scope)
- Ignoring fallback chains – Relying on single model when fallbacks configured for reliability
- Skipping verification – Not running lsp_diagnostics, build, or tests after agent completes
- Confusing agent capabilities – Using Librarian for code writing (use Hephaestus) or Explore for deep analysis (use Librarian)
- Overriding built-in skills – Removing playwright, git-master, which are critical for OpenCode workflows
Verification
- Installation verified: Run
opencode --version and oh-my-opencode --help - both should execute without error
- Agent configuration: Check
opencode config get agents shows configured agents with models
- Skill loaded: Invoke skill tool and verify content loads without errors
- Agent selection:
/agent sisyphus or /agent hephaestus should switch without error
- Feature working:
/help shows expected commands, /status shows valid session state
- Agent output: Agent responds with domain-appropriate guidance, not generic responses
- Background tasks: Parallel agent launches complete within timeout, results accessible
References
Anti-Rationalization Table
| Rationalization |
Reality |
| "I will handle auth later" |
Retrofitting auth is 10x harder. Build it from day one. |
| "APIs do not change" |
APIs change. Version your integrations and handle deprecations. |
| "Webhooks are optional" |
Without webhooks, you miss real-time events. They are essential. |
Related Skills
- oh-my-opencode-installation: Detailed installation guide
- oh-my-opencode-agents: Deep dive into each agent
- oh-my-opencode-configuration: Configuration options
- oh-my-opencode-features: Complete features list
- opencode-cli: OpenCode CLI usage
Process
- Analyze the task requirements
- Apply domain expertise
- Verify output quality
1---2name: oh-my-opencode3description: Use when working with OpenCode AI coding agent and oh-my-opencode harness to install, configure, and leverage its advanced features including Sisyphus, Hephaestus, Oracle, Librarian, and Explore agents4license: Apache-2.05---678# Oh My OpenCode Integration910## Overview1112Oh My OpenCode is the ultimate harness for OpenCode, providing advanced multi-model orchestration, curated agents, background task execution, and comprehensive tooling. This skill enables OpenClaw to leverage OpenCode's full potential with all the power of oh-my-opencode's agent ecosystem.1314## When to Use1516**Trigger phrases:**17- "oh my opencode"18- "Installing or configuring OpenCode with oh-my-opencode"19- "Operating OpenCode from OpenClaw environment"20- "Leveraging advanced agents (Sisyphus, Hephaestus, Oracle, Librarian, Explore)"212223- Installing or configuring OpenCode with oh-my-opencode24- Operating OpenCode from OpenClaw environment25- Leveraging advanced agents (Sisyphus, Hephaestus, Oracle, Librarian, Explore)26- Running background agents and parallel tasks27- Using LSP/AST tools, MCP servers, and Claude Code compatibility28- Implementing autonomous deep work with goal-oriented execution2930## Quick Start31321. **Install OpenCode and oh-my-opencode**:33 - Use the oh-my-opencode-installation skill for detailed setup34 - Or paste this to your LLM agent:35 ```36 Install and configure oh-my-opencode:37 https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md38 ```39402. **Initialize for your project**:41 ```42 cd /path/to/project43 opencode44 /init45 ```46473. **Load this skill in OpenClaw**:48 - Load the oh-my-opencode skill49 - Configure according to your needs5051## Core Agents52- Primary agent handles core task execution53- Validator agent checks output quality54- Reporter agent formats and delivers results55- Each agent operates with clear input/output contracts565758### Sisyphus — Main Orchestrator59- The primary agent that coordinates all others60- Uses Prometheus (planner) and Metis (plan consultant)61- Executes with "ultrawork" mode for autonomous completion62- Delegates to specialized agents based on task requirements6364### Hephaestus — Autonomous Deep Worker65- Goal-oriented execution (GPT 5.3 Codex Medium)66- Explores thoroughly before acting (2-5 parallel agents)67- End-to-end completion with verification68- Pattern matching for codebase consistency6970### Oracle — Architecture & Debugging71- High-IQ strategic consultation (GPT 5.2)72- Complex debugging after 2+ failed attempts73- Architecture design decisions74- Multi-system tradeoffs analysis7576### Librarian — Documentation & Search77- Official docs and open source implementations (GLM-4.7)78- Real-time source code digestion79- External library patterns and best practices8081### Explore — Fast Codebase Exploration82- Contextual grep for rapid codebase analysis83- Pattern discovery across multiple modules84- Quick file and symbol location8586## Installation Methods87This section covers installation methods for the oh-my-opencode skill.88Key operations include input validation, core processing, and output verification.89Refer to the skill overview for detailed usage instructions.909192### For Humans93```94Install and configure oh-my-opencode:95https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md96```9798### For LLM Agents99```bash100curl -s https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md101```102103### Manual Installation104```bash105# Install OpenCode106curl -fsSL https://opencode.ai/install | bash107108# Install oh-my-opencode109npm install -g oh-my-opencode110111# Or use npm directly112npm install -g @opencode-ai/plugin113```114115## Configuration116```json117{118 "enabled": true,119 "autoRun": false,120 "timeout": 30000,121 "retries": 3122}123```124125Set environment variables as needed for authentication and endpoints.126127128### Config Locations129- Project: `.opencode/oh-my-opencode.jsonc` or `.opencode/oh-my-opencode.json`130- User: `~/.config/opencode/oh-my-opencode.jsonc` or `~/.config/opencode/oh-my-opencode.json`131132### Key Configuration Options133- **Agents**: Override models, temperatures, prompts for each agent134- **Built-in Skills**: playwright, git-master, and more135- **Background Tasks**: Concurrency limits per provider/model136- **Categories**: Domain-specific task delegation137- **Hooks**: 25+ configurable hooks138- **MCPs**: Built-in websearch (Exa), context7, grep_app139- **LSP**: Full LSP support with refactoring tools140141## Features142- Core operation execution with comprehensive error handling143- Input validation and output quality assurance144- Integration with existing workflows and toolchains145- Detailed logging for debugging and audit trails146147148### Agent Orchestration149- Multi-model support with intelligent routing150- Domain-specific task categories (visual, business-logic, etc.)151- Fallback chains and model recommendations152153### Background Execution154- Run multiple agents in parallel like a real dev team155- Async task completion156- Todo continuation enforcement157158### Tools & Refactoring159- Full LSP / AST Tools (refactoring, rename, diagnostics)160- Hash-anchored edit tool (LINE#ID format)161- AST-aware code search and replacement162163### Claude Code Compatibility164- Commands, Agents, Skills, MCP, Hooks165- PreToolUse, PostToolUse, UserPromptSubmit, Stop hooks166- Full compatibility layer167168### Session Management169- List, read, search, analyze session history170- Session continuity across agents171- Session-based task continuation172173## Workflow Integration1741. Receive input and validate format1752. Route to appropriate handler based on input type1763. Execute core operation with monitoring1774. Transform output to expected format1785. Return results or trigger follow-up actions179180181### With OpenClaw1821. Load oh-my-opencode skill in OpenClaw1832. Ensure OpenCode is installed and configured1843. Use agents as needed for tasks1854. Leverage background execution for parallel work186187### Best Practices188- Start with Sisyphus for complex tasks189- Use Hephaestus for autonomous deep work190- Consult Oracle for architecture decisions191- Use Librarian for unfamiliar libraries192- Employ Explore for rapid codebase analysis193194### Common Patterns195- **Parallel exploration**: Fire 2-5 agents simultaneously196- **Deep work**: Use Hephaestus for thorough research first197- **Debugging**: Oracle after 2+ failed attempts198- **Documentation**: Librarian for official docs and OSS patterns199200## Troubleshooting201| Symptom | Cause | Fix |202|---------|-------|-----|203| Operation times out | Network or service issue | Check connectivity and retry |204| Permission denied | Missing credentials | Verify API keys and access tokens |205| Invalid output | Input format mismatch | Validate input against expected schema |206207208### Plugin Not Loading2091. Verify config file location and format2102. Check permissions and dependencies2113. Review error logs: `opencode logs`212213### Agent Issues2141. Check model availability and API keys2152. Review agent-specific configuration2163. Validate permissions settings217218### Performance Issues219- Reduce concurrency limits220- Disable unused hooks221- Optimize model selections222223## Safety & Considerations224This section covers safety & considerations for the oh-my-opencode skill.225Key operations include input validation, core processing, and output verification.226Refer to the skill overview for detailed usage instructions.227228229### Terms of Service230- OpenCode works with Claude, ChatGPT, and Gemini subscriptions231- Some plugins may have ToS implications232- Review official documentation for latest guidance233234### Security235- Use official installation sources only236- Verify plugin origins before installing237- Review permissions before loading skills238239## The Process2402411. **Verify prerequisites** – Check Node.js 18+, OpenCode and oh-my-opencode are installed2422. **Install or verify installation** – Use oh-my-opencode-installation skill for guided setup2433. **Configure agents** – Set models, temperatures, and permissions in config location2444. **Choose the right agent** – Sisyphus for coordination, Hephaestus for deep work, Oracle for architecture, Librarian for docs, Explore for exploration2455. **Load skill in OpenClaw** – Ensure the skill is accessible to your agent environment2466. **Execute tasks** – Use agents with appropriate task categories for domain-specific work2477. **Monitor and iterate** – Watch agent output, adjust configuration as needed248249## When NOT to Use250251- Task is outside your authorization scope252- You need to implement controls (use implementing-* skills)253- Task is about analysis, not action (use analyzing-* skills)254- You don't have access to target systems255- Task requires compliance expertise (consult professionals)256- Task is about defense, not offense (use defensive skills)257258259## Red Flags260261- **Trying to use without OpenCode** – Oh My OpenCode is a harness on top of OpenCode, not a standalone tool262- **Using agents incorrectly** – Assigning simple tasks to Sisyphus (overkill) or complex tasks to quick category (under-scope)263- **Ignoring fallback chains** – Relying on single model when fallbacks configured for reliability264- **Skipping verification** – Not running lsp_diagnostics, build, or tests after agent completes265- **Confusing agent capabilities** – Using Librarian for code writing (use Hephaestus) or Explore for deep analysis (use Librarian)266- **Overriding built-in skills** – Removing playwright, git-master, which are critical for OpenCode workflows267268## Verification269270- **Installation verified**: Run `opencode --version` and `oh-my-opencode --help` - both should execute without error271- **Agent configuration**: Check `opencode config get agents` shows configured agents with models272- **Skill loaded**: Invoke skill tool and verify content loads without errors273- **Agent selection**: `/agent sisyphus` or `/agent hephaestus` should switch without error274- **Feature working**: `/help` shows expected commands, `/status` shows valid session state275- **Agent output**: Agent responds with domain-appropriate guidance, not generic responses276- **Background tasks**: Parallel agent launches complete within timeout, results accessible277278## References279280- Official Documentation: https://opencode.ai/docs/281- Oh My OpenCode: https://github.com/code-yeongyu/oh-my-opencode282- Installation Guide: https://github.com/code-yeongyu/oh-my-opencode/blob/master/docs/guide/installation.md283- Features: https://github.com/code-yeongyu/oh-my-opencode/blob/master/docs/features.md284- Configuration: https://github.com/code-yeongyu/oh-my-opencode/blob/master/docs/configurations.md285- Agent-Model Matching: https://github.com/code-yeongyu/oh-my-opencode/blob/master/docs/guide/agent-model-matching.md286287## Anti-Rationalization Table288289| Rationalization | Reality |290|---|---|291| "I will handle auth later" | Retrofitting auth is 10x harder. Build it from day one. |292| "APIs do not change" | APIs change. Version your integrations and handle deprecations. |293| "Webhooks are optional" | Without webhooks, you miss real-time events. They are essential. |294295## Related Skills296297- oh-my-opencode-installation: Detailed installation guide298- oh-my-opencode-agents: Deep dive into each agent299- oh-my-opencode-configuration: Configuration options300- oh-my-opencode-features: Complete features list301- opencode-cli: OpenCode CLI usage302303## Process3043051. Analyze the task requirements3062. Apply domain expertise3073. Verify output quality