Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/content/profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ for specific sub-agent tools (e.g. `draft_pr`'s Sonnet-grade work) remain availa

```yaml
models:
investigation: claude-sonnet-4-6 # main agent
subagent: claude-haiku-4-5-20251001 # sub-agent dispatches
investigation: claude-opus-5 # main agent
subagent: claude-sonnet-5 # sub-agent dispatches
```

Both fields are optional; omitted fields fall back to the baked-in defaults shown above.
Expand Down
4 changes: 2 additions & 2 deletions internal/profile/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ func Parse(r io.Reader) (*Profile, error) {
// handed to the launcher.
func (p *Profile) ApplyDefaults() {
if p.Models.Investigation == "" {
p.Models.Investigation = "claude-sonnet-4-6"
p.Models.Investigation = "claude-opus-5"
}
if p.Models.Subagent == "" {
p.Models.Subagent = "claude-haiku-4-5-20251001"
p.Models.Subagent = "claude-sonnet-5"
}
}
4 changes: 2 additions & 2 deletions internal/profile/profile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -907,8 +907,8 @@ func TestProfile_ApplyDefaults_FillsModelsWhenAbsent(t *testing.T) {
t.Parallel()
p := &profile.Profile{}
p.ApplyDefaults()
assert.Equal(t, "claude-sonnet-4-6", p.Models.Investigation)
assert.Equal(t, "claude-haiku-4-5-20251001", p.Models.Subagent)
assert.Equal(t, "claude-opus-5", p.Models.Investigation)
assert.Equal(t, "claude-sonnet-5", p.Models.Subagent)
}

func TestProfile_ApplyDefaults_PreservesExplicitModels(t *testing.T) {
Expand Down
Loading