unix-local for code you trust to run with the host user’s permissions. No container, VM, or OS sandbox is created.
local-workspace.ts and run npx tsx local-workspace.ts on a supported Unix host:
local-workspace.ts
Hello from Agentium. Close removes the owned workspace and rejects new work.
Environment and cancellation
Only PATH and explicitly configuredinheritEnv, workspace environment, and per-run environment reach the child. Node/Python source is passed as interpreter input; shell() and language: "shell" explicitly invoke shell semantics.
Timeout returns timedOut: true and exit code 124. Cancellation returns cancelled: true and exit code 130. Output overflow terminates the process group and marks truncation. Descendants that escape that group remain outside the cleanup contract.
File helpers check canonical paths, but arbitrary code is not confined to the workspace. Use E2B, Daytona, or an appropriately isolated host service for untrusted programs. See snapshots and ownership before attempting recovery.