Skip to main content

Module profiles

Module profiles 

Source
Expand description

Agent profiles — workload-specific configurations.

Profiles compose existing configuration knobs into named presets. They are loaded from three tiers (highest priority first):

  1. Project: .lean-ctx/profiles/<name>.toml
  2. User: ~/.config/lean-ctx/profiles/<name>.toml
  3. 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§

types

Structs§

ProfileInfo
Information about an available profile.

Enums§

ProfileSource
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.