Apply a profile's prompt overlay to a base prompt string.
baseSystemPrompt (when set) replaces basePrompt entirely.systemPromptSuffix (when set) is appended with \n\n.Both are independently optional. A profile that sets only the suffix layers it on top of whatever base the caller passes in.
Used uniformly for the main agent, declarative subagents, and the auto-added general-purpose subagent.
applyProfilePrompt(profile: HarnessProfile, basePrompt: string): string| Name | Type | Description |
|---|---|---|
profile* | HarnessProfile | The harness profile to apply. |
basePrompt* | string | The default base prompt (e.g., |