From ebb982e69dbdc4fbc1d377bd635832b42a0f7960 Mon Sep 17 00:00:00 2001 From: Tyler Longwell Date: Tue, 17 Feb 2026 14:27:01 -0500 Subject: [PATCH] feat: add GOOSE_SUBAGENT_MODEL and GOOSE_SUBAGENT_PROVIDER config options --- crates/goose/src/agents/platform_extensions/summon.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/goose/src/agents/platform_extensions/summon.rs b/crates/goose/src/agents/platform_extensions/summon.rs index 1d16058358b9..91a0b4a3ad55 100644 --- a/crates/goose/src/agents/platform_extensions/summon.rs +++ b/crates/goose/src/agents/platform_extensions/summon.rs @@ -1414,6 +1414,11 @@ impl SummonClient { .as_ref() .and_then(|s| s.goose_provider.clone()) }) + .or_else(|| { + Config::global() + .get_param::("GOOSE_SUBAGENT_PROVIDER") + .ok() + }) .or_else(|| session.provider_name.clone()) .ok_or_else(|| anyhow::anyhow!("No provider configured"))?; @@ -1430,6 +1435,8 @@ impl SummonClient { .and_then(|s| s.goose_model.as_ref()) { model_config.model_name = model.clone(); + } else if let Ok(model) = Config::global().get_param::("GOOSE_SUBAGENT_MODEL") { + model_config.model_name = model; } if let Some(temp) = params.temperature {