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 harness4 to install, configure, and leverage its advanced features including Sisyphus, Hephaestus,5 Oracle, Librarian, and Explore agents6domain: integrations7author: oyi778license: Apache-2.09subdomain: ai-coding-tools10tags:11- ai-agent12- api13- integrations14- opencode15- third-party16version: 1.0.017category: integrations18metadata:19 source: https://skillmd.com/skills/oyi77/oh-my-opencode20---212223# Oh My OpenCode Integration2425## Overview2627Oh 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.2829## When to Use3031**Trigger phrases:**32- "oh my opencode"33- "Installing or configuring OpenCode with oh-my-opencode"34- "Operating OpenCode from OpenClaw environment"35- "Leveraging advanced agents (Sisyphus, Hephaestus, Oracle, Librarian, Explore)"363738- Installing or configuring OpenCode with oh-my-opencode39- Operating OpenCode from OpenClaw environment40- Leveraging advanced agents (Sisyphus, Hephaestus, Oracle, Librarian, Explore)41- Running background agents and parallel tasks42- Using LSP/AST tools, MCP servers, and Claude Code compatibility43- Implementing autonomous deep work with goal-oriented execution4445## Quick Start46471. **Install OpenCode and oh-my-opencode**:48 - Use the oh-my-opencode-installation skill for detailed setup49 - Or paste this to your LLM agent:50 ```51 Install and configure oh-my-opencode:52 https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md53 ```54552. **Initialize for your project**:56 ```57 cd /path/to/project58 opencode59 /init60 ```61623. **Load this skill in OpenClaw**:63 - Load the oh-my-opencode skill64 - Configure according to your needs6566## Core Agents67- Primary agent handles core task execution68- Validator agent checks output quality69- Reporter agent formats and delivers results70- Each agent operates with clear input/output contracts717273### Sisyphus — Main Orchestrator74- The primary agent that coordinates all others75- Uses Prometheus (planner) and Metis (plan consultant)76- Executes with "ultrawork" mode for autonomous completion77- Delegates to specialized agents based on task requirements7879### Hephaestus — Autonomous Deep Worker80- Goal-oriented execution (GPT 5.3 Codex Medium)81- Explores thoroughly before acting (2-5 parallel agents)82- End-to-end completion with verification83- Pattern matching for codebase consistency8485### Oracle — Architecture & Debugging86- High-IQ strategic consultation (GPT 5.2)87- Complex debugging after 2+ failed attempts88- Architecture design decisions89- Multi-system tradeoffs analysis9091### Librarian — Documentation & Search92- Official docs and open source implementations (GLM-4.7)93- Real-time source code digestion94- External library patterns and best practices9596### Explore — Fast Codebase Exploration97- Contextual grep for rapid codebase analysis98- Pattern discovery across multiple modules99- Quick file and symbol location100101## Installation Methods102This section covers installation methods for the oh-my-opencode skill.103Key operations include input validation, core processing, and output verification.104Refer to the skill overview for detailed usage instructions.105106107### For Humans108```109Install and configure oh-my-opencode:110https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md111```112113### For LLM Agents114```bash115curl -s https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md116```117118### Manual Installation119```bash120# Install OpenCode121curl -fsSL https://opencode.ai/install | bash122123# Install oh-my-opencode124npm install -g oh-my-opencode125126# Or use npm directly127npm install -g @opencode-ai/plugin128```129130## Configuration131```json132{133 "enabled": true,134 "autoRun": false,135 "timeout": 30000,136 "retries": 3137}138```139140Set environment variables as needed for authentication and endpoints.141142143### Config Locations144- Project: `.opencode/oh-my-opencode.jsonc` or `.opencode/oh-my-opencode.json`145- User: `~/.config/opencode/oh-my-opencode.jsonc` or `~/.config/opencode/oh-my-opencode.json`146147### Key Configuration Options148- **Agents**: Override models, temperatures, prompts for each agent149- **Built-in Skills**: playwright, git-master, and more150- **Background Tasks**: Concurrency limits per provider/model151- **Categories**: Domain-specific task delegation152- **Hooks**: 25+ configurable hooks153- **MCPs**: Built-in websearch (Exa), context7, grep_app154- **LSP**: Full LSP support with refactoring tools155156## Features157- Core operation execution with comprehensive error handling158- Input validation and output quality assurance159- Integration with existing workflows and toolchains160- Detailed logging for debugging and audit trails161162163### Agent Orchestration164- Multi-model support with intelligent routing165- Domain-specific task categories (visual, business-logic, etc.)166- Fallback chains and model recommendations167168### Background Execution169- Run multiple agents in parallel like a real dev team170- Async task completion171- Todo continuation enforcement172173### Tools & Refactoring174- Full LSP / AST Tools (refactoring, rename, diagnostics)175- Hash-anchored edit tool (LINE#ID format)176- AST-aware code search and replacement177178### Claude Code Compatibility179- Commands, Agents, Skills, MCP, Hooks180- PreToolUse, PostToolUse, UserPromptSubmit, Stop hooks181- Full compatibility layer182183### Session Management184- List, read, search, analyze session history185- Session continuity across agents186- Session-based task continuation187188## Workflow Integration1891. Receive input and validate format1902. Route to appropriate handler based on input type1913. Execute core operation with monitoring1924. Transform output to expected format1935. Return results or trigger follow-up actions194195196### With OpenClaw1971. Load oh-my-opencode skill in OpenClaw1982. Ensure OpenCode is installed and configured1993. Use agents as needed for tasks2004. Leverage background execution for parallel work201202### Best Practices203- Start with Sisyphus for complex tasks204- Use Hephaestus for autonomous deep work205- Consult Oracle for architecture decisions206- Use Librarian for unfamiliar libraries207- Employ Explore for rapid codebase analysis208209### Common Patterns210- **Parallel exploration**: Fire 2-5 agents simultaneously211- **Deep work**: Use Hephaestus for thorough research first212- **Debugging**: Oracle after 2+ failed attempts213- **Documentation**: Librarian for official docs and OSS patterns214215## Troubleshooting216| Symptom | Cause | Fix |217|---------|-------|-----|218| Operation times out | Network or service issue | Check connectivity and retry |219| Permission denied | Missing credentials | Verify API keys and access tokens |220| Invalid output | Input format mismatch | Validate input against expected schema |221222223### Plugin Not Loading2241. Verify config file location and format2252. Check permissions and dependencies2263. Review error logs: `opencode logs`227228### Agent Issues2291. Check model availability and API keys2302. Review agent-specific configuration2313. Validate permissions settings232233### Performance Issues234- Reduce concurrency limits235- Disable unused hooks236- Optimize model selections237238## Safety & Considerations239This section covers safety & considerations for the oh-my-opencode skill.240Key operations include input validation, core processing, and output verification.241Refer to the skill overview for detailed usage instructions.242243244### Terms of Service245- OpenCode works with Claude, ChatGPT, and Gemini subscriptions246- Some plugins may have ToS implications247- Review official documentation for latest guidance248249### Security250- Use official installation sources only251- Verify plugin origins before installing252- Review permissions before loading skills253254## The Process2552561. **Verify prerequisites** – Check Node.js 18+, OpenCode and oh-my-opencode are installed2572. **Install or verify installation** – Use oh-my-opencode-installation skill for guided setup2583. **Configure agents** – Set models, temperatures, and permissions in config location2594. **Choose the right agent** – Sisyphus for coordination, Hephaestus for deep work, Oracle for architecture, Librarian for docs, Explore for exploration2605. **Load skill in OpenClaw** – Ensure the skill is accessible to your agent environment2616. **Execute tasks** – Use agents with appropriate task categories for domain-specific work2627. **Monitor and iterate** – Watch agent output, adjust configuration as needed263264## When NOT to Use265266- Task is outside your authorization scope267- You need to implement controls (use implementing-* skills)268- Task is about analysis, not action (use analyzing-* skills)269- You don't have access to target systems270- Task requires compliance expertise (consult professionals)271- Task is about defense, not offense (use defensive skills)272273274## Red Flags275276- **Trying to use without OpenCode** – Oh My OpenCode is a harness on top of OpenCode, not a standalone tool277- **Using agents incorrectly** – Assigning simple tasks to Sisyphus (overkill) or complex tasks to quick category (under-scope)278- **Ignoring fallback chains** – Relying on single model when fallbacks configured for reliability279- **Skipping verification** – Not running lsp_diagnostics, build, or tests after agent completes280- **Confusing agent capabilities** – Using Librarian for code writing (use Hephaestus) or Explore for deep analysis (use Librarian)281- **Overriding built-in skills** – Removing playwright, git-master, which are critical for OpenCode workflows282283## Verification284285- **Installation verified**: Run `opencode --version` and `oh-my-opencode --help` - both should execute without error286- **Agent configuration**: Check `opencode config get agents` shows configured agents with models287- **Skill loaded**: Invoke skill tool and verify content loads without errors288- **Agent selection**: `/agent sisyphus` or `/agent hephaestus` should switch without error289- **Feature working**: `/help` shows expected commands, `/status` shows valid session state290- **Agent output**: Agent responds with domain-appropriate guidance, not generic responses291- **Background tasks**: Parallel agent launches complete within timeout, results accessible292293## References294295- Official Documentation: https://opencode.ai/docs/296- Oh My OpenCode: https://github.com/code-yeongyu/oh-my-opencode297- Installation Guide: https://github.com/code-yeongyu/oh-my-opencode/blob/master/docs/guide/installation.md298- Features: https://github.com/code-yeongyu/oh-my-opencode/blob/master/docs/features.md299- Configuration: https://github.com/code-yeongyu/oh-my-opencode/blob/master/docs/configurations.md300- Agent-Model Matching: https://github.com/code-yeongyu/oh-my-opencode/blob/master/docs/guide/agent-model-matching.md301302## Anti-Rationalization Table303304| Rationalization | Reality |305|---|---|306| "I will handle auth later" | Retrofitting auth is 10x harder. Build it from day one. |307| "APIs do not change" | APIs change. Version your integrations and handle deprecations. |308| "Webhooks are optional" | Without webhooks, you miss real-time events. They are essential. |309310## Related Skills311312- oh-my-opencode-installation: Detailed installation guide313- oh-my-opencode-agents: Deep dive into each agent314- oh-my-opencode-configuration: Configuration options315- oh-my-opencode-features: Complete features list316- opencode-cli: OpenCode CLI usage317318## Process3193201. Analyze the task requirements3212. Apply domain expertise3223. Verify output quality