diff --git a/docs/src/content/docs/reference/safe-outputs.md b/docs/src/content/docs/reference/safe-outputs.md index 62a4d4d0273..8b38bdca6cc 100644 --- a/docs/src/content/docs/reference/safe-outputs.md +++ b/docs/src/content/docs/reference/safe-outputs.md @@ -1408,7 +1408,7 @@ Programmatically assigns GitHub Copilot coding agent to **existing** issues or p safe-outputs: assign-to-agent: name: "copilot" # default agent (default: "copilot") - model: "claude-opus-4.6" # default AI model (default: "auto") + model: "claude-sonnet-5" # default AI model (default: "auto") custom-agent: "agent-id" # default custom agent ID (optional) custom-instructions: "..." # default custom instructions (optional) allowed: [copilot] # restrict to specific agents (optional) diff --git a/pkg/cli/workflows/test-assign-to-agent-with-model.md b/pkg/cli/workflows/test-assign-to-agent-with-model.md index e2cc522efec..c79aa490ec0 100644 --- a/pkg/cli/workflows/test-assign-to-agent-with-model.md +++ b/pkg/cli/workflows/test-assign-to-agent-with-model.md @@ -14,7 +14,7 @@ on: description: 'AI model to use' required: false type: string - default: 'claude-opus-4.6' + default: 'claude-sonnet-5' permissions: actions: read @@ -41,7 +41,7 @@ safe-outputs: assign-to-agent: max: 5 name: copilot - model: claude-opus-4.6 # Default model to use when not specified per-item + model: claude-sonnet-5 # Default model to use when not specified per-item target: "triggering" # Auto-resolves from workflow context (default) allowed: [copilot] # Only allow copilot agent strict: false @@ -58,7 +58,7 @@ Assign the Copilot agent to the issue with the specified AI model. The workflow 1. **Default model configuration**: Set via `safe-outputs.assign-to-agent.model` in frontmatter (applies to all assignments in the workflow) **For issues event:** -Assign the Copilot agent using the default model (Claude Opus 4.6) to the triggering issue. +Assign the Copilot agent using the default model (Claude Sonnet 5) to the triggering issue. **For workflow_dispatch:** Assign the Copilot agent to issue #${{ github.event.inputs.issue_number }} using the default model configured in the frontmatter. diff --git a/pkg/workflow/assign_to_agent.go b/pkg/workflow/assign_to_agent.go index 26538a7e939..82daafaac53 100644 --- a/pkg/workflow/assign_to_agent.go +++ b/pkg/workflow/assign_to_agent.go @@ -11,7 +11,7 @@ type AssignToAgentConfig struct { BaseSafeOutputConfig `yaml:",inline"` SafeOutputTargetConfig `yaml:",inline"` DefaultAgent string `yaml:"name,omitempty"` // Default agent to assign (e.g., "copilot") - DefaultModel string `yaml:"model,omitempty"` // Default AI model to use (e.g., "claude-opus-4.6") + DefaultModel string `yaml:"model,omitempty"` // Default AI model to use (e.g., "claude-sonnet-5") DefaultCustomAgent string `yaml:"custom-agent,omitempty"` // Default custom agent ID for custom agents DefaultCustomInstructions string `yaml:"custom-instructions,omitempty"` // Default custom instructions for the agent Allowed []string `yaml:"allowed,omitempty"` // Optional list of allowed agent names. If omitted, any agents are allowed.