feat(cli): add system prompt parameter to run command (#2253)

This commit is contained in:
Azor
2025-06-18 00:01:30 +03:00
committed by GitHub
parent d9ca16d9e6
commit 3465dd79a9
+13 -2
View File
@@ -375,6 +375,16 @@ enum Command {
)] )]
input_text: Option<String>, input_text: Option<String>,
/// 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<String>,
/// Recipe name or full path to the recipe file /// Recipe name or full path to the recipe file
#[arg( #[arg(
short = None, short = None,
@@ -666,6 +676,7 @@ pub async fn cli() -> Result<()> {
instructions, instructions,
input_text, input_text,
recipe, recipe,
system,
interactive, interactive,
identifier, identifier,
resume, resume,
@@ -690,7 +701,7 @@ pub async fn cli() -> Result<()> {
InputConfig { InputConfig {
contents: Some(input), contents: Some(input),
extensions_override: None, extensions_override: None,
additional_system_prompt: None, additional_system_prompt: system,
}, },
None, None,
) )
@@ -716,7 +727,7 @@ pub async fn cli() -> Result<()> {
InputConfig { InputConfig {
contents: Some(text), contents: Some(text),
extensions_override: None, extensions_override: None,
additional_system_prompt: None, additional_system_prompt: system,
}, },
None, None,
), ),