Skip to content

readPromptFile

readPromptFile(filename, identityProfile, noDefaultPrompts?, defaultPromptDir?): string

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

Read a prompt file from the project config dir (honouring identity profiles), falling back to a packaged default unless noDefaultPrompts is set. Downstream packages owning their own prompt files (e.g. the assistant’s PR discovery prompt) pass defaultPromptDir pointing at their package root; when omitted, the default is read from the core package.

string

string | undefined

boolean

string

string