Skip to content

Let the preset agent use the claude CLI's default model - #4265

Merged
peterschmidt85 merged 1 commit into
masterfrom
preset-agent-default-model
Sep 5, 2026
Merged

Let the preset agent use the claude CLI's default model#4265
peterschmidt85 merged 1 commit into
masterfrom
preset-agent-default-model

Conversation

@peterschmidt85

@peterschmidt85 peterschmidt85 commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

The preset agent pinned --model claude-opus-4-8 unless DSTACK_AGENT_ANTHROPIC_MODEL was set, so it ran an older model than the claude CLI's own default and needed a code change on every model release.

  • Pass --model only when DSTACK_AGENT_ANTHROPIC_MODEL is set; otherwise claude picks its default. A resume keeps a pinned model and otherwise follows the default too.
  • Record the model claude reports on its init line in ~/.dstack/presets/<id>/agent.json, instead of the configured one.
  • Document that the claude default applies when the variable is unset, and link the Models overview for model ids.

🤖 Generated with Claude Code

Pass --model only when DSTACK_AGENT_ANTHROPIC_MODEL is set instead of
pinning claude-opus-4-8, and record the model claude reports on its init
line in agent.json, now a typed PresetAgentInfo record.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@peterschmidt85
peterschmidt85 merged commit 87e2fd6 into master Sep 5, 2026
26 checks passed
@peterschmidt85
peterschmidt85 deleted the preset-agent-default-model branch September 5, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant