From 92bfdc4cc92d129f35a0fa5719ab00cde2b84ac9 Mon Sep 17 00:00:00 2001 From: azor Date: Fri, 18 Apr 2025 00:22:50 +0200 Subject: [PATCH] feat(cli): add system prompt parameter to run command --- 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 36066c24d414..8333362651d9 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, ),