Expand description
Configuration loader with two-layer merge and env overrides.
The loading process:
- Read global config from
~/.config/agentic/agentic.toml - Read local config from
./agentic.toml - Deep merge at TOML Value level (tables merge, arrays/scalars replace)
- Deserialize once into typed
AgenticConfig - Apply env var overrides (highest precedence)
- Run advisory validation
Structs§
- Agentic
Config Paths - Resolved paths for config files.
- Loaded
Agentic Config - Result of loading configuration.
Constants§
- GLOBAL_
DIR - Directory name under
config_dirfor global config. - GLOBAL_
FILE - Filename for global config (TOML format).
- LOCAL_
FILE - Filename for local config (TOML format).
Functions§
- global_
config_ path - Get the global config file path.
- load_
merged - Load and merge configuration from global and local files.
- local_
config_ path - Get the local config file path for a given directory.