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
2 changes: 1 addition & 1 deletion docs/src/content/docs/reference/safe-outputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions pkg/cli/workflows/test-assign-to-agent-with-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/workflow/assign_to_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading