oh-my-opencode 3.0.0-beta.1 → 3.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +109 -89
- package/README.md +113 -104
- package/README.zh-cn.md +664 -511
- package/bin/oh-my-opencode.js +80 -0
- package/bin/platform.js +38 -0
- package/bin/platform.test.ts +148 -0
- package/dist/agents/metis.d.ts +1 -0
- package/dist/agents/momus.d.ts +1 -1
- package/dist/agents/orchestrator-sisyphus.d.ts +3 -2
- package/dist/agents/prometheus-prompt.d.ts +3 -1
- package/dist/agents/sisyphus-junior.d.ts +6 -1
- package/dist/agents/types.d.ts +1 -0
- package/dist/agents/utils.d.ts +3 -2
- package/dist/cli/config-manager.d.ts +9 -1
- package/dist/cli/doctor/checks/opencode.d.ts +5 -1
- package/dist/cli/index.js +3886 -3763
- package/dist/cli/run/events.d.ts +1 -0
- package/dist/cli/types.d.ts +3 -0
- package/dist/config/schema.d.ts +538 -208
- package/dist/features/background-agent/concurrency.d.ts +17 -0
- package/dist/features/background-agent/manager.d.ts +44 -5
- package/dist/features/background-agent/types.d.ts +9 -1
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -1
- package/dist/features/builtin-commands/templates/refactor.d.ts +1 -1
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/claude-code-session-state/state.d.ts +6 -1
- package/dist/features/context-injector/index.d.ts +1 -1
- package/dist/features/context-injector/injector.d.ts +1 -1
- package/dist/features/hook-message-injector/index.d.ts +2 -2
- package/dist/features/hook-message-injector/injector.d.ts +7 -0
- package/dist/features/opencode-skill-loader/skill-content.d.ts +17 -2
- package/dist/features/skill-mcp-manager/manager.d.ts +11 -0
- package/dist/features/task-toast-manager/index.d.ts +1 -1
- package/dist/features/task-toast-manager/manager.d.ts +2 -1
- package/dist/features/task-toast-manager/types.d.ts +5 -0
- package/dist/hooks/agent-usage-reminder/constants.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +1 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +0 -5
- package/dist/hooks/auto-update-checker/checker.d.ts +1 -1
- package/dist/hooks/auto-update-checker/index.d.ts +4 -0
- package/dist/hooks/background-compaction/index.d.ts +19 -0
- package/dist/hooks/background-notification/index.d.ts +6 -0
- package/dist/hooks/comment-checker/cli.d.ts +0 -1
- package/dist/hooks/compaction-context-injector/index.d.ts +7 -1
- package/dist/hooks/delegate-task-retry/index.d.ts +24 -0
- package/dist/hooks/index.d.ts +1 -2
- package/dist/hooks/keyword-detector/index.d.ts +2 -1
- package/dist/hooks/prometheus-md-only/constants.d.ts +2 -2
- package/dist/hooks/prometheus-md-only/index.d.ts +1 -1
- package/dist/hooks/ralph-loop/index.d.ts +1 -0
- package/dist/hooks/ralph-loop/types.d.ts +1 -0
- package/dist/index.js +22506 -23819
- package/dist/mcp/context7.d.ts +1 -0
- package/dist/mcp/grep-app.d.ts +1 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/websearch.d.ts +1 -0
- package/dist/plugin-handlers/config-handler.d.ts +2 -0
- package/dist/plugin-handlers/config-handler.test.d.ts +1 -0
- package/dist/shared/agent-tool-restrictions.d.ts +7 -0
- package/dist/shared/agent-variant.d.ts +5 -0
- package/dist/shared/agent-variant.test.d.ts +1 -0
- package/dist/shared/deep-merge.test.d.ts +1 -0
- package/dist/shared/first-message-variant.d.ts +11 -0
- package/dist/shared/first-message-variant.test.d.ts +1 -0
- package/dist/shared/index.d.ts +6 -0
- package/dist/shared/migration.d.ts +1 -0
- package/dist/shared/opencode-version.d.ts +6 -3
- package/dist/shared/permission-compat.d.ts +22 -7
- package/dist/shared/session-cursor.d.ts +13 -0
- package/dist/shared/session-cursor.test.d.ts +1 -0
- package/dist/shared/shell-env.d.ts +41 -0
- package/dist/shared/shell-env.test.d.ts +1 -0
- package/dist/shared/system-directive.d.ts +31 -0
- package/dist/shared/zip-extractor.d.ts +1 -0
- package/dist/tools/{sisyphus-task → delegate-task}/constants.d.ts +3 -3
- package/dist/tools/{sisyphus-task → delegate-task}/index.d.ts +1 -1
- package/dist/tools/{sisyphus-task → delegate-task}/tools.d.ts +5 -3
- package/dist/tools/delegate-task/tools.test.d.ts +1 -0
- package/dist/tools/{sisyphus-task → delegate-task}/types.d.ts +1 -1
- package/dist/tools/glob/cli.d.ts +4 -0
- package/dist/tools/glob/cli.test.d.ts +1 -0
- package/dist/tools/glob/types.d.ts +1 -0
- package/dist/tools/index.d.ts +3 -1
- package/dist/tools/interactive-bash/constants.d.ts +1 -1
- package/dist/tools/look-at/tools.d.ts +7 -0
- package/dist/tools/look-at/tools.test.d.ts +1 -0
- package/dist/tools/lsp/client.d.ts +1 -3
- package/dist/tools/lsp/config.test.d.ts +1 -0
- package/dist/tools/lsp/index.d.ts +1 -1
- package/dist/tools/lsp/tools.d.ts +1 -6
- package/dist/tools/lsp/types.d.ts +0 -33
- package/dist/tools/lsp/utils.d.ts +1 -4
- package/dist/tools/skill/tools.d.ts +1 -7
- package/dist/tools/skill/types.d.ts +3 -0
- package/dist/tools/skill-mcp/types.d.ts +1 -1
- package/dist/tools/slashcommand/tools.d.ts +1 -7
- package/package.json +21 -14
- package/postinstall.mjs +43 -0
- package/dist/agents/build-prompt.d.ts +0 -31
- package/dist/agents/plan-prompt.d.ts +0 -64
- package/dist/auth/antigravity/accounts.d.ts +0 -40
- package/dist/auth/antigravity/browser.d.ts +0 -27
- package/dist/auth/antigravity/cli.d.ts +0 -2
- package/dist/auth/antigravity/constants.d.ts +0 -98
- package/dist/auth/antigravity/fetch.d.ts +0 -69
- package/dist/auth/antigravity/index.d.ts +0 -13
- package/dist/auth/antigravity/integration.test.d.ts +0 -10
- package/dist/auth/antigravity/message-converter.d.ts +0 -54
- package/dist/auth/antigravity/oauth.d.ts +0 -51
- package/dist/auth/antigravity/plugin.d.ts +0 -54
- package/dist/auth/antigravity/project.d.ts +0 -10
- package/dist/auth/antigravity/request.d.ts +0 -116
- package/dist/auth/antigravity/response.d.ts +0 -137
- package/dist/auth/antigravity/storage.d.ts +0 -5
- package/dist/auth/antigravity/thinking.d.ts +0 -278
- package/dist/auth/antigravity/thinking.test.d.ts +0 -10
- package/dist/auth/antigravity/thought-signature-store.d.ts +0 -52
- package/dist/auth/antigravity/token.d.ts +0 -38
- package/dist/auth/antigravity/tools.d.ts +0 -119
- package/dist/auth/antigravity/types.d.ts +0 -229
- package/dist/cli/ast-grep-napi.linux-x64-gnu-jfv8414z.node +0 -0
- package/dist/cli/ast-grep-napi.linux-x64-musl-8cj2e5cf.node +0 -0
- package/dist/cli/commands/auth.d.ts +0 -2
- package/dist/google-auth.d.ts +0 -3
- package/dist/google-auth.js +0 -3871
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-executor.d.ts +0 -3
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-purge-errors.d.ts +0 -7
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-storage.d.ts +0 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-supersede.d.ts +0 -6
- package/dist/hooks/comment-checker/constants.d.ts +0 -3
- package/dist/hooks/comment-checker/filters/bdd.d.ts +0 -2
- package/dist/hooks/comment-checker/filters/directive.d.ts +0 -2
- package/dist/hooks/comment-checker/filters/docstring.d.ts +0 -2
- package/dist/hooks/comment-checker/filters/index.d.ts +0 -7
- package/dist/hooks/comment-checker/filters/shebang.d.ts +0 -2
- package/dist/hooks/comment-checker/output/formatter.d.ts +0 -2
- package/dist/hooks/comment-checker/output/index.d.ts +0 -2
- package/dist/hooks/comment-checker/output/xml-builder.d.ts +0 -2
- package/dist/hooks/empty-message-sanitizer/index.d.ts +0 -12
- package/dist/hooks/preemptive-compaction/constants.d.ts +0 -3
- package/dist/hooks/preemptive-compaction/index.d.ts +0 -24
- package/dist/hooks/preemptive-compaction/types.d.ts +0 -17
- package/dist/tools/ast-grep/napi.d.ts +0 -13
- package/dist/tools/interactive-bash/types.d.ts +0 -3
- /package/dist/{auth/antigravity/accounts.test.d.ts → agents/momus.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/browser.test.d.ts → agents/prometheus-prompt.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/cli.test.d.ts → agents/sisyphus-junior.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/constants.test.d.ts → features/claude-code-session-state/state.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/oauth.test.d.ts → hooks/auto-update-checker/checker.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/request.test.d.ts → hooks/auto-update-checker/index.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/storage.test.d.ts → hooks/comment-checker/cli.test.d.ts} +0 -0
- /package/dist/{auth/antigravity/token.test.d.ts → hooks/delegate-task-retry/index.test.d.ts} +0 -0
- /package/dist/{tools/sisyphus-task/tools.test.d.ts → plugin-config.test.d.ts} +0 -0
package/README.ja.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
> [!NOTE]
|
|
2
2
|
>
|
|
3
|
-
>
|
|
3
|
+
> [](https://sisyphuslabs.ai)
|
|
4
|
+
> > **Sisyphusの完全製品化バージョンを構築中です。フロンティアエージェントの未来を定義します。<br />[こちら](https://sisyphuslabs.ai)からウェイトリストに参加してください。**
|
|
5
|
+
|
|
6
|
+
> [!TIP]
|
|
4
7
|
>
|
|
5
|
-
> [](https://github.com/code-yeongyu/oh-my-opencode/releases/tag/v3.0.0-beta.10)
|
|
9
|
+
> > **オーケストレーターがベータ版で利用可能になりました。`oh-my-opencode@3.0.0-beta.10`を使用してインストールしてください。**
|
|
7
10
|
>
|
|
8
11
|
> 一緒に歩みましょう!
|
|
9
12
|
>
|
|
@@ -25,7 +28,29 @@
|
|
|
25
28
|
|
|
26
29
|
> `oh-my-opencode` をインストールして、ドーピングしたかのようにコーディングしましょう。バックグラウンドでエージェントを走らせ、oracle、librarian、frontend engineer のような専門エージェントを呼び出してください。丹精込めて作られた LSP/AST ツール、厳選された MCP、そして完全な Claude Code 互換レイヤーを、たった一行で手に入れましょう。
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
# Claude OAuth アクセスに関するお知らせ
|
|
32
|
+
|
|
33
|
+
## TL;DR
|
|
34
|
+
|
|
35
|
+
> Q. oh-my-opencodeを使用できますか?
|
|
36
|
+
|
|
37
|
+
はい。
|
|
38
|
+
|
|
39
|
+
> Q. Claude Codeのサブスクリプションで使用できますか?
|
|
40
|
+
|
|
41
|
+
はい、技術的には可能です。ただし、使用を推奨することはできません。
|
|
42
|
+
|
|
43
|
+
## 詳細
|
|
44
|
+
|
|
45
|
+
> 2026年1月より、AnthropicはToS違反を理由にサードパーティのOAuthアクセスを制限しました。
|
|
46
|
+
>
|
|
47
|
+
> [**Anthropicはこのプロジェクト oh-my-opencode を、opencodeをブロックする正当化の根拠として挙げています。**](https://x.com/thdxr/status/2010149530486911014)
|
|
48
|
+
>
|
|
49
|
+
> 実際、Claude CodeのOAuthリクエストシグネチャを偽装するプラグインがコミュニティに存在します。
|
|
50
|
+
>
|
|
51
|
+
> これらのツールは技術的な検出可能性に関わらず動作する可能性がありますが、ユーザーはToSへの影響を認識すべきであり、私個人としてはそれらの使用を推奨できません。
|
|
52
|
+
>
|
|
53
|
+
> このプロジェクトは非公式ツールの使用に起因するいかなる問題についても責任を負いません。また、**私たちはそれらのOAuthシステムのカスタム実装を一切持っていません。**
|
|
29
54
|
|
|
30
55
|
<div align="center">
|
|
31
56
|
|
|
@@ -73,6 +98,7 @@
|
|
|
73
98
|
- [Oh My OpenCode](#oh-my-opencode)
|
|
74
99
|
- [この Readme は読まなくていいです](#この-readme-は読まなくていいです)
|
|
75
100
|
- [エージェントの時代ですから](#エージェントの時代ですから)
|
|
101
|
+
- [🪄 魔法の言葉:`ultrawork`](#-魔法の言葉ultrawork)
|
|
76
102
|
- [読みたい方のために:シジフォスに会う](#読みたい方のためにシジフォスに会う)
|
|
77
103
|
- [インストールするだけで。](#インストールするだけで)
|
|
78
104
|
- [インストール](#インストール)
|
|
@@ -85,10 +111,14 @@
|
|
|
85
111
|
- [ステップ 4: 認証情報の設定](#ステップ-4-認証情報の設定)
|
|
86
112
|
- [4.1 Anthropic (Claude)](#41-anthropic-claude)
|
|
87
113
|
- [4.2 Google Gemini (Antigravity OAuth)](#42-google-gemini-antigravity-oauth)
|
|
88
|
-
- [4.
|
|
114
|
+
- [4.2.1 モデル設定](#421-モデル設定)
|
|
115
|
+
- [4.2.2 oh-my-opencode エージェントモデルのオーバーライド](#422-oh-my-opencode-エージェントモデルのオーバーライド)
|
|
116
|
+
|
|
89
117
|
- [⚠️ 注意](#️-注意)
|
|
90
118
|
- [セットアップの確認](#セットアップの確認)
|
|
91
119
|
- [ユーザーに「おめでとうございます!🎉」と伝える](#ユーザーにおめでとうございますと伝える)
|
|
120
|
+
- [無料広告](#無料広告)
|
|
121
|
+
- [スターをお願いする ⭐](#スターをお願いする-)
|
|
92
122
|
- [複雑すぎますか?](#複雑すぎますか)
|
|
93
123
|
- [アンインストール](#アンインストール)
|
|
94
124
|
- [機能](#機能)
|
|
@@ -96,7 +126,8 @@
|
|
|
96
126
|
- [バックグラウンドエージェント: 本当のチームのように働く](#バックグラウンドエージェント-本当のチームのように働く)
|
|
97
127
|
- [ツール: 同僚にはもっと良い道具を](#ツール-同僚にはもっと良い道具を)
|
|
98
128
|
- [なぜあなただけ IDE を使っているのですか?](#なぜあなただけ-ide-を使っているのですか)
|
|
99
|
-
- [
|
|
129
|
+
- [セッション管理](#セッション管理)
|
|
130
|
+
- [Context Is All You Need](#context-is-all-you-need)
|
|
100
131
|
- [マルチモーダルを活用し、トークンは節約する](#マルチモーダルを活用しトークンは節約する)
|
|
101
132
|
- [止まらないエージェントループ](#止まらないエージェントループ)
|
|
102
133
|
- [Claude Code 互換性: さらば Claude Code、ようこそ OpenCode](#claude-code-互換性-さらば-claude-codeようこそ-opencode)
|
|
@@ -106,16 +137,20 @@
|
|
|
106
137
|
- [互換性トグル](#互換性トグル)
|
|
107
138
|
- [エージェントのためだけでなく、あなたのために](#エージェントのためだけでなくあなたのために)
|
|
108
139
|
- [設定](#設定)
|
|
140
|
+
- [JSONC のサポート](#jsonc-のサポート)
|
|
109
141
|
- [Google Auth](#google-auth)
|
|
110
142
|
- [Agents](#agents)
|
|
111
143
|
- [Permission オプション](#permission-オプション)
|
|
112
144
|
- [Sisyphus Agent](#sisyphus-agent)
|
|
145
|
+
- [Background Tasks](#background-tasks)
|
|
113
146
|
- [Hooks](#hooks)
|
|
114
147
|
- [MCPs](#mcps)
|
|
115
148
|
- [LSP](#lsp)
|
|
116
149
|
- [Experimental](#experimental)
|
|
117
150
|
- [作者のノート](#作者のノート)
|
|
118
151
|
- [注意](#注意)
|
|
152
|
+
- [こちらの企業の専門家にご愛用いただいています](#こちらの企業の専門家にご愛用いただいています)
|
|
153
|
+
- [スポンサー](#スポンサー)
|
|
119
154
|
|
|
120
155
|
# Oh My OpenCode
|
|
121
156
|
|
|
@@ -313,15 +348,14 @@ opencode auth login
|
|
|
313
348
|
|
|
314
349
|
#### 4.2.2 oh-my-opencode エージェントモデルのオーバーライド
|
|
315
350
|
|
|
316
|
-
`opencode-antigravity-auth`
|
|
351
|
+
`opencode-antigravity-auth` プラグインは特定のモデル名を使用します。エージェントモデルを `oh-my-opencode.json`(または `.opencode/oh-my-opencode.json`)でオーバーライドしてください:
|
|
317
352
|
|
|
318
353
|
```json
|
|
319
354
|
{
|
|
320
|
-
"google_auth": false,
|
|
321
355
|
"agents": {
|
|
322
|
-
"frontend-ui-ux-engineer": { "model": "google/gemini-3-pro-high" },
|
|
323
|
-
"document-writer": { "model": "google/gemini-3-flash" },
|
|
324
|
-
"multimodal-looker": { "model": "google/gemini-3-flash" }
|
|
356
|
+
"frontend-ui-ux-engineer": { "model": "google/antigravity-gemini-3-pro-high" },
|
|
357
|
+
"document-writer": { "model": "google/antigravity-gemini-3-flash" },
|
|
358
|
+
"multimodal-looker": { "model": "google/antigravity-gemini-3-flash" }
|
|
325
359
|
}
|
|
326
360
|
}
|
|
327
361
|
```
|
|
@@ -341,37 +375,46 @@ opencode auth login
|
|
|
341
375
|
|
|
342
376
|
**マルチアカウントロードバランシング**: プラグインは最大10個の Google アカウントをサポートします。1つのアカウントがレートリミットに達すると、自動的に次のアカウントに切り替わります。
|
|
343
377
|
|
|
344
|
-
#### 4.3
|
|
378
|
+
#### 4.3 GitHub Copilot(フォールバックプロバイダー)
|
|
345
379
|
|
|
346
|
-
|
|
380
|
+
GitHub Copilot は、ネイティブプロバイダー(Claude、ChatGPT、Gemini)が利用できない場合の**フォールバックプロバイダー**としてサポートされています。インストーラーは、Copilot をネイティブプロバイダーより低い優先度で構成します。
|
|
347
381
|
|
|
348
|
-
|
|
349
|
-
{
|
|
350
|
-
"plugin": [
|
|
351
|
-
"oh-my-opencode",
|
|
352
|
-
"opencode-openai-codex-auth@4.3.0"
|
|
353
|
-
]
|
|
354
|
-
}
|
|
355
|
-
```
|
|
382
|
+
**優先度**: ネイティブプロバイダー (Claude/ChatGPT/Gemini) > GitHub Copilot > 無料モデル
|
|
356
383
|
|
|
357
|
-
#####
|
|
384
|
+
##### モデルマッピング
|
|
358
385
|
|
|
359
|
-
|
|
360
|
-
[opencode-openai-codex-auth ドキュメント](https://github.com/numman-ali/opencode-openai-codex-auth)を読み、[`config/opencode-modern.json`](https://github.com/numman-ali/opencode-openai-codex-auth/blob/main/config/opencode-modern.json)(OpenCode v1.0.210+)または [`config/opencode-legacy.json`](https://github.com/numman-ali/opencode-openai-codex-auth/blob/main/config/opencode-legacy.json)(旧バージョン)から provider/models 設定をコピーして、ユーザーの既存のセットアップを壊さないよう慎重にマージしてください。
|
|
386
|
+
GitHub Copilot が有効な場合、oh-my-opencode は以下のモデル割り当てを使用します:
|
|
361
387
|
|
|
362
|
-
|
|
388
|
+
| エージェント | モデル |
|
|
389
|
+
|--------------|--------|
|
|
390
|
+
| **Sisyphus** | `github-copilot/claude-opus-4.5` |
|
|
391
|
+
| **Oracle** | `github-copilot/gpt-5.2` |
|
|
392
|
+
| **Explore** | `grok code`(デフォルト) |
|
|
393
|
+
| **Librarian** | `glm 4.7 free`(デフォルト) |
|
|
363
394
|
|
|
364
|
-
|
|
395
|
+
GitHub Copilot はプロキシプロバイダーとして機能し、サブスクリプションに基づいて基盤となるモデルにリクエストをルーティングします。
|
|
365
396
|
|
|
366
|
-
|
|
397
|
+
##### セットアップ
|
|
398
|
+
|
|
399
|
+
インストーラーを実行し、GitHub Copilot で「はい」を選択します:
|
|
400
|
+
|
|
401
|
+
```bash
|
|
402
|
+
bunx oh-my-opencode install
|
|
403
|
+
# サブスクリプション(Claude、ChatGPT、Gemini)を選択
|
|
404
|
+
# プロンプトが表示されたら: "Do you have a GitHub Copilot subscription?" → 「はい」を選択
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
または、非対話モードを使用します:
|
|
408
|
+
|
|
409
|
+
```bash
|
|
410
|
+
bunx oh-my-opencode install --no-tui --claude=no --chatgpt=no --gemini=no --copilot=yes
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
その後、GitHub で認証します:
|
|
367
414
|
|
|
368
415
|
```bash
|
|
369
416
|
opencode auth login
|
|
370
|
-
#
|
|
371
|
-
# Login method: ChatGPT Plus/Pro (Codex Subscription) を選択
|
|
372
|
-
# ユーザーにブラウザでの OAuth フロー完了を案内
|
|
373
|
-
# 完了まで待機
|
|
374
|
-
# 成功を確認し、ユーザーに報告
|
|
417
|
+
# 選択: GitHub → OAuth 経由で認証
|
|
375
418
|
```
|
|
376
419
|
|
|
377
420
|
|
|
@@ -379,7 +422,7 @@ opencode auth login
|
|
|
379
422
|
|
|
380
423
|
**ユーザーが明示的に要求しない限り、モデル設定を変更したり、機能(エージェント、フック、MCP)を無効化しないでください。**
|
|
381
424
|
|
|
382
|
-
|
|
425
|
+
プラグインはデフォルトで完璧に動作します。`opencode-antigravity-auth` を使用する場合は、上記の通りエージェントモデルをオーバーライドしてください。明示的な要求なしに他の設定を変更したり機能をオフにしないでください。
|
|
383
426
|
|
|
384
427
|
### セットアップの確認
|
|
385
428
|
|
|
@@ -458,7 +501,7 @@ oh-my-opencode を削除するには:
|
|
|
458
501
|
|
|
459
502
|
- **Sisyphus** (`anthropic/claude-opus-4-5`): **デフォルトエージェントです。** OpenCode のための強力な AI オーケストレーターです。専門のサブエージェントを活用して、複雑なタスクを計画、委任、実行します。バックグラウンドタスクへの委任と Todo ベースのワークフローを重視します。最大の推論能力を発揮するため、Claude Opus 4.5 と拡張思考 (32k token budget) を使用します。
|
|
460
503
|
- **oracle** (`openai/gpt-5.2`): アーキテクチャ、コードレビュー、戦略立案のための専門アドバイザー。GPT-5.2 の卓越した論理的推論と深い分析能力を活用します。AmpCode からインスピレーションを得ました。
|
|
461
|
-
- **librarian** (`
|
|
504
|
+
- **librarian** (`opencode/glm-4.7-free`): マルチリポジトリ分析、ドキュメント検索、実装例の調査を担当。GLM-4.7 Free を使用して、深いコードベース理解と GitHub リサーチ、根拠に基づいた回答を提供します。AmpCode からインスピレーションを得ました。
|
|
462
505
|
- **explore** (`opencode/grok-code`、`google/gemini-3-flash`、または `anthropic/claude-haiku-4-5`): 高速なコードベース探索、ファイルパターンマッチング。Antigravity 認証が設定されている場合は Gemini 3 Flash を使用し、Claude max20 が利用可能な場合は Haiku を使用し、それ以外は Grok を使います。Claude Code からインスピレーションを得ました。
|
|
463
506
|
- **frontend-ui-ux-engineer** (`google/gemini-3-pro-preview`): 開発者に転身したデザイナーという設定です。素晴らしい UI を作ります。美しく独創的な UI コードを生成することに長けた Gemini を使用します。
|
|
464
507
|
- **document-writer** (`google/gemini-3-pro-preview`): テクニカルライティングの専門家という設定です。Gemini は文筆家であり、流れるような文章を書きます。
|
|
@@ -505,17 +548,9 @@ Ask @explore for the policy on this feature
|
|
|
505
548
|
あなたがエディタで使っているその機能、他のエージェントは触ることができません。
|
|
506
549
|
最高の同僚に最高の道具を渡してください。これでリファクタリングも、ナビゲーションも、分析も、エージェントが適切に行えるようになります。
|
|
507
550
|
|
|
508
|
-
- **lsp_hover**: その位置の型情報、ドキュメント、シグネチャを取得
|
|
509
|
-
- **lsp_goto_definition**: シンボル定義へジャンプ
|
|
510
|
-
- **lsp_find_references**: ワークスペース全体で使用箇所を検索
|
|
511
|
-
- **lsp_document_symbols**: ファイルのシンボルアウトラインを取得
|
|
512
|
-
- **lsp_workspace_symbols**: プロジェクト全体から名前でシンボルを検索
|
|
513
551
|
- **lsp_diagnostics**: ビルド前にエラー/警告を取得
|
|
514
|
-
- **lsp_servers**: 利用可能な LSP サーバー一覧
|
|
515
552
|
- **lsp_prepare_rename**: 名前変更操作の検証
|
|
516
553
|
- **lsp_rename**: ワークスペース全体でシンボル名を変更
|
|
517
|
-
- **lsp_code_actions**: 利用可能なクイックフィックス/リファクタリングを取得
|
|
518
|
-
- **lsp_code_action_resolve**: コードアクションを適用
|
|
519
554
|
- **ast_grep_search**: AST 認識コードパターン検索 (25言語対応)
|
|
520
555
|
- **ast_grep_replace**: AST 認識コード置換
|
|
521
556
|
|
|
@@ -718,10 +753,10 @@ Oh My OpenCode は以下の場所からフックを読み込んで実行しま
|
|
|
718
753
|
1. `.opencode/oh-my-opencode.json` (プロジェクト)
|
|
719
754
|
2. ユーザー設定(プラットフォーム別):
|
|
720
755
|
|
|
721
|
-
| プラットフォーム | ユーザー設定パス
|
|
722
|
-
|
|
723
|
-
| **Windows**
|
|
724
|
-
| **macOS/Linux**
|
|
756
|
+
| プラットフォーム | ユーザー設定パス |
|
|
757
|
+
| ---------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
758
|
+
| **Windows** | `~/.config/opencode/oh-my-opencode.json` (推奨) または `%APPDATA%\opencode\oh-my-opencode.json` (fallback) |
|
|
759
|
+
| **macOS/Linux** | `~/.config/opencode/oh-my-opencode.json` |
|
|
725
760
|
|
|
726
761
|
スキーマ自動補完がサポートされています:
|
|
727
762
|
|
|
@@ -745,10 +780,7 @@ Oh My OpenCode は以下の場所からフックを読み込んで実行しま
|
|
|
745
780
|
```jsonc
|
|
746
781
|
{
|
|
747
782
|
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
|
|
748
|
-
|
|
749
|
-
// Antigravity OAuth 経由で Google Gemini を有効にする
|
|
750
|
-
"google_auth": false,
|
|
751
|
-
|
|
783
|
+
|
|
752
784
|
/* エージェントのオーバーライド - 特定のタスクに合わせてモデルをカスタマイズ */
|
|
753
785
|
"agents": {
|
|
754
786
|
"oracle": {
|
|
@@ -765,27 +797,18 @@ Oh My OpenCode は以下の場所からフックを読み込んで実行しま
|
|
|
765
797
|
|
|
766
798
|
**推奨**: 外部の [`opencode-antigravity-auth`](https://github.com/NoeFabris/opencode-antigravity-auth) プラグインを使用してください。マルチアカウントロードバランシング、より多くのモデル(Antigravity 経由の Claude を含む)、活発なメンテナンスを提供します。[インストール > Google Gemini](#42-google-gemini-antigravity-oauth) を参照。
|
|
767
799
|
|
|
768
|
-
`opencode-antigravity-auth`
|
|
800
|
+
`opencode-antigravity-auth` 使用時は `oh-my-opencode.json` でエージェントモデルをオーバーライドしてください:
|
|
769
801
|
|
|
770
802
|
```json
|
|
771
803
|
{
|
|
772
|
-
"google_auth": false,
|
|
773
804
|
"agents": {
|
|
774
|
-
"frontend-ui-ux-engineer": { "model": "google/gemini-3-pro-high" },
|
|
775
|
-
"document-writer": { "model": "google/gemini-3-flash" },
|
|
776
|
-
"multimodal-looker": { "model": "google/gemini-3-flash" }
|
|
805
|
+
"frontend-ui-ux-engineer": { "model": "google/antigravity-gemini-3-pro-high" },
|
|
806
|
+
"document-writer": { "model": "google/antigravity-gemini-3-flash" },
|
|
807
|
+
"multimodal-looker": { "model": "google/antigravity-gemini-3-flash" }
|
|
777
808
|
}
|
|
778
809
|
}
|
|
779
810
|
```
|
|
780
811
|
|
|
781
|
-
**代替案**: 内蔵 Antigravity OAuth を有効化(単一アカウント、Gemini モデルのみ):
|
|
782
|
-
|
|
783
|
-
```json
|
|
784
|
-
{
|
|
785
|
-
"google_auth": true
|
|
786
|
-
}
|
|
787
|
-
```
|
|
788
|
-
|
|
789
812
|
### Agents
|
|
790
813
|
|
|
791
814
|
内蔵エージェント設定をオーバーライドできます:
|
|
@@ -838,13 +861,13 @@ Oh My OpenCode は以下の場所からフックを読み込んで実行しま
|
|
|
838
861
|
}
|
|
839
862
|
```
|
|
840
863
|
|
|
841
|
-
| Permission
|
|
842
|
-
|
|
843
|
-
| `edit`
|
|
844
|
-
| `bash`
|
|
845
|
-
| `webfetch`
|
|
846
|
-
| `doom_loop`
|
|
847
|
-
| `external_directory` | プロジェクトルート外へのファイルアクセス | `ask` / `allow` / `deny`
|
|
864
|
+
| Permission | 説明 | 値 |
|
|
865
|
+
| -------------------- | ---------------------------------------- | ----------------------------------------------------------------------------- |
|
|
866
|
+
| `edit` | ファイル編集権限 | `ask` / `allow` / `deny` |
|
|
867
|
+
| `bash` | Bash コマンド実行権限 | `ask` / `allow` / `deny` またはコマンド別: `{ "git": "allow", "rm": "deny" }` |
|
|
868
|
+
| `webfetch` | ウェブアクセス権限 | `ask` / `allow` / `deny` |
|
|
869
|
+
| `doom_loop` | 無限ループ検知のオーバーライド許可 | `ask` / `allow` / `deny` |
|
|
870
|
+
| `external_directory` | プロジェクトルート外へのファイルアクセス | `ask` / `allow` / `deny` |
|
|
848
871
|
|
|
849
872
|
または `~/.config/opencode/oh-my-opencode.json` か `.opencode/oh-my-opencode.json` の `disabled_agents` を使用して無効化できます:
|
|
850
873
|
|
|
@@ -922,12 +945,12 @@ Oh My OpenCode は以下の場所からフックを読み込んで実行しま
|
|
|
922
945
|
}
|
|
923
946
|
```
|
|
924
947
|
|
|
925
|
-
| オプション
|
|
926
|
-
|
|
|
927
|
-
| `disabled`
|
|
928
|
-
| `default_builder_enabled`
|
|
929
|
-
| `planner_enabled`
|
|
930
|
-
| `replace_plan`
|
|
948
|
+
| オプション | デフォルト | 説明 |
|
|
949
|
+
| ------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
950
|
+
| `disabled` | `false` | `true` の場合、すべての Sisyphus オーケストレーションを無効化し、元の build/plan をプライマリとして復元します。 |
|
|
951
|
+
| `default_builder_enabled` | `false` | `true` の場合、OpenCode-Builder エージェントを有効化します(OpenCode build と同じ、SDK 制限により名前変更)。デフォルトでは無効です。 |
|
|
952
|
+
| `planner_enabled` | `true` | `true` の場合、Prometheus (Planner) エージェントを有効化します(work-planner 方法論を含む)。デフォルトで有効です。 |
|
|
953
|
+
| `replace_plan` | `true` | `true` の場合、デフォルトのプランエージェントをサブエージェントモードに降格させます。`false` に設定すると、Prometheus (Planner) とデフォルトのプランの両方を利用できます。 |
|
|
931
954
|
|
|
932
955
|
### Background Tasks
|
|
933
956
|
|
|
@@ -950,10 +973,10 @@ Oh My OpenCode は以下の場所からフックを読み込んで実行しま
|
|
|
950
973
|
}
|
|
951
974
|
```
|
|
952
975
|
|
|
953
|
-
| オプション | デフォルト | 説明
|
|
954
|
-
| --------------------- | ---------- |
|
|
955
|
-
| `defaultConcurrency` | - | すべてのプロバイダー/モデルに対するデフォルトの最大同時バックグラウンドタスク数
|
|
956
|
-
| `providerConcurrency` | - | プロバイダーごとの同時実行制限。キーはプロバイダー名(例:`anthropic`、`openai`、`google`)
|
|
976
|
+
| オプション | デフォルト | 説明 |
|
|
977
|
+
| --------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------- |
|
|
978
|
+
| `defaultConcurrency` | - | すべてのプロバイダー/モデルに対するデフォルトの最大同時バックグラウンドタスク数 |
|
|
979
|
+
| `providerConcurrency` | - | プロバイダーごとの同時実行制限。キーはプロバイダー名(例:`anthropic`、`openai`、`google`) |
|
|
957
980
|
| `modelConcurrency` | - | モデルごとの同時実行制限。キーは完全なモデル名(例:`anthropic/claude-opus-4-5`)。プロバイダー制限より優先されます。 |
|
|
958
981
|
|
|
959
982
|
**優先順位**: `modelConcurrency` > `providerConcurrency` > `defaultConcurrency`
|
|
@@ -973,7 +996,7 @@ Oh My OpenCode は以下の場所からフックを読み込んで実行しま
|
|
|
973
996
|
}
|
|
974
997
|
```
|
|
975
998
|
|
|
976
|
-
利用可能なフック:`todo-continuation-enforcer`, `context-window-monitor`, `session-recovery`, `session-notification`, `comment-checker`, `grep-output-truncator`, `tool-output-truncator`, `directory-agents-injector`, `directory-readme-injector`, `empty-task-response-detector`, `think-mode`, `anthropic-context-window-limit-recovery`, `rules-injector`, `background-notification`, `auto-update-checker`, `startup-toast`, `keyword-detector`, `agent-usage-reminder`, `non-interactive-env`, `interactive-bash-session`, `
|
|
999
|
+
利用可能なフック:`todo-continuation-enforcer`, `context-window-monitor`, `session-recovery`, `session-notification`, `comment-checker`, `grep-output-truncator`, `tool-output-truncator`, `directory-agents-injector`, `directory-readme-injector`, `empty-task-response-detector`, `think-mode`, `anthropic-context-window-limit-recovery`, `rules-injector`, `background-notification`, `auto-update-checker`, `startup-toast`, `keyword-detector`, `agent-usage-reminder`, `non-interactive-env`, `interactive-bash-session`, `compaction-context-injector`, `thinking-block-validator`, `claude-code-hooks`, `ralph-loop`, `preemptive-compaction`
|
|
977
1000
|
|
|
978
1001
|
**`auto-update-checker`と`startup-toast`について**: `startup-toast` フックは `auto-update-checker` のサブ機能です。アップデートチェックは有効なまま起動トースト通知のみを無効化するには、`disabled_hooks` に `"startup-toast"` を追加してください。すべてのアップデートチェック機能(トーストを含む)を無効化するには、`"auto-update-checker"` を追加してください。
|
|
979
1002
|
|
|
@@ -1024,7 +1047,6 @@ OpenCode でサポートされるすべての LSP 構成およびカスタム設
|
|
|
1024
1047
|
```json
|
|
1025
1048
|
{
|
|
1026
1049
|
"experimental": {
|
|
1027
|
-
"preemptive_compaction_threshold": 0.85,
|
|
1028
1050
|
"truncate_all_tool_outputs": true,
|
|
1029
1051
|
"aggressive_truncation": true,
|
|
1030
1052
|
"auto_resume": true
|
|
@@ -1032,13 +1054,11 @@ OpenCode でサポートされるすべての LSP 構成およびカスタム設
|
|
|
1032
1054
|
}
|
|
1033
1055
|
```
|
|
1034
1056
|
|
|
1035
|
-
| オプション
|
|
1036
|
-
|
|
|
1037
|
-
| `
|
|
1038
|
-
| `
|
|
1039
|
-
| `
|
|
1040
|
-
| `auto_resume` | `false` | thinking block エラーや thinking disabled violation からの回復成功後、自動的にセッションを再開します。最後のユーザーメッセージを抽出して続行します。 |
|
|
1041
|
-
| `dcp_for_compaction` | `false` | コンパクション用DCP(動的コンテキスト整理)を有効化 - トークン制限超過時に最初に実行されます。コンパクション前に重複したツール呼び出しと古いツール出力を整理します。 |
|
|
1057
|
+
| オプション | デフォルト | 説明 |
|
|
1058
|
+
| --------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1059
|
+
| `truncate_all_tool_outputs` | `false` | ホワイトリストのツール(Grep、Glob、LSP、AST-grep)だけでなく、すべてのツール出力を切り詰めます。Tool output truncator はデフォルトで有効です - `disabled_hooks`で無効化できます。 |
|
|
1060
|
+
| `aggressive_truncation` | `false` | トークン制限を超えた場合、ツール出力を積極的に切り詰めて制限内に収めます。デフォルトの切り詰めより積極的です。不十分な場合は要約/復元にフォールバックします。 |
|
|
1061
|
+
| `auto_resume` | `false` | thinking block エラーや thinking disabled violation からの回復成功後、自動的にセッションを再開します。最後のユーザーメッセージを抽出して続行します。 |
|
|
1042
1062
|
|
|
1043
1063
|
**警告**:これらの機能は実験的であり、予期しない動作を引き起こす可能性があります。影響を理解した場合にのみ有効にしてください。
|
|
1044
1064
|
|