PATH_NAMESPACE_GUIDANCE
constPATH_NAMESPACE_GUIDANCE:string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/core/GthDeepAgent.ts:758
EXT-22: shared virtualMode path-namespace guidance — ONE source of truth used by BOTH the S2
early-framing note (appendVirtualCwdNote, injected into gsloth’s composed systemPrompt =
block 0) and the S1 last-word correction middleware
(createPathNamespaceCorrectionMiddleware, appended after deepagents’ /-rooted line).
In a virtualMode code session (EXT-16, e.g. Windows) the deepagents filesystem tools use a
VIRTUAL / root (= the working dir) while run_shell_command uses REAL native OS paths; the
model conflates the two forms. This text draws the distinction and steers toward cwd-relative
paths (the one form both tool families read alike).
It deliberately does NOT equate the virtual root with a specific real path (no “/ = D:\work”):
virtualMode withholds the real cwd on purpose (see the systemPrompt gate in GthDeepAgent.init), so the guidance is about the DISTINCTION between the two namespaces and the
safety of relative paths, not a mapping between them.