opencode-model-router 1.3.0 → 1.3.1
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 +21 -13
- package/package.json +3 -3
- package/tiers.json +4 -5
package/README.md
CHANGED
|
@@ -205,12 +205,15 @@ npm install -g opencode-model-router
|
|
|
205
205
|
Add to `~/.config/opencode/opencode.json`:
|
|
206
206
|
```json
|
|
207
207
|
{
|
|
208
|
-
"plugin":
|
|
209
|
-
|
|
210
|
-
"
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
208
|
+
"plugin": [
|
|
209
|
+
[
|
|
210
|
+
"opencode-model-router",
|
|
211
|
+
{
|
|
212
|
+
"type": "npm",
|
|
213
|
+
"package": "opencode-model-router"
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
]
|
|
214
217
|
}
|
|
215
218
|
```
|
|
216
219
|
|
|
@@ -224,18 +227,23 @@ npm install
|
|
|
224
227
|
In `~/.config/opencode/opencode.json`:
|
|
225
228
|
```json
|
|
226
229
|
{
|
|
227
|
-
"plugin":
|
|
228
|
-
|
|
229
|
-
"
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
"plugin": [
|
|
231
|
+
[
|
|
232
|
+
"opencode-model-router",
|
|
233
|
+
{
|
|
234
|
+
"type": "local",
|
|
235
|
+
"package": "/absolute/path/to/opencode-model-router"
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
]
|
|
233
239
|
}
|
|
234
240
|
```
|
|
235
241
|
|
|
236
242
|
## Configuration
|
|
237
243
|
|
|
238
|
-
All configuration lives in `tiers.json` at the plugin root.
|
|
244
|
+
All configuration lives in `tiers.json` at the plugin root, which is located inside the cached package directory in your home folder (e.g. `~/.cache/opencode/packages/opencode-model-router@latest/node_modules/opencode-model-router/tiers.json`).
|
|
245
|
+
|
|
246
|
+
> ⚠️ **IMPORTANT**: You **must** edit this cached version of `tiers.json` for opencode to respect your changes and custom model configurations.
|
|
239
247
|
|
|
240
248
|
### Presets
|
|
241
249
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-model-router",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "OpenCode plugin that routes tasks to tiered subagents (fast/medium/heavy) based on complexity",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^25.2.3",
|
|
48
|
-
"@vitest/coverage-v8": "^
|
|
48
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
49
49
|
"cross-env": "^7.0.3",
|
|
50
50
|
"typescript": "^5.9.3",
|
|
51
|
-
"vitest": "^
|
|
51
|
+
"vitest": "^4.1.8"
|
|
52
52
|
}
|
|
53
53
|
}
|
package/tiers.json
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
},
|
|
95
95
|
"github-copilot": {
|
|
96
96
|
"fast": {
|
|
97
|
-
"model": "github-copilot/claude-haiku-4
|
|
97
|
+
"model": "github-copilot/claude-haiku-4.5",
|
|
98
98
|
"costRatio": 1,
|
|
99
99
|
"description": "Claude Haiku 4.5 via GitHub Copilot for fast exploration and simple tasks",
|
|
100
100
|
"steps": 30,
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
]
|
|
107
107
|
},
|
|
108
108
|
"medium": {
|
|
109
|
-
"model": "github-copilot/claude-sonnet-4
|
|
109
|
+
"model": "github-copilot/claude-sonnet-4.6",
|
|
110
110
|
"costRatio": 5,
|
|
111
|
-
"description": "Claude Sonnet 4.
|
|
111
|
+
"description": "Claude Sonnet 4.6 via GitHub Copilot for implementation, refactoring, and tests",
|
|
112
112
|
"steps": 50,
|
|
113
113
|
"whenToUse": [
|
|
114
114
|
"Feature implementation",
|
|
@@ -119,8 +119,7 @@
|
|
|
119
119
|
]
|
|
120
120
|
},
|
|
121
121
|
"heavy": {
|
|
122
|
-
"model": "github-copilot/claude-opus-4
|
|
123
|
-
"variant": "thinking",
|
|
122
|
+
"model": "github-copilot/claude-opus-4.6",
|
|
124
123
|
"costRatio": 20,
|
|
125
124
|
"description": "Claude Opus 4.6 via GitHub Copilot for architecture, complex debugging, and security",
|
|
126
125
|
"steps": 120,
|