hisn
A daemonless, rootless, single-binary Linux sandbox that runs AI agents and their tools in isolated named sessions with an audit record.
At a Glance
Self-hosted single-binary hisn sandbox released under the Apache License 2.0.
Engagement
Available On
Listed Dec 2026
About hisn
hisn is an open-source Linux sandbox for running agents and their tools, published by the GitHub user treeol. It runs each workload in an isolated, named session and keeps a record of what the session did. It ships as a single binary and needs no daemon and no root. The latest release listed is v0.7.1.
What It Is
hisn is a command-line sandbox for AI coding agents. A command started by hisn sees a private view of the machine: its working directory at the same path as on the host, a read-only toolchain, and private $HOME, /tmp and /run. Paths outside this view do not exist for the command (ENOENT). Access beyond the view exists only through grants, and every grant ends with the session.
How Isolation and Sessions Work
Isolation uses unprivileged user, mount, pid, ipc and uts namespaces, pivot_root into an empty tmpfs, seccomp and Landlock. Capabilities are dropped and no_new_privs is set. The network is none (loopback only) by default, with host and open modes available. In open mode, outbound TCP connections to public addresses are made by the supervisor and each decision is recorded.
Sessions have names and recorded states (creating, running, stopping, stopped, crashed), with an optional idle timeout. Users can run commands, start detached execs, check their status and output, signal them, or attach an interactive shell. Host paths can be granted with hisn grant (read-only unless --rw) and detached with hisn revoke. An optional read-only rootfs can be imported once and reused by every session.
Journal, Audit and Seats
A workspace journal records session start and stop, each command with its command line, exit code and duration, grants, revokes and notes. hisn journal reads it back and hisn note adds entries. Each session also keeps an append-only grants.jsonl that is archived when the session is pruned. At session stop, hisn reports whether .git/hooks or .git/config changed. This report does not block anything.
Workspaces can define seats with owner, member or observer roles. Under one Unix user a seat is attribution and a guard against mistakes, not a security boundary.
Scope and Limits
The README states that hisn is not a VM: the sandbox shares the host kernel. It requires Linux kernel 5.12 or newer with unprivileged user namespaces, Landlock and seccomp. network = open needs kernel 5.14 or newer. Optional ROCm GPU passthrough exposes render nodes. Programs can drive hisn through its CLI, hisn ls --json and a documented control socket protocol.
Collections
Collections with tools like hisn
- Tools from @lxe's harness wishlist
Collection by @joemseifi · has Wakil
Add hisn to one of your collections.
Community Discussions
Be the first to start a conversation about hisn
Share your experience with hisn, ask questions, or help others learn from your insights.
Pricing
Open Source
Self-hosted single-binary hisn sandbox released under the Apache License 2.0.
- Apache-2.0 licensed core product
- Single binary, no daemon, no root required
- Isolated named sessions (namespaces, seccomp, Landlock)
- Workspace journal and audit log
- Seats with owner/member/observer roles
Capabilities
Key Features
- Rootless, daemonless single binary
- Namespace, seccomp and Landlock isolation
- Named sessions with recorded state and idle timeout
- Exec, detached exec and interactive attach
- Grants and revokes of host paths per session
- Workspace journal and append-only audit log
- Seats with owner, member and observer roles
- Git change report at session stop
- Network modes none, host and open with journaled connections
- Optional ROCm GPU passthrough
- JSON session listing and documented control socket protocol
- Importable read-only rootfs
