pub struct Cli {Show 19 fields
pub cwd: PathBuf,
pub model: String,
pub websearch: WebSearchMode,
pub websearch_url: Option<String>,
pub reasoning_effort: ReasoningEffort,
pub reasoning_summary: ReasoningSummary,
pub tick_rate_ms: u64,
pub no_mouse: bool,
pub mouse: bool,
pub verbose: bool,
pub theme: Theme,
pub print_prompt: bool,
pub skill_dirs: Vec<PathBuf>,
pub session_dir: Option<PathBuf>,
pub config_diagnostics: Vec<String>,
pub config_layers: Vec<LoadedConfigLayer>,
pub config_origins: BTreeMap<String, ConfigOrigin>,
pub acp_agents: AcpAgentsConfig,
pub command: Option<Command>,
}Expand description
Runtime configuration after defaults, TOML, env, and flags are merged.
Fields§
§cwd: PathBufWorking directory used for context loading and display.
model: StringModel to use for completions.
If omitted, first-run setup asks for a provider and model before the coding workspace becomes usable.
websearch: WebSearchModeApplication-owned web search backend.
websearch_url: Option<String>Base URL for the SearXNG web search backend.
reasoning_effort: ReasoningEffortConfigured reasoning effort for supporting provider models.
TODO: Route this through every provider/model family that supports reasoning-effort controls.
reasoning_summary: ReasoningSummaryConfigured reasoning-summary policy for supporting provider models.
TODO: Route this through every provider/model family that supports reasoning-summary controls.
tick_rate_ms: u64Event poll interval in milliseconds (minimum MIN_TICK_RATE_MS).
no_mouse: boolDisable mouse capture in the alternate-screen interface.
mouse: boolEnable terminal mouse capture for overlay mouse events.
Enables transcript wheel scrolling and overlay mouse navigation. Most terminals retain a modifier-assisted text selection gesture while mouse capture is active.
verbose: boolShow diagnostic transcript rows such as provider events and log paths.
theme: ThemeUI color theme.
print_prompt: boolPrint the assembled prompt bundle/lowered messages with secrets redacted.
skill_dirs: Vec<PathBuf>Additional skill directories to scan.
session_dir: Option<PathBuf>Directory for append-only session JSONL files.
config_diagnostics: Vec<String>Config diagnostics from effective config loading.
config_layers: Vec<LoadedConfigLayer>Effective config layers for session metadata.
config_origins: BTreeMap<String, ConfigOrigin>Effective config key origins for session metadata.
acp_agents: AcpAgentsConfigEffective external ACP agent configs.
command: Option<Command>Optional non-interactive command.
Implementations§
Source§impl Cli
impl Cli
Sourcepub fn parse_configured() -> Result<Self, ConfigError>
pub fn parse_configured() -> Result<Self, ConfigError>
Parse command-line arguments, load TOML config, and merge them.
Sourcepub fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
pub fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Test-friendly parser that applies CLI defaults but skips config loading.
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more