Skip to main content

Module loader

Module loader 

Source
Expand description

Configuration loader with two-layer merge and env overrides.

The loading process:

  1. Read global config from ~/.config/agentic/agentic.toml
  2. Read local config from ./agentic.toml
  3. Deep merge at TOML Value level (tables merge, arrays/scalars replace)
  4. Deserialize once into typed AgenticConfig
  5. Apply env var overrides (highest precedence)
  6. Run advisory validation

Structs§

AgenticConfigPaths
Resolved paths for config files.
LoadedAgenticConfig
Result of loading configuration.

Constants§

GLOBAL_DIR
Directory name under config_dir for 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.