LocalFsMode
public enum LocalFsMode
io/agentscope/harness/agent/workspace/LocalFsMode.java:37–41定义本地 Fs 模式相关取值的枚举。位于 io.agentscope.harness.agent.workspace 包。核心成员包括 SANDBOXED、ROOTED、UNRESTRICTED。
Path-resolution policy mode for host-rooted filesystems
(io.agentscope.harness.agent.filesystem.local.LocalFilesystem and friends).
Controls what happens when the agent supplies an absolute path:
-
#SANDBOXED— anchor every path to the filesystem root, reject..and absolute paths leaving the root. Equivalent to the legacyvirtualMode=true. -
#ROOTED— absolute paths are accepted only when they fall under one of the roots in the configuredPathPolicy(project + workspace + additional roots). Relative paths still resolve against the filesystem root. This is the default for Local-mode agents and matches the Claude-Code-style "project + additional dirs" allow-list. -
#UNRESTRICTED— absolute paths pass through unchanged. Equivalent to the legacyvirtualMode=false. Escape hatch for tools or tests that need to read arbitrary host paths.
枚举常量摘要Enum Constant Summary
| 常量Constant | 说明Description |
|---|---|
SANDBOXED | 执行沙箱化相关操作。 Performs the SANDBOXED operation. |
ROOTED | 执行 `ROOTED` 方法。 Performs the ROOTED operation. |
UNRESTRICTED | 执行 `UNRESTRICTED` 方法。 Performs the UNRESTRICTED operation. |
枚举常量详情Enum Constant Detail
SANDBOXED
SANDBOXED
执行沙箱化相关操作。
Performs the SANDBOXED operation.
io/agentscope/harness/agent/workspace/LocalFsMode.java:38ROOTED
ROOTED
执行 ROOTED 方法。
Performs the ROOTED operation.
io/agentscope/harness/agent/workspace/LocalFsMode.java:39UNRESTRICTED
UNRESTRICTED
执行 UNRESTRICTED 方法。
Performs the UNRESTRICTED operation.
io/agentscope/harness/agent/workspace/LocalFsMode.java:40