Skip to content

Add model selection to workflow definitions#30

Merged
alari76 merged 2 commits intomainfrom
feat/workflow-model-selection
Mar 9, 2026
Merged

Add model selection to workflow definitions#30
alari76 merged 2 commits intomainfrom
feat/workflow-model-selection

Conversation

@alari76
Copy link
Copy Markdown
Contributor

@alari76 alari76 commented Mar 9, 2026

Summary

  • Adds optional model field to workflow MD frontmatter (e.g. model: claude-sonnet-4-6)
  • Exposes model selection (Opus/Sonnet/Haiku) as button group in both Add Workflow and Edit Workflow modals
  • Model flows through config → schedule input → session creation → Claude CLI --model flag
  • Per-config model (UI) takes priority over per-definition model (frontmatter), with system default as final fallback

Test plan

  • Open Add Workflow modal → verify Model button group appears on Step 3 (Schedule)
  • Select Sonnet, create workflow → verify config persists model: claude-sonnet-4-6
  • Open Edit Workflow modal for existing workflow → verify model field reflects saved value
  • Change model in edit modal → save → verify updated in config
  • Trigger workflow manually → verify Claude spawns with correct --model flag
  • Leave model as "Default (Opus)" → verify no --model flag is passed

🤖 Generated with Claude Code

alari76 and others added 2 commits March 9, 2026 10:20
Allows specifying which Claude model to use per-workflow via the
`model` frontmatter field (e.g. `model: claude-sonnet-4-6`), so
cost-sensitive workflows like code reviews don't need to run on Opus.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Allows choosing which Claude model (Opus, Sonnet, Haiku) to use
per-workflow from the Add and Edit workflow modals. The model flows
through the config, schedule input, and into the session spawn args.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alari76 alari76 merged commit 65711f4 into main Mar 9, 2026
2 checks passed
@alari76 alari76 deleted the feat/workflow-model-selection branch March 10, 2026 05:10
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