pub struct Config {Show 23 fields
pub interval: u64,
pub notify: bool,
pub debug: bool,
pub grouped: bool,
pub sort: Option<String>,
pub budget: Option<f64>,
pub kill_on_budget: bool,
pub webhook: Option<String>,
pub webhook_on: Option<Vec<String>>,
pub daily_limit: Option<f64>,
pub weekly_limit: Option<f64>,
pub context_warn_threshold: u8,
pub model_overrides: Vec<ModelOverride>,
pub rules: Vec<AutoRule>,
pub health: HealthThresholds,
pub file_conflicts: bool,
pub auto_deny_file_conflicts: bool,
pub brain: Option<BrainConfig>,
pub relay: Option<RelayConfig>,
pub hive: Option<HiveConfig>,
pub lifecycle: LifecycleConfig,
pub idle: IdleConfig,
pub agents: Vec<AgentConfig>,
}Expand description
Configuration loaded from TOML files, merged with CLI flags. Priority: CLI flags > project config > global config > defaults.
Fields§
§interval: u64§notify: bool§debug: bool§grouped: bool§sort: Option<String>§budget: Option<f64>§kill_on_budget: bool§webhook: Option<String>§webhook_on: Option<Vec<String>>§daily_limit: Option<f64>§weekly_limit: Option<f64>§context_warn_threshold: u8§model_overrides: Vec<ModelOverride>§rules: Vec<AutoRule>§health: HealthThresholds§file_conflicts: bool§auto_deny_file_conflicts: bool§brain: Option<BrainConfig>§relay: Option<RelayConfig>§hive: Option<HiveConfig>§lifecycle: LifecycleConfig§idle: IdleConfig§agents: Vec<AgentConfig>Implementations§
Source§impl Config
impl Config
Sourcepub fn print_resolved(&self)
pub fn print_resolved(&self)
Show resolved config and file locations (for claudectl config).
Sourcepub fn print_template()
pub fn print_template()
Print an annotated default config template to stdout.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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