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

View File

@@ -375,6 +375,16 @@ enum Command {
)]
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
#[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,
),