設定リファレンス
Oh My OpenAgentは意見を持っていますが、好みに応じて調整可能です。ほとんどのユーザーは何も設定する必要はありません — bunx oh-my-opencode installを実行して始めてください。
クイックスタート
{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
"agents": {
"oracle": { "model": "openai/gpt-5.4", "variant": "high" },
"explore": { "model": "github-copilot/grok-code-fast-1" }
},
"categories": {
"quick": { "model": "opencode/gpt-5-nano" },
"visual-engineering": { "model": "google/gemini-3.1-pro" }
}
}設定ファイルの場所
.opencode/oh-my-opencode.json(プロジェクトレベル)~/.config/opencode/oh-my-opencode.json(ユーザーレベル)
JSONCがサポートされており、コメントと末尾のカンマを使用できます。
エージェント
Sisyphus、Hephaestus、Oracle、Librarian、Explore、Multimodal Looker、Prometheus、Metis、Momus、Atlas、Frontend Engineerなど、組み込みエージェントの動作を設定します。
オーバーライドオプション
| Option | Type | Default | Description |
|---|---|---|---|
| model | string | - | モデル識別子(例:openai/gpt-4o) |
| variant | string | - | モデルバリアント(max, high, medium, low) |
| category | string | - | カテゴリから設定を継承 |
| temperature | number | - | サンプリング温度(0-2) |
| top_p | number | - | Top-pサンプリング(0-1) |
| prompt | string | - | システムプロンプトを完全にオーバーライド |
| prompt_append | string | - | システムプロンプトにテキストを追加 |
| tools | Record | - | 特定のツールを有効または無効にする |
| disable | boolean | false | このエージェントを無効にする |
| maxTokens | number | - | レスポンスの最大トークン数 |
| thinking | object | - | 拡張思考設定 |
| reasoningEffort | string | - | 推論努力:low, medium, high, xhigh |
権限
| Permission | Values | Description |
|---|---|---|
| edit | ask / allow / deny | ファイル編集機能 |
| bash | ask / allow / deny | Bashコマンド実行 |
| webfetch | ask / allow / deny | Webリクエスト機能 |
| doom_loop | ask / allow / deny | 無限ループオーバーライド |
| external_directory | ask / allow / deny | プロジェクト外のファイルへのアクセス |
カテゴリ
カテゴリを使用すると、エージェントが継承できる共有設定を定義できます。
| Category | Default Model | Description |
|---|---|---|
| visual-engineering | gemini-3.1-pro (high) | フロントエンド、UI/UX、デザインタスク |
| ultrabrain | gpt-5.3-codex (xhigh) | 深い論理的推論 |
| deep | gpt-5.3-codex (medium) | 自律的な問題解決と徹底したリサーチ |
| artistry | gemini-3.1-pro (high) | クリエイティブタスク |
| quick | claude-haiku-4-5 | 些細で高速なタスク |
| unspecified-low | claude-sonnet-4-6 | 低労力の一般的タスク |
| unspecified-high | gpt-5.4 (high) | 高労力の一般的タスク |
| writing | gemini-3-flash | ドキュメントと散文 |
カテゴリで利用可能なオプション:model, variant, temperature, top_p, maxTokens, thinking, reasoningEffort, textVerbosity, tools, prompt_append, is_unstable_agent。
スキル
組み込みスキルにはplaywright、agent-browser、git-masterが含まれます。カスタムスキルを定義することもできます。
"skills": {
"my-custom-skill": {
"description": "A custom skill for specific tasks",
"instructions": "Always use this skill when..."
}
}バックグラウンドタスク
| Option | Type | Default | Description |
|---|---|---|---|
| defaultConcurrency | number | - | デフォルトの最大並列タスク数 |
| staleTimeoutMs | number | - | 古いタスクのタイムアウト(ミリ秒) |
| providerConcurrency | number | - | プロバイダーごとの並列制限 |
| modelConcurrency | number | - | モデルごとの並列制限 |
優先度:modelConcurrency >providerConcurrency >defaultConcurrency
フック
フックを使用すると、さまざまなライフサイクルポイントで機能を拡張できます。
agent-usage-reminder
anthropic-context-window-limit-recovery
anthropic-effort
atlas
auto-slash-command
auto-update-checker
background-notification
category-skill-reminder
claude-code-hooks
comment-checker
compaction-context-injector
compaction-todo-preserver
delegate-task-retry
directory-agents-injector
directory-readme-injector
edit-error-recovery
interactive-bash-session
keyword-detector
non-interactive-env
prometheus-md-only
question-label-truncator
ralph-loop
rules-injector
session-recovery
sisyphus-junior-notepad
start-work
stop-continuation-guard
subagent-question-blocker
task-reminder
task-resume-info
tasks-todowrite-disabler
think-mode
thinking-block-validator
unstable-agent-babysitter
write-existing-file-guard
MCP
websearch
Exa提供の高品質検索結果。
context7
ドキュメント取得とコンテキスト管理。
grep_app
GitHubコード検索統合。
ブラウザ自動化
| Tool | Description | Use Case |
|---|---|---|
| playwright | フルブラウザ自動化(デフォルト) | テスト、複雑なインタラクション |
| agent-browser | 軽量ブラウザエージェント | クイックルックアップ、簡単なスクレイピング |
Tmux統合
| Option | Type | Default | Description |
|---|---|---|---|
| enabled | boolean | - | Tmux統合を有効にする |
| layout | string | - | Tmuxウィンドウレイアウト |
| main_pane_size | string | - | メインペインのサイズ |
Git Master
| Option | Type | Default | Description |
|---|---|---|---|
| commit_footer | string | - | コミットメッセージに追加するテキスト |
| include_co_authored_by | boolean | - | Co-authored-byトレーラーを追加 |
実験的機能
| Option | Type | Default | Description |
|---|---|---|---|
| aggressive_truncation | boolean | - | 出力を積極的に切り詰める |
| auto_resume | boolean | - | 中断されたタスクを自動的に再開 |
| preemptive_compaction | boolean | - | 制限前にコンテキストを圧縮 |
| truncate_all_tool_outputs | boolean | - | すべてのツール出力を切り詰める |
LSP設定
| Option | Type | Default | Description |
|---|---|---|---|
| command | string | - | LSPサーバーコマンド |
| extensions | array | - | 一致させるファイル拡張子 |
| priority | number | - | サーバーの優先度 |
| env | object | - | 環境変数 |
| initialization | object | - | 初期化オプション |
| disabled | boolean | - | このLSPを無効にする |
環境変数
OPENCODE_CONFIG_DIR
デフォルトの設定ディレクトリパスを上書きします。
コメントチェッカー
コード内のコメントを検証します。カスタムプロンプトには{{comments}}プレースホルダーを使用してください。