Skip to content

Commit 1f897c6

Browse files
author
Pedro Pombeiro
committed
refactor(opencode): migrate workflow models to chat models
Update model identifiers across configuration files and commands to use the new `duo-chat-*` model naming convention instead of `duo-workflow-*`. Also adds pricing configuration for new chat model variants (gpt-5-4-mini and gpt-5-4-nano) and updates task reviewer type names to use descriptive suffixes.
1 parent 426d344 commit 1f897c6

File tree

7 files changed

+42
-21
lines changed

7 files changed

+42
-21
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-workflow-opus-4-6
3+
model: gitlab/duo-chat-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-workflow-haiku-4-5
4+
model: gitlab/duo-chat-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-workflow-gpt-5-3-codex
3+
model: gitlab/duo-chat-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-workflow-haiku-4-5
3+
model: gitlab/duo-chat-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: 28 additions & 13 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-workflow-haiku-4-5",
30+
"small_model": "gitlab/duo-chat-haiku-4-5",
3131
"provider": {
3232
"gitlab": {
3333
"models": {
@@ -72,11 +72,23 @@
7272
"duo-chat-haiku-4-5": {
7373
"cost": { "input": 1, "output": 5, "cache_read": 0.10, "cache_write": 1.25 }
7474
},
75-
"duo-workflow-gpt-5-3-codex": {
75+
"duo-chat-gpt-5-3-codex": {
7676
"cost": { "input": 1.75, "output": 14, "cache_read": 0.175 }
7777
},
78-
"duo-workflow-gpt-5-4": {
78+
"duo-chat-gpt-5-2-codex": {
79+
"cost": { "input": 1.50, "output": 12, "cache_read": 0.15 }
80+
},
81+
"duo-chat-gpt-5-mini": {
82+
"cost": { "input": 0.75, "output": 3, "cache_read": 0.075 }
83+
},
84+
"duo-chat-gpt-5-4": {
7985
"cost": { "input": 2.50, "output": 15, "cache_read": 0.25 }
86+
},
87+
"duo-chat-gpt-5-4-mini": {
88+
"cost": { "input": 1.10, "output": 4.40, "cache_read": 0.11 }
89+
},
90+
"duo-chat-gpt-5-4-nano": {
91+
"cost": { "input": 0.50, "output": 2.00, "cache_read": 0.05 }
8092
}
8193
}
8294
}
@@ -242,16 +254,19 @@
242254
"task": {
243255
"general": "allow",
244256
"explore": "allow",
245-
"review-security": "allow",
246-
"review-database": "allow",
247-
"review-clickhouse": "allow",
248-
"review-performance": "allow",
249-
"review-qa": "allow",
250-
"review-frontend": "allow",
251-
"review-backend": "allow",
252-
"review-docs": "allow",
253-
"review-analytics": "allow",
254-
"review-graphql": "allow"
257+
"security-reviewer": "allow",
258+
"database-reviewer": "allow",
259+
"clickhouse-reviewer": "allow",
260+
"performance-reviewer": "allow",
261+
"qa-reviewer": "allow",
262+
"frontend-reviewer": "allow",
263+
"backend-reviewer": "allow",
264+
"documentation-reviewer": "allow",
265+
"analytics-reviewer": "allow",
266+
"graphql-reviewer": "allow",
267+
"rest-api-reviewer": "allow",
268+
"workers-reviewer": "allow",
269+
"feature-flags-reviewer": "allow"
255270
},
256271
"todowrite": "allow"
257272
}

.config/opencode/opencode.json##default

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,23 @@
7171
"input": 15, "output": 75, "cache_read": 1.50, "cache_write": 18.75
7272
}
7373
},
74-
"gitlab/duo-workflow-haiku-4-5": {
74+
"duo-workflow-haiku-4-5": {
7575
"cost": { "input": 1, "output": 5, "cache_read": 0.10, "cache_write": 1.25 }
7676
},
7777
"duo-chat-haiku-4-5": {
7878
"cost": { "input": 1, "output": 5, "cache_read": 0.10, "cache_write": 1.25 }
7979
},
80-
"duo-workflow-gpt-5-3-codex": {
80+
"duo-chat-gpt-5-3-codex": {
8181
"cost": { "input": 1.75, "output": 14, "cache_read": 0.175 }
8282
},
83-
"duo-workflow-gpt-5-4": {
83+
"duo-chat-gpt-5-4": {
8484
"cost": { "input": 2.50, "output": 15, "cache_read": 0.25 }
85+
},
86+
"duo-chat-gpt-5-4-mini": {
87+
"cost": { "input": 1.10, "output": 4.40, "cache_read": 0.11 }
88+
},
89+
"duo-chat-gpt-5-4-nano": {
90+
"cost": { "input": 0.50, "output": 2.00, "cache_read": 0.05 }
8591
}
8692
}
8793
}

.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-workflow-opus-4-6"
146+
OPENCODE_MODEL = "gitlab/duo-chat-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)