Skip to content

Commit 58e9c44

Browse files
author
Pedro Pombeiro
committed
feat(opencode): migrate to duo-workflow models
Update model references across opencode configuration and commands to use the new duo-workflow family of models. This includes updating the small_model default, command model specifications, and adding cost configurations for the new workflow models. Also update the work environment variable to use duo-workflow-opus-4-6 for improved performance on complex tasks.
1 parent 24c6e86 commit 58e9c44

File tree

7 files changed

+35
-7
lines changed

7 files changed

+35
-7
lines changed

.config/dotfiles/gitlab/.opencode/commands/weekly-update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Post weekly status updates on assigned milestone issues
3-
model: gitlab/duo-chat-opus-4-6
3+
model: gitlab/duo-workflow-opus-4-6
44
---
55

66
Post weekly status updates on all GitLab issues assigned to me for the current milestone.

.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-workflow-haiku-4-5
55
hidden: true
66
temperature: 0
77
steps: 10

.config/opencode/commands/handoff.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Create handoff document for context transfer
3-
model: gitlab/duo-chat-gpt-5-2-codex
3+
model: gitlab/duo-workflow-gpt-5-3-codex
44
---
55

66
Create a HANDOFF.md file in the current working directory to transfer context to a new agent session.

.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-workflow-haiku-4-5
44
---
55

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

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@
2727
}
2828
},
2929
"enabled_providers": ["gitlab", "anthropic", "google"],
30-
"small_model": "gitlab/duo-chat-haiku-4-5",
30+
"small_model": "gitlab/duo-workflow-haiku-4-5",
3131
"provider": {
3232
"gitlab": {
3333
"models": {
34+
"duo-workflow-opus-4-6": {
35+
"cost": {
36+
"input": 5, "output": 25, "cache_read": 0.50, "cache_write": 6.25
37+
}
38+
},
3439
"duo-chat-opus-4-6": {
3540
"cost": {
3641
"input": 5, "output": 25, "cache_read": 0.50, "cache_write": 6.25
@@ -61,8 +66,17 @@
6166
"input": 15, "output": 75, "cache_read": 1.50, "cache_write": 18.75
6267
}
6368
},
69+
"gitlab/duo-workflow-haiku-4-5": {
70+
"cost": { "input": 1, "output": 5, "cache_read": 0.10, "cache_write": 1.25 }
71+
},
6472
"duo-chat-haiku-4-5": {
6573
"cost": { "input": 1, "output": 5, "cache_read": 0.10, "cache_write": 1.25 }
74+
},
75+
"duo-workflow-gpt-5-3-codex": {
76+
"cost": { "input": 1.75, "output": 14, "cache_read": 0.175 }
77+
},
78+
"duo-workflow-gpt-5-4": {
79+
"cost": { "input": 2.50, "output": 15, "cache_read": 0.25 }
6680
}
6781
}
6882
}

.config/opencode/opencode.json##default

Lines changed: 15 additions & 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-chat-haiku-4-5",
13+
"small_model": "gitlab/duo-workflow-haiku-4-5",
1414
"provider": {
1515
"anthropic": {
1616
"options": {
@@ -36,6 +36,11 @@
3636
"provider": {
3737
"gitlab": {
3838
"models": {
39+
"duo-workflow-opus-4-6": {
40+
"cost": {
41+
"input": 5, "output": 25, "cache_read": 0.50, "cache_write": 6.25
42+
}
43+
},
3944
"duo-chat-opus-4-6": {
4045
"cost": {
4146
"input": 5, "output": 25, "cache_read": 0.50, "cache_write": 6.25
@@ -66,8 +71,17 @@
6671
"input": 15, "output": 75, "cache_read": 1.50, "cache_write": 18.75
6772
}
6873
},
74+
"gitlab/duo-workflow-haiku-4-5": {
75+
"cost": { "input": 1, "output": 5, "cache_read": 0.10, "cache_write": 1.25 }
76+
},
6977
"duo-chat-haiku-4-5": {
7078
"cost": { "input": 1, "output": 5, "cache_read": 0.10, "cache_write": 1.25 }
79+
},
80+
"duo-workflow-gpt-5-3-codex": {
81+
"cost": { "input": 1.75, "output": 14, "cache_read": 0.175 }
82+
},
83+
"duo-workflow-gpt-5-4": {
84+
"cost": { "input": 2.50, "output": 15, "cache_read": 0.25 }
7185
}
7286
}
7387
}

.config/yadm/scripts/update-work.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ ENABLE_SPRING = "1"
143143
GITLAB_USE_MODEL_LOAD_BALANCING = "1"
144144
GITLAB_VIM_URL = "https://gitlab.com"
145145
OP_BIOMETRIC_UNLOCK_ENABLED = "true"
146-
OPENCODE_MODEL = "gitlab/duo-chat-opus-4-6"
146+
OPENCODE_MODEL = "gitlab/duo-workflow-opus-4-6"
147147
PUMA_WORKER_TIMEOUT = "9999999"
148148
QA_GITLAB_URL = "http://gdk.test:3000"
149149
QA_LOG_LEVEL = "DEBUG"

0 commit comments

Comments
 (0)