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>,
pub experimental_tui: bool,
}Expand description
CLI backend configuration.
Fields§
§backend: StringBackend to use: “claude”, “kiro”, “gemini”, “codex”, “amp”, or “custom”.
command: Option<String>Custom command (for backend: “custom”).
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.
experimental_tui: boolEnable experimental TUI mode. When false (default), interactive mode (-i/–interactive) falls back to autonomous. Set to true to enable interactive TUI mode.