opencode-ultra 0.9.3 → 0.9.5

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.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  OpenCode 1.2.x プラグイン。マルチエージェントオーケストレーション・キーワード駆動モード切替・ルール注入・セッション継続・AST検索・自己改善 (evolve) を軽量な単一プラグインで実現する。
4
4
 
5
+ ## インストール
6
+
7
+ ```bash
8
+ # OpenCode plugin ディレクトリで
9
+ bun add opencode-ultra
10
+ ```
11
+
12
+ `opencode.jsonc` に登録:
13
+
14
+ ```jsonc
15
+ {
16
+ "plugins": ["opencode-ultra"]
17
+ }
18
+ ```
19
+
5
20
  ## 機能一覧
6
21
 
7
22
  ### ツール (12)
@@ -96,30 +111,28 @@ evolve_exe({ proposals: "1,2", publish: true }) — 実行後に自動 publish
96
111
  実装後のパブリッシュ:
97
112
 
98
113
  ```
99
- evolve_publish({ bump: "patch" }) — test → build → version bump → npm publish
100
- evolve_publish({ bump: "minor", deploy: "ssh-124" }) — publish + SSH デプロイ手順出力
114
+ evolve_publish({ bump: "patch" }) — test → build → version bump → npm publish
115
+ evolve_publish({ bump: "minor", deploy: "my-server" }) — publish + SSH デプロイ手順出力
101
116
  ```
102
117
 
103
118
  ## エージェント構成
104
119
 
105
120
  Sisyphus (オーケストレーター) が読み込み・分析・計画を行い、実装はサブエージェントに委任する。
106
121
 
107
- | Agent | 役割 | デフォルトモデル | Tier |
108
- |-------|------|----------------|------|
109
- | **sisyphus** | オーケストレーター — 読み込み+分析+計画+委任 | `openai/gpt-5.3-codex` | High |
110
- | **momus** | コードレビュー・品質チェック | `openai/gpt-5.3-codex` | High |
111
- | **oracle** | 設計・デバッグ・アーキテクチャ判断 | `zai-coding-plan/glm-5` | Mid |
112
- | **hephaestus** | 自律型実装ワーカー | `zai-coding-plan/glm-5` | Mid |
113
- | **metis** | タスク分解・並列実行計画 | `kimi-for-coding/k2p5` | Mid |
114
- | **multimodal-looker** | 画像・スクリーンショット解析 | `kimi-for-coding/k2p5` | Mid |
115
- | **explore** | 高速コードベース偵察 | `openai/gpt-5.3-codex-spark` | Fast |
116
- | **librarian** | ドキュメント・ベストプラクティス調査 | `openai/gpt-5.3-codex-spark` | Fast |
117
- | **scout** | プラグインエコシステム調査 | `openai/gpt-5.3-codex-spark` | Fast |
118
- | **atlas** | タスク管理・進捗追跡 | `minimax-coding-plan/MiniMax-M2.5` | Low |
119
-
120
- 全てのエージェントのモデルは `opencode-ultra.json` で設定する。BUILTIN デフォルトと JSON 設定は一致させること。
121
-
122
- > **重要**: `openai-codex/` や `anthropic/` など auth プラグイン由来のプロバイダーは sub-session で解決できない。`opencode.jsonc` の `provider` セクションまたは Coding Plan プラグインで定義されたプロバイダーのみ使用可能。
122
+ | Agent | 役割 | Tier |
123
+ |-------|------|------|
124
+ | **sisyphus** | オーケストレーター — 読み込み+分析+計画+委任 | High |
125
+ | **momus** | コードレビュー・品質チェック | High |
126
+ | **oracle** | 設計・デバッグ・アーキテクチャ判断 | Mid |
127
+ | **hephaestus** | 自律型実装ワーカー | Mid |
128
+ | **metis** | タスク分解・並列実行計画 | Mid |
129
+ | **multimodal-looker** | 画像・スクリーンショット解析 | Mid |
130
+ | **explore** | 高速コードベース偵察 | Fast |
131
+ | **librarian** | ドキュメント・ベストプラクティス調査 | Fast |
132
+ | **scout** | プラグインエコシステム調査 | Fast |
133
+ | **atlas** | タスク管理・進捗追跡 | Low |
134
+
135
+ 全てのエージェントのモデルは `opencode-ultra.json` で設定する。`opencode.jsonc` `provider` セクションで定義されたプロバイダー/モデルのみ指定可能。
123
136
 
