@harness-kernel/sandbox-local
v0.4.0
Published
Local shell sandbox for Harness Kernel.
Maintainers
Readme
@harness-kernel/sandbox-local
Local shell sandbox implementation for Harness Kernel runtime hosts.
pnpm add @harness-kernel/sandbox-localUse this package only in hosts that intentionally allow local command execution. The local sandbox runs shell commands on the host machine, so enable it deliberately, prefer a constrained workDir, and keep tool approvals in place for untrusted agent actions.
Minimal setup
import { LocalSandbox } from "@harness-kernel/sandbox-local";
const sandbox = new LocalSandbox({
workDir: ".",
env: "minimal",
defaultTimeoutMs: 30_000,
});Pass the sandbox from the runtime host into your Harness session configuration so mode-owned tools can call session.sandbox.exec().
See the local sandbox guide and runtime sandbox docs for the full host/runtime boundary notes.
