#[non_exhaustive]pub struct ModelSettings {
pub effort_level: Option<EffortLevel>,
pub max_effort_level: Option<EffortLevel>,
pub auto_compact_window: Option<CompactWindow>,
pub extra: Extra,
}Expand description
A value of modelSettings: one model’s saved settings.
Save an effort level for each model you use. Requires Claude Code v2.1.251 or later.
Docs: modelSettings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.effort_level: Option<EffortLevel>This model’s effort level. It takes precedence over the top-level effortLevel in the
same file.
- Values: one of
"low","medium","high", or"xhigh" - Default: unset
Docs: effortLevel.
max_effort_level: Option<EffortLevel>The highest effort level this model may run at. It replaces the top-level
maxEffortLevel for this model. Requires Claude Code v2.1.267 or later.
- Values: one of
"low","medium","high","xhigh", or"max"(no cap) - Default: unset
Docs: maxEffortLevel.
auto_compact_window: Option<CompactWindow>This model’s auto-compact window. It takes precedence over a top-level
autoCompactWindow in the same file; /autocompact saves here. Requires Claude Code
v2.1.288 or later.
- Values: a number of tokens from
100000to1000000, or"auto"for the window tuned for the model - Default: unset
Docs: autoCompactWindow.
extra: ExtraKeys Claude Code accepts here that this crate doesn’t model (newer or undocumented ones), kept as written so the document round-trips.