resolveSubagentProfileConfig
resolveSubagentProfileConfig(
profile):Promise<GthConfig>
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/core/subagentProfiles.ts:41
Resolve a named profile into a fully-merged child GthConfig by threading the profile name
through the GS2-1 cascade as identityProfile. Deliberately resolves with ONLY the profile
override — no parent -c / --model — so the child is exactly what that profile’s config dir
defines (a parent --model must not silently retarget the child’s profile model). The profile’s
own .gsloth/.gsloth-settings/<profile>/ config becomes the project-file layer; global config +
DEFAULT_CONFIG still underlay.
NOTE: an explicitly-named profile that has no config dir makes initConfig fail loudly (the
GS2-62 guard), so a typo’d subagent profile surfaces as an error rather than silently reusing the
parent/global model.
Parameters
Section titled “Parameters”profile
Section titled “profile”string
Returns
Section titled “Returns”Promise<GthConfig>