ClaudeCode.Sandbox.Filesystem (ClaudeCode v0.29.0)
View SourceFilesystem isolation settings for sandbox configuration.
Maps to the SandboxFilesystemConfig type in the TS SDK.
Fields
:allow_write- Additional paths where sandboxed commands can write. Arrays merge across settings scopes.:deny_write- Paths where sandboxed commands cannot write. Arrays merge across settings scopes.:deny_read- Paths where sandboxed commands cannot read. Arrays merge across settings scopes.
Path Prefixes
| Prefix | Meaning | Example |
|---|---|---|
// | Absolute path from filesystem root | //tmp/build -> /tmp/build |
~/ | Relative to home directory | ~/.kube -> $HOME/.kube |
/ | Relative to settings file directory | /build -> $SETTINGS_DIR/build |
./ or none | Relative path | ./output |
Examples
iex> ClaudeCode.Sandbox.Filesystem.new(allow_write: ["/tmp/build", "~/.kube"], deny_read: ["~/.aws/credentials"])
%ClaudeCode.Sandbox.Filesystem{allow_write: ["/tmp/build", "~/.kube"], deny_write: nil, deny_read: ["~/.aws/credentials"]}