Skip to main content
Installs nhar, and nativeharness in full. Without installing: npx -p @nativeharness/cli nhar.
nhar and nh are different programs. nhar is this CLI, on your machine, and it can do everything — including delete a workspace. nh is the connector shim: a small command that exists only inside a sandbox, for the model to reach connectors with, and it can do nothing else. You will never type nh yourself, and nothing you install puts it on your PATH.

Workspaces

create grants the acting user permission. Without that the workspace would exist and refuse every command, because BashTool checks that the session’s actor is in permissions.

Work

exec hydrates the workspace’s files into a sandbox, runs the command, prints its output as it arrives, syncs the changes back, and prints how many files changed. --timeout <seconds> caps it.

Agent

Tokens stream as the model writes; commands print as they run, with output live; a held command asks allow it? [y/N]; a question from the model is asked inline with numbered options. Ctrl+C cancels the turn — durably, recorded with who stopped it — and a second Ctrl+C leaves. With no model configured it exits 2 and lists the environment variables to set.

Portability

Host

For the engine itself, npx nativesandbox doctor --deep goes further and proves the kernel is holding a memory limit.

Options and environment

Exit codes