Skip to main content

Module config

Module config 

Source
Expand description

Config reader — loads YAML config files and resolves dot-separated keys.

Reads ~/.orch/config.yml (global) and .orch.yml (project). Project config overrides global config for the same key.

Features:

  • In-memory cache: parsed YAML is cached for the process lifetime
  • File watching: uses notify crate to watch for config file changes
  • Hot reload: cache is invalidated when config files change
  • Change notifications: subscribers receive events when config files change

Modules§

projects_yaml
Edit the projects: list in config.yml as text so comments stay

Structs§

SkillConfig
Skill repository configuration.

Functions§

find_project_root
Resolve project path from CWD by finding the nearest .orch.yml.
get
Get a config value by dot-separated key (e.g. “agents.claude.model”).
get_current_repo
Resolve the repo slug for the current project (from CWD).
get_list
Get a config value as a list of strings by dot-separated key.
get_project_paths
Get all project paths from the global config projects: list.
get_projects_with_paths
Like get_projects() but also returns the project directory path.
get_repo_for_project
Resolve the repo slug for a specific project path.
get_skills
Get skills configuration from the global config.
subscribe
Subscribe to config change notifications.
warm_cache
Pre-populate the config cache using async I/O.