opencode-dispatcher 0.2.11 → 0.3.0
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
|
@@ -526,6 +526,9 @@ Use Dispatcher when the structure is worth it. Use the fast path or plain OpenCo
|
|
|
526
526
|
|
|
527
527
|
## Version History
|
|
528
528
|
|
|
529
|
+
* **v0.3.0**
|
|
530
|
+
* **Model-Config Groups**: Replaced per-agent model selection with two-tier group-based workflow (MED/LOW), excluding orchestrator and task-planner.
|
|
531
|
+
|
|
529
532
|
* **v0.2.11**
|
|
530
533
|
* **Routing Clarity**: Clarified executor routing as exact, mechanical, low-risk edits rather than file-count-based; clarified planner auto-proceed behavior when no user-facing decisions are introduced.
|
|
531
534
|
* **Shipper Boundary**: Tightened shipper routing so it only commits and pushes existing intended changes.
|
package/package.json
CHANGED
|
@@ -21,10 +21,17 @@ Responsibilities:
|
|
|
21
21
|
|
|
22
22
|
- Run `opencode models --verbose` to list available models and their variants on the system.
|
|
23
23
|
- Check for an existing opencode config at `opencode.jsonc` or `.opencode/opencode.jsonc` (in that order of preference).
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
- Determine the set of configurable subagents by excluding **orchestrator** (whose model is chosen directly by the user in OpenCode itself) and **task-planner** (which is intended to use the same model as the orchestrator) from the full list of installed Dispatcher subagents.
|
|
25
|
+
- Group the remaining configurable subagents into two hardcoded tiers:
|
|
26
|
+
|
|
27
|
+
| Group | Agents | Intended model class |
|
|
28
|
+
|-------|------------------------------------------------------------|-----------------------|
|
|
29
|
+
| MED | `validator`, `test-writer`, `documentation`, `init` | DeepSeek Pro class |
|
|
30
|
+
| LOW | `implementer`, `research`, `executor`, `shipper`, `model-config` | Flash / cheap class |
|
|
31
|
+
|
|
32
|
+
- Present both groups to the user with their intended model tiers. Ask the user to pick a model (and optionally a variant) for each group **once** — not per-agent.
|
|
33
|
+
- For the chosen model, parse its `variants` field from the verbose output. If the model has variants (non-empty object), present the available variant names and ask the user to pick one or skip. If the model has no variants (empty `{}`), skip silently without prompting. If the user skips, do not write a `variant` field for that group.
|
|
34
|
+
- Write `agent.<name>.model` and optionally `agent.<name>.variant` entries for every agent in each group into the project's opencode config, preserving all existing config content exactly as-is. Use the target format:
|
|
28
35
|
```jsonc
|
|
29
36
|
"agent": {
|
|
30
37
|
"orchestrator": {
|
|
@@ -33,7 +40,7 @@ Responsibilities:
|
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
42
|
```
|
|
36
|
-
- If no opencode config exists, create one with only the
|
|
43
|
+
- If no opencode config exists, create one with only the agent entries.
|
|
37
44
|
- Report back to the orchestrator with a summary of what was configured.
|
|
38
45
|
|
|
39
46
|
Boundaries:
|
|
@@ -66,6 +66,7 @@ Required pre-commit inspection:
|
|
|
66
66
|
- If multiple task artifact folders exist, include only the folders that match the current commit scope unless the user explicitly asks to commit everything.
|
|
67
67
|
- Do not use `git commit -a` or `git commit -am`; explicitly stage intended files before committing.
|
|
68
68
|
- Never include secrets, credentials, generated artifacts, or unrelated changes.
|
|
69
|
+
- Run inspection commands separately; do not combine allowed commands with shell operators like &&, ||, or ;.
|
|
69
70
|
- If the intended file set is unclear, stop and report the ambiguity to orchestrator.
|
|
70
71
|
|
|
71
72
|
Commit message rules:
|
|
@@ -64,8 +64,6 @@ Multi-unit decomposition:
|
|
|
64
64
|
task-spec.md
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
- Write `.ai/tasks/current` pointer file containing the relative path to the first unit (e.g., `tasks/<NNN>-<task-id>/01-unitslug`). The format is a single line with a relative path — no JSON or multi-line structure.
|
|
68
|
-
|
|
69
67
|
If scope is ambiguous, stop and report the missing decision to orchestrator instead of inventing requirements.
|
|
70
68
|
|
|
71
69
|
Default report back:
|