pub struct CliConfig {
pub backend: String,
pub command: Option<String>,
pub prompt_mode: String,
pub default_mode: String,
pub idle_timeout_secs: u32,
pub args: Vec<String>,
pub prompt_flag: Option<String>,
}Expand description
CLI backend configuration.
Fields§
§backend: StringBackend to use: “auto”, “claude”, “kiro”, “kiro-acp”, “gemini”, “codex”, “forge”, “amp”, “copilot”, “opencode”, “pi”, “roo”, or “custom”.
command: Option<String>Command override. Required for “custom” backend. For named backends, overrides the default binary path.
prompt_mode: StringHow to pass prompts: “arg” or “stdin”.
default_mode: StringExecution mode when –interactive not specified. Values: “autonomous” (default), “interactive”
idle_timeout_secs: u32Idle timeout in seconds for interactive mode. Process is terminated after this many seconds of inactivity (no output AND no user input). Set to 0 to disable idle timeout.
args: Vec<String>Custom arguments to pass to the CLI command (for backend: “custom”). These are inserted before the prompt argument.
prompt_flag: Option<String>Custom prompt flag for arg mode (for backend: “custom”). If None, defaults to “-p” for arg mode.