Skip to content

Commit 97c8a44

Browse files
author
Pedro Pombeiro
committed
chore(opencode): switch small model to duo-chat-gpt-5-4-nano
Update opencode configuration and agent docs to use gitlab/duo-chat-gpt-5-4-nano as the small model. This keeps costs down while preserving the intended model separation for faster runs.
1 parent 5055dc8 commit 97c8a44

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.agents/skills/opencode-refine/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Runs a single non-interactive agent session. The agent executes, prints its resp
3636

3737
| Flag | Purpose |
3838
|------|---------|
39-
| `-m <model>` | Override model (e.g. `-m gitlab/duo-chat-haiku-4-5` for fast/cheap iterations) |
39+
| `-m <model>` | Override model (e.g. `-m gitlab/duo-chat-gpt-5-4-nano` for fast/cheap iterations) |
4040
| `--print-logs` | Show debug logs on stderr (permission checks, plugin hooks, config resolution) |
4141
| `-f <file> --` | Attach a file as context — **requires `--` separator before the prompt** |
4242
| `--format json` | Machine-readable event stream for scripting |
@@ -67,7 +67,7 @@ opencode run 'run ls -al and tell me what you see'
6767
opencode run 'your test prompt'
6868

6969
# Use a cheap model for faster iterations:
70-
opencode run -m gitlab/duo-chat-haiku-4-5 'your test prompt'
70+
opencode run -m gitlab/duo-chat-gpt-5-4-nano 'your test prompt'
7171
```
7272

7373
### 3. Use --print-logs to debug infrastructure
@@ -213,7 +213,7 @@ Without the `--`, the CLI parser treats the prompt as a second file path and err
213213

214214
- **Keep prompts self-contained**: Avoid vague prompts that might cause the agent to ask clarifying questions — that will hang the process (see Known Limitations).
215215
- **Config changes are instant**: No restart needed. Each `opencode run` invocation reads fresh config.
216-
- **Cheap models for iteration**: Use `-m gitlab/duo-chat-haiku-4-5` when testing infrastructure (permissions, plugins). Switch to your primary model for testing prompt/tone quality.
216+
- **Cheap models for iteration**: Use `-m gitlab/duo-chat-gpt-5-4-nano` when testing infrastructure (permissions, plugins). Switch to your primary model for testing prompt/tone quality.
217217
- **Stderr for logs, stdout for output**: `--print-logs` writes to stderr, so you can `2>debug.log` and still see the agent's response on stdout.
218218
- **Stdin piping**: `echo "prompt" | opencode run` works — useful for multi-line prompts or scripted input.
219219

.config/opencode/agents/dotfiles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Use when the user mentions their dotfiles, dotfiles repo, dotfiles config, yadm, or references commits/changes in their personal configuration. Explores yadm-managed dotfiles in the home directory: find config files under ~/, search dotfile contents, look up agent docs, and inspect yadm git history (log, show, diff)."
33
mode: subagent
4-
model: gitlab/duo-chat-haiku-4-5
4+
model: gitlab/duo-chat-gpt-5-4-nano
55
hidden: true
66
temperature: 0
77
steps: 10

.config/opencode/commands/push.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Commit changes in logical commits and push
3-
model: gitlab/duo-chat-haiku-4-5
3+
model: gitlab/duo-chat-gpt-5-4-nano
44
---
55

66
Commit all changes in discrete, logical commits and push to the remote.

.config/opencode/opencode.json##class.Work

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828
},
2929
"enabled_providers": ["gitlab", "anthropic", "google"],
30-
"small_model": "gitlab/duo-chat-haiku-4-5",
30+
"small_model": "gitlab/duo-chat-gpt-5-4-nano",
3131
"provider": {
3232
"gitlab": {
3333
"models": {
@@ -66,7 +66,7 @@
6666
"input": 15, "output": 75, "cache_read": 1.50, "cache_write": 18.75
6767
}
6868
},
69-
"gitlab/duo-workflow-haiku-4-5": {
69+
"duo-workflow-haiku-4-5": {
7070
"cost": { "input": 1, "output": 5, "cache_read": 0.10, "cache_write": 1.25 }
7171
},
7272
"duo-chat-haiku-4-5": {

.config/opencode/opencode.json##default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"opencode-wakatime@latest"
1111
],
1212
"default_agent": "plan",
13-
"small_model": "gitlab/duo-workflow-haiku-4-5",
13+
"small_model": "gitlab/duo-chat-gpt-5-4-nano",
1414
"provider": {
1515
"anthropic": {
1616
"options": {

0 commit comments

Comments
 (0)