Expand description
Agent profiles — workload-specific configurations.
Profiles compose existing configuration knobs into named presets. They are loaded from three tiers (highest priority first):
- Project:
.lean-ctx/profiles/<name>.toml - User:
~/.config/lean-ctx/profiles/<name>.toml - Built-in defaults
A profile can extend another via extends = "parent". Child fields override
parent fields; unset fields inherit.
Re-exports§
pub use types::*;
Modules§
Structs§
- Profile
Info - Information about an available profile.
Enums§
- Profile
Source - Where a profile was loaded from.
Functions§
- active_
profile - Loads the currently active profile.
- active_
profile_ name - Returns the currently active profile name.
- format_
as_ toml - Formats a profile as TOML for display or file creation.
- list_
profiles - Lists all available profile names (built-in + on-disk).
- load_
profile - Loads a profile by name with full resolution:
- set_
active_ profile - Sets the active profile for the current process.