Owlen Config Agent
Configuration management for the Owlen AI agent.
Overview
This crate handles loading, parsing, and persisting configuration settings. It uses a hierarchical approach, allowing global user settings to be overridden by project-specific configurations and environment variables.
Features
- Hierarchical Configuration: Merges defaults, user config, project config, and env vars.
- Strong Typing: Provides a type-safe
Settingsstruct for application-wide use. - Provider Preferences: Manage model selections and provider-specific URLs.
- Permission Mapping: Integrates with the
permissionscrate to define tool-use policies.
Usage
Configuration is typically loaded via load_settings(), which looks for:
~/.config/owlen/config.toml(Global)<project_root>/.owlen.toml(Project-specific)OWLEN_*environment variables (Overriding)