Skip to main content

One post tagged with "oh-my-opencode"

View All Tags

oh-my-opencodeをClaude Code互換レイヤーのみで使う

· 2 min read

まとめ

  • oh-my-opencodeはClaude Codeの.claude/ディレクトリ(commands/skills/agents/hooks)を読み込む互換レイヤーを提供する
  • 一方でSisyphus/Atlas/Prometheus等のオーケストレーション機能も含まれており、自動的に介入してくることがある
  • oh-my-opencode.jsonで適切に無効化設定をすれば、互換レイヤーだけを利用できる
  • 設定ミスしやすいポイント: disabledではなくdisabledisabled_commandsに指定できる値はスキーマで限定されている

問題

oh-my-opencodeをインストールすると、Claude Code互換機能だけでなく、以下のような自動機能も有効になる:

  • Sisyphus(オーケストレーションエージェント)
  • Atlas(ワークフロー自動化)
  • /start-workコマンド(Prometheusプランからの自動実行)
  • keyword-detector(キーワード検出による自動介入)

これらを使わず、.claude/の読み込みやMCP共有だけを利用したいケースがある。

解決方法

~/.config/opencode/oh-my-opencode.jsonを以下のように設定:

{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
"claude_code": {
"hooks": true,
"commands": true,
"skills": true,
"agents": true,
"mcps": true,
"plugins": true
},
"sisyphus_agent": {
"disabled": true
},
"disabled_agents": [
"sisyphus",
"atlas",
"prometheus"
],
"disabled_commands": [
"init-deep",
"start-work"
],
"disabled_hooks": [
"start-work",
"atlas",
"ralph-loop",
"keyword-detector",
"auto-slash-command",
"agent-usage-reminder"
],
"agents": {
"sisyphus": {
"disable": true
},
"atlas": {
"disable": true
},
"prometheus": {
"disable": true
}
}
}

設定のポイント

無効化の仕組み

設定キー役割
sisyphus_agent.disabledSisyphusオーケストレーション全体を無効化
disabled_agentsエージェント定義を削除
disabled_commandsスラッシュコマンドを無効化
disabled_hooksライフサイクルフックを無効化
agents.X.disable個別エージェントを無効化

claude_codeオブジェクト

互換レイヤーの各機能を個別にon/offできる:

"claude_code": {
"hooks": true, // .claude/hooks/
"commands": true, // .claude/commands/
"skills": true, // .claude/skills/
"agents": true, // .claude/agents/
"mcps": true, // .claude/mcp.json
"plugins": true // .claude/plugins/
}

ref