Support configuring effort alongside model

This commit is contained in:
Ian Gulliver
2026-10-23 08:40:00 -07:00
parent 6bbae3fffe
commit d6d9dd86d9
40 changed files with 805 additions and 541 deletions
+3 -1
View File
@@ -338,7 +338,7 @@ func (m *Manager) beginStage(ctx context.Context, task api.Task, project api.Pro
s := workflow.Get(frozen.Definition, stage)
message := stageMessage(frozen, stage, parents, project.DefaultBranch)
if s.Agents == nil {
return m.create(ctx, task, creator, "", message, s.Model, "byre", "", "", nil)
return m.create(ctx, task, creator, "", message, s.Model, s.Effort, "byre", "", "", nil)
}
err = m.startTeam(ctx, task, creator, message, *s.Agents, "byre")
if err != nil {
@@ -777,6 +777,7 @@ const workflowSchemaDefs = `"$defs": {
"properties": {
"stage": {"type": "string"},
"model": {"type": "string"},
"effort": {"type": "string", "description": "low, medium, high, xhigh or max (Codex models take low to xhigh); absent means the vendor's default."},
"prompt": {"type": "string"},
"agents": {"type": "array", "items": {"$ref": "#/$defs/agent"}},
"order": {"type": "array", "items": {"$ref": "#/$defs/step"}},
@@ -791,6 +792,7 @@ const workflowSchemaDefs = `"$defs": {
"properties": {
"name": {"type": "string"},
"model": {"type": "string"},
"effort": {"type": "string"},
"prompt": {"type": "string"}
},
"required": ["name", "model", "prompt"],