Skip to content

RealpathGuardOptions

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/core/deepAgentPermissions.ts:231

Options for guardFilesystemBackend.

optional allowDirs?: string[]

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/core/deepAgentPermissions.ts:242

Extra real absolute directories allowed beyond cwd (the --allow-dir widened roots).


optional cwd?: string

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

Real absolute cwd the sandbox is rooted at. Defaults to getCurrentWorkDir.


optional virtual?: boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/core/deepAgentPermissions.ts:240

True when the wrapped backend runs in virtualMode (EXT-16 Windows fallback): the model-supplied path is a /-rooted VIRTUAL path relative to cwd, not a real OS path. --allow-dir widening never applies in virtualMode (mirrors buildPermissions), so allowDirs is ignored when this is true.