From 3465dd79a93d32f88f50576cecabf95e914df265 Mon Sep 17 00:00:00 2001 From: Azor Date: Wed, 18 Jun 2025 00:01:30 +0300 Subject: [PATCH] feat(cli): add system prompt parameter to run command (#2253) --- crates/goose-cli/src/cli.rs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/crates/goose-cli/src/cli.rs b/crates/goose-cli/src/cli.rs index 36066c24..83333626 100644 --- a/crates/goose-cli/src/cli.rs +++ b/crates/goose-cli/src/cli.rs @@ -375,6 +375,16 @@ enum Command { )] input_text: Option, + /// Additional system prompt to customize agent behavior + #[arg( + long = "system", + value_name = "TEXT", + help = "Additional system prompt to customize agent behavior", + long_help = "Provide additional system instructions to customize the agent's behavior", + conflicts_with = "recipe" + )] + system: Option, + /// Recipe name or full path to the recipe file #[arg( short = None, @@ -666,6 +676,7 @@ pub async fn cli() -> Result<()> { instructions, input_text, recipe, + system, interactive, identifier, resume, @@ -690,7 +701,7 @@ pub async fn cli() -> Result<()> { InputConfig { contents: Some(input), extensions_override: None, - additional_system_prompt: None, + additional_system_prompt: system, }, None, ) @@ -716,7 +727,7 @@ pub async fn cli() -> Result<()> { InputConfig { contents: Some(text), extensions_override: None, - additional_system_prompt: None, + additional_system_prompt: system, }, None, ),