124
137
  ## キーワード検知
125
138
 
@@ -146,19 +159,20 @@ Sisyphus (オーケストレーター) が読み込み・分析・計画を行
146
159
 
147
160
  ```jsonc
148
161
  {
149
- // エージェントモデル設定 (BUILTIN_AGENTS と一致させること)
162
+ // エージェントモデル設定 (opencode.jsonc の provider で定義されたモデルを指定)
150
163
  "agents": {
151
- "sisyphus": { "model": "openai/gpt-5.3-codex" },
152
- "oracle": { "model": "zai-coding-plan/glm-5" },
153
- "hephaestus": { "model": "zai-coding-plan/glm-5" },
154
- "explore": { "model": "openai/gpt-5.3-codex-spark" },
155
- "momus": { "model": "openai/gpt-5.3-codex" }
164
+ "sisyphus": { "model": "provider/high-tier-model" },
165
+ "oracle": { "model": "provider/mid-tier-model" },
166
+ "hephaestus": { "model": "provider/mid-tier-model" },
167
+ "explore": { "model": "provider/fast-model" },
168
+ "momus": { "model": "provider/high-tier-model" }
156
169
  },
157
170
 
158
171
  // カテゴリ (spawn_agent の category パラメータでモデル一括切替)
172
+ // Note: category はエージェント個別モデルより優先される
159
173
  "categories": {
160
- "quick": { "model": "openai/gpt-5.3-codex-spark" },
161
- "deep": { "model": "openai/gpt-5.3-codex", "variant": "medium" }
174
+ "quick": { "model": "provider/fast-model" },
175
+ "deep": { "model": "provider/mid-tier-model" }
162
176
  },
163
177
 
164
178
  // Fragment Injection (エージェント毎のプロンプト断片)
@@ -170,7 +184,7 @@ Sisyphus (オーケストレーター) が読み込み・分析・計画を行
170
184
  "prompt_renderer": {
171
185
  "default": "markdown",
172
186
  "model_overrides": {
173
- "openai/gpt-5.3-codex": "markdown"
187
+ "provider/model": "xml"
174
188
  }
175
189
  },
176
190
 
@@ -191,7 +205,7 @@ Sisyphus (オーケストレーター) が読み込み・分析・計画を行
191
205
  "background_task": {
192
206
  "defaultConcurrency": 3,
193
207
  "providerConcurrency": { "openai": 8 },
194
- "modelConcurrency": { "openai/gpt-5.3-codex": 2 }
208
+ "modelConcurrency": { "openai/gpt-4o": 2 }
195
209
  },
196
210
 
197
211
  // Safety
@@ -203,11 +217,11 @@ Sisyphus (オーケストレーター) が読み込み・分析・計画を行
203
217
  // Evolve Execution
204
218
  "evolve_exe": {
205
219
  "maxIterations": 10, // 最大イテレーション (1-20)
206
- "iterationTimeoutMs": 300000, // per-iteration タイムアウト
207
- "totalTimeoutMs": 900000, // 1提案あたりの合計タイムアウト
220
+ "iterationTimeoutMs": 300000, // per-iteration タイムアウト (ms)
221
+ "totalTimeoutMs": 900000, // 1提案あたりの合計タイムアウト (ms)
208
222
  "skipReview": false, // レビューをスキップ
209
223
  "skipTests": false, // bun test をスキップ
210
- "implementAgent": "hephaestus", // 実装エージェント (config.agents で定義されたもの)
224
+ "implementAgent": "hephaestus", // 実装エージェント
211
225
  "reviewAgent": "momus" // レビューエージェント
212
226
  },
213
227
 
@@ -12,4 +12,6 @@ type MinimalPluginConfig = {
12
12
  disabled_agents?: string[];
13
13
  [key: string]: unknown;
14
14
  };
15
+ export declare const AUTONOMOUS_MODE_SYSTEM = "## \u26A1 AUTONOMOUS MODE ACTIVE\n\nYou are running via CLI without a human present (opencode run --format json or non-TTY mode).\n\nMANDATORY BEHAVIOR:\n1. **Skip plan approval entirely** \u2014 no \"\u3053\u306E\u30D7\u30E9\u30F3\u3067\u9032\u3081\u307E\u3059\u304B\uFF1F\", no waiting\n2. Read the task \u2192 plan internally \u2192 execute immediately\n3. **Delegate ALL file writes to spawn_agent** \u2014 do NOT use Write, Edit, apply_patch, or Bash yourself\n4. Run spawn_agent calls IN PARALLEL for independent components\n5. After implementation, spawn momus for code review\n\nEXECUTION ORDER:\n- Phase 1: Read specs (Grep/Glob/Read) \u2014 do this yourself\n- Phase 2: spawn_agent hephaestus for each major component (in parallel)\n- Phase 3: spawn_agent momus for review after Phase 2 completes\n- Phase 4: spawn_agent hephaestus to run `git add -A && git commit -m 'feat: initial implementation'`\n- Report final summary";
16
+ export declare const AUTONOMOUS_MODE_ANCHOR = "\n\n[\u26A1 AUTONOMOUS MODE: No user present. Execute immediately. Delegate ALL file writing to spawn_agent(hephaestus). Do NOT use Write/Edit/apply_patch/Bash. Spawn parallel agents now. Final step: spawn hephaestus to run git add -A && git commit.]";
15
17
  export declare function buildAgents(config: Partial<MinimalPluginConfig>): Record<string, AgentDef>;
package/dist/index.js CHANGED
@@ -15021,7 +15021,7 @@ When the system prompt contains "\u26A1 AUTONOMOUS MODE ACTIVE":
15021
15021
  - **Read \u2192 Plan (internal) \u2192 Execute immediately** \u2014 no waiting
15022
15022
  - **Delegate ALL file operations to spawn_agent** \u2014 do NOT use Write, Edit, apply_patch, Bash yourself
15023
15023
  - Spawn parallel agents for independent implementation tasks
15024
- - After implementation completes, spawn momus for review`;
15024
+ - After implementation: spawn momus for review, then spawn hephaestus for git commit`;
15025
15025
  var AUTONOMOUS_MODE_SYSTEM = `## \u26A1 AUTONOMOUS MODE ACTIVE
