opencode-ultra 0.9.8 → 0.9.9
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 +39 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -174,6 +174,45 @@ Two-level merge via `opencode-ultra.json` (or `.jsonc`):
|
|
|
174
174
|
|
|
175
175
|
Project config overrides user config.
|
|
176
176
|
|
|
177
|
+
### Profiles
|
|
178
|
+
|
|
179
|
+
Define multiple configurations and switch between them via `activeProfile` or the `OPENCODE_ULTRA_PROFILE` environment variable:
|
|
180
|
+
|
|
181
|
+
```jsonc
|
|
182
|
+
{
|
|
183
|
+
"activeProfile": "cloud",
|
|
184
|
+
"profiles": {
|
|
185
|
+
"cloud": {
|
|
186
|
+
"agents": {
|
|
187
|
+
"sisyphus": { "model": "anthropic/claude-opus-4" },
|
|
188
|
+
"hephaestus": { "model": "openai/gpt-4o" },
|
|
189
|
+
"explore": { "model": "anthropic/claude-haiku-4" }
|
|
190
|
+
},
|
|
191
|
+
"background_task": { "defaultConcurrency": 4 }
|
|
192
|
+
},
|
|
193
|
+
"local": {
|
|
194
|
+
"agents": {
|
|
195
|
+
"sisyphus": { "model": "ollama/llama3:70b" },
|
|
196
|
+
"hephaestus": { "model": "ollama/qwen3:32b" },
|
|
197
|
+
"explore": { "model": "ollama/mistral:7b" }
|
|
198
|
+
},
|
|
199
|
+
"background_task": { "defaultConcurrency": 2 }
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Switch profiles at runtime:
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
# Via environment variable (takes priority over activeProfile)
|
|
209
|
+
OPENCODE_ULTRA_PROFILE=local opencode exec --agent sisyphus "implement feature X"
|
|
210
|
+
|
|
211
|
+
# Or set activeProfile in config for the default
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Profile settings are deep-merged on top of base config values defined outside `profiles`. You can override just the fields you need per profile — everything else inherits from the base config.
|
|
215
|
+
|
|
177
216
|
### Configuration Schema
|
|
178
217
|
|
|
179
218
|
```jsonc
|