feat: override model and reasoning effort for subagents

Useful for starting the top-level with high/xhigh effort then
subagents with different models and/or reasoning levels as appropriate
to the task.
This commit is contained in:
Gene Oden
2026-01-22 09:44:17 -08:00
parent f30f39b28b
commit b9829ca000
5 changed files with 140 additions and 2 deletions

View File

@@ -2243,6 +2243,12 @@ pub struct CollabAgentSpawnEndEvent {
/// Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the
/// beginning.
pub prompt: String,
/// Model slug used for the newly spawned agent.
#[serde(skip_serializing_if = "Option::is_none")]
pub model: Option<String>,
/// Reasoning effort used for the newly spawned agent.
#[serde(skip_serializing_if = "Option::is_none")]
pub reasoning_effort: Option<ReasoningEffortConfig>,
/// Last known status of the new agent reported to the sender agent.
pub status: AgentStatus,
}