·tips

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

oh-my-opencodeのSisyphus/Atlas等のオーケストレーション機能を無効化し、Claude Code互換レイヤー(.claude/の読み込み等)だけを利用する設定

2 min read
Writing style

まとめ

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

設定

~/.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
  },
  "git_master": {
    "commit_footer": false,
    "include_co_authored_by": false
  },
  "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
    },
    "hephaestus": {
      "disable": true
    }
  }
}

設定のポイント

  • claude_code.*: 互換レイヤーの各機能(hooks/commands/skills/agents/mcps/plugins)を個別にon/off
  • sisyphus_agent.disabled: Sisyphusオーケストレーション全体を無効化
  • disabled_agents / disabled_commands / disabled_hooks: エージェント定義・スラッシュコマンド・ライフサイクルフックを無効化
  • agents.X.disable: スキーマのdisabled_agentsに未登録のエージェント(Hephaestus等)もこちらで無効化できる
  • git_master.*: コミットメッセージへの「Ultraworked with Sisyphus」フッターとCo-authored-by: Sisyphusトレーラーを無効化

ref