appendVirtualCwdNote
appendVirtualCwdNote(
systemPrompt):string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/core/GthDeepAgent.ts:781
EXT-22 (S2): virtualMode variant of appendCwdNote. On the code path when the fs
backend runs in virtualMode (EXT-16), inject the shared path-namespace guidance EARLY in
gsloth’s composed systemPrompt (block 0) so the model is framed before deepagents’ own prompt.
This is early framing only: deepagents’ hardcoded /-rooted line lands in a LATER block and can
partially override block 0, so the authoritative last word is delivered by the S1 middleware
(createPathNamespaceCorrectionMiddleware); see handoff/spike-systemmessage-ordering.md.
Returns the note alone when there is no base prompt.
Parameters
Section titled “Parameters”systemPrompt
Section titled “systemPrompt”string | undefined
Returns
Section titled “Returns”string