Skip to content

chimera.config

chimera.config loads and validates user / project configuration. The core abstraction is the discriminated union — every type field selects which subclass to deserialise into.

from chimera.config import (
DiscriminatedUnion,
ChimeraConfig,
ProjectConfig,
)
SymbolModulePurpose
DiscriminatedUnionchimera.config.unionBase class. from_config(d) dispatches on a type field; to_config() round-trips back to a dict.
ChimeraConfigchimera.config.config_fileYAML / JSON config-file loader.
ProjectConfigchimera.config.loaderProject-config discovery (walks up from cwd looking for chimera.toml / .chimera/config.yml).

The chimera.config.skills and chimera.config.structured submodules hold smaller helpers used by the loader; their exports are stable but rarely imported directly.