Skip to content

setProjectDir

setProjectDir(dir): void

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/systemUtils.ts:233

The directory of the DISCOVERED project config (the up-tree match, or the --config override). It governs ONLY post-config, project-relative artifact resolution (project guidelines, prompts, .gsloth-settings, outputs). When unset (a global-only config, no config at all, or before discovery has run) callers fall back to cwd via getProjectDir.

This is NOT the global-config dir (~/.gsloth): the global config stays cwd-anchored by design, so it must never be routed through this value.

string | undefined

void