15026
15026
 
15027
15027
  You are running via CLI without a human present (opencode run --format json or non-TTY mode).
@@ -15037,10 +15037,11 @@ EXECUTION ORDER:
15037
15037
  - Phase 1: Read specs (Grep/Glob/Read) \u2014 do this yourself
15038
15038
  - Phase 2: spawn_agent hephaestus for each major component (in parallel)
15039
15039
  - Phase 3: spawn_agent momus for review after Phase 2 completes
15040
+ - Phase 4: spawn_agent hephaestus to run \`git add -A && git commit -m 'feat: initial implementation'\`
15040
15041
  - Report final summary`;
15041
15042
  var AUTONOMOUS_MODE_ANCHOR = `
15042
15043
 
15043
- [\u26A1 AUTONOMOUS MODE: No user present. Execute immediately. Delegate ALL file writing to spawn_agent(hephaestus). Do NOT use Write/Edit/apply_patch/Bash. Spawn parallel agents now.]`;
15044
+ [\u26A1 AUTONOMOUS MODE: No user present. Execute immediately. Delegate ALL file writing to spawn_agent(hephaestus). Do NOT use Write/Edit/apply_patch/Bash. Spawn parallel agents now. Final step: spawn hephaestus to run git add -A && git commit.]`;
15044
15045
  function buildAgents(config2) {
15045
15046
  const disabled = new Set(config2.disabled_agents ?? []);
15046
15047
  const overrides = config2.agents ?? {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-ultra",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
4
4
  "description": "Lightweight OpenCode 1.2.x plugin — ultrawork mode, multi-agent orchestration, rules injection",
5
5
  "keywords": [
6
6
  "opencode",