2026-11-26 15:48 UTC

Plimsoll offers explicit isolation floors for agent code, but remains unaudited and unproven

state: watchingheat: lowuncertainty: mediumrelevance: mediumagent-sandboxing self-hosted-tools code-executionplimsollmark

What is this?

Plimsoll is a pre-1.0, Apache-2.0 Go project by a single author that runs agent-written code through configurable providers, from in-process WebAssembly to Docker/gVisor and hosted microVMs. It reports an isolation tier for each run and can refuse requests below a caller-set minimum; it also offers API grants that keep credentials outside the sandbox, plus verifiable run records. The project’s documentation says it has no external users and has not had a third-party security audit. The supplied sources describe its features but do not independently verify its security or practical adoption.

Why it matters

Agent-written code can expose a machine, credentials, or data if it runs with broad access. Plimsoll’s notable idea is to make the isolation level explicit per run and let callers require a minimum, while brokering narrowly scoped API access without putting credentials in the sandbox. That could help developers move between local testing and stronger execution boundaries without changing clients. But this is an early, single-author project—not an established or independently audited security product—so its design claims are not proof that it contains hostile code in practice.

Current assessment

The supplied GitHub project documentation describes Plimsoll as a pre-1.0, Apache-2.0 Go sandbox service for untrusted, including agent-authored, code. It reports one of four isolation tiers (process, container, kernel, VM), supports a caller-set minimum that causes a refusal before execution if unmet, and provides API grants, checked run records, and optional signing/replay tools. Providers range from in-process WebAssembly and local Docker/gVisor to hosted microVM services; the project also documents agent-framework integrations and stateful sessions. These are project claims and examples, not independent security validation. The author says the project has no external users and has had no third-party security audit; the reported tier is based on daemon configuration and checks, not hardware-backed attestation. The October 15 HN item, “Sandboxing Claude Code on Ubuntu,” is present in the supplied evidence, but has no article text or comments here, so it does not establish adoption of Plimsoll or confirm the broader hypothesis. Useful to track as an early practical approach to making sandbox strength and credential boundaries explicit; assess more strongly only with independent testing, security review, or evidence of real deployments.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady1 platformsage 1096h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-11 23:47⭐ origin directly observedShow HN: Plimsoll, a self-hosted sandbox for code your AI agent writes
cagster on hacker news
—
10-15 10:52first on hacker news · published · +83.1hSandboxing Claude Code on Ubuntu
gstoychev
—
10-11 23:47amplified on hacker news 👑hn.story.50049388
cagster
peak 16 · 3 comments · 95% of case engagement
10-15 10:52amplified on hacker newshn.story.50101886
gstoychev
peak 1 · 0 comments · 5% of case engagement
10-12 01:29our radar first saw it · +1.7hdiscovery anchor: hn.story.50049388—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hn ⭐Show HN: Plimsoll, a self-hosted sandbox for code your AI agent writes
Retrieved article excerpt

Open article · Retrieved 2026-10-12T01:33:25.438157+00:00

# plimsoll

**plimsoll runs untrusted code, such as code an AI agent wrote, inside a sandbox, and
every result says how strong that sandbox was. A request can demand a minimum strength;
if the sandbox is weaker, nothing runs.**

[audit](https://github.com/plimsollmark/plimsoll/actions/workflows/audit.yml)
[gvisor](https://github.com/plimsollmark/plimsoll/actions/workflows/gvisor.yml)
[Go Reference](https://pkg.go.dev/github.com/plimsollmark/plimsoll)
[Go version](https://github.com/plimsollmark/plimsoll/blob/main/go.mod)
[release](https://github.com/plimsollmark/plimsoll/releases)
[license](https://github.com/plimsollmark/plimsoll/blob/main/LICENSE)

The name comes from the *Plimsoll line*, the load limit painted on the outside
of a ship's hull where anyone can check it. plimsoll does the same for the
*isolation tier*: how strong the wall around a run is, stated as one of four
levels, weakest first: `process`, `container`, `kernel`, `vm`. The tier is a value on every
result, not a sentence in a datasheet. A request can set a *floor*, the weakest
tier it will accept, and the official Go client checks the tier again when the result
comes back.

The same machinery lets plimsoll run an exam on code an agent wrote, not only contain
it. A trial runner built into the simulation image runs the agent's program against
scenarios that program cannot read: each one reaches the runner in a file deleted before
the program starts. Every run returns SHA-256 hashes of the request as sent and the
result as returned, which the official clients recompute ([how](https://github.com/plimsollmark/plimsoll/blob/main/docs/run-records.md)). A
separate program outside the daemon, [`plimsoll-attest`](https://github.com/plimsollmark/plimsoll/blob/main/cmd/plimsoll-attest), signs
the checked results, refuses a chain of calls with one missing, and replays a run. The
exam itself (the simulated system, the scenarios, the pass mark) stays yours: plimsoll
supplies the boundary and the evidence.

## See one real run

An AI agent wrote a *controller*: a program that reads a system's state at
every *tick* (here, one 10 ms step of the simulation) and decides how to push it. plimsoll
ran it against a simulated *cart-pole*, a cart on a rail with a pole hinged on
top, which the controller keeps upright by pushing the cart left and right. The simulator
is compiled to *WebAssembly*, a portable bytecode that runs inside a host program,
and built into the sandbox image. The controller was the only file the caller sent, through
the ordinary project API, and it ran at the `container` tier.

[The physics oracle: a cart with a pole balanced on it by an agent-written controller, beside the SHA-256 fingerprint of each run's trajectory](https://plimsollmark.github.io/plimsoll/examples/oracle/index.html)

The cart-pole is the standard teaching problem in control engineering. The runner, a
program built into the image that runs the controller against the simulator, records
the run's *trajectory*, every state at every tick, and hashes it into a
*fingerprint*: a SHA-256 hash, so equal fingerprints mean identical numbers. Run
the accepted controller twice and the two fingerprints match. The agent's first draft had
two gains (multipliers in its formula) with the wrong sign: it drops the pole at 5.96
seconds, and its fingerprint differs.

[Pole angle and cart position over twenty seconds, for the accepted controller and for the draft that fell](https://plimsollmark.github.io/plimsoll/examples/oracle/index.html)

**[Open the live run report ↗](https://plimsollmark.github.io/plimsoll/examples/oracle/index.html)**
to replay both runs in the browser, read the controller the agent wrote, and see what the
page deliberately does not claim. One execution of the example makes three sandbox runs: the accepted
controller twice and the draft once. Reproduce them with
`make docker-images && go run ./examples/oracle`.

## The two things it does

**It reports the wall.** Every result states the isolation tier the run actually got.
Every request can set a floor, and a request whose floor the daemon cannot meet is refused
before any code runs: `ErrInsufficientIsolation` means nothing ran.

```
res, err := provider.Sandbox.RunJavaScript(ctx, sandbox.Request{
    Code:             "console.log(6 * 7)",
    MinimumIsolation: sandbox.IsolationVM, // ErrInsufficientIsolation means nothing ran
})
// res.Isolation reports the boundary that actually ran.
```

Every refusal that ran nothing is marked as one, with a reason (`request`, `permission`,
`protocol`, `unsupported`, `isolation`, `environment`, `capacity`). `sandbox.NotDispatchedReason(err)`
reads the mark, whether the *provider* (the backend that runs the code) is in
your own process or behind the daemon. An error without the mark may have come after the
code started, so it is never safe to retry automatically. A mark counts only on an answer
that carries the client's request ID back, so a proxy that serves one request's answer
for another cannot make a call that ran read "nothing ran"
([what comes back, and what it means](https://github.com/plimsollmark/plimsoll/blob/main/docs/run-results.md#did-anything-run-the-error-says-so)).

The tier is evidence the daemon collected: its configuration and its own startup checks.
It is not *attestation*, cryptographic proof from the hardware of what software
is running, and no provider here offers that.
[docs/isolation-tiers.md](https://github.com/plimsollmark/plimsoll/blob/main/docs/isolation-tiers.md) lists what each tier rests on.

**It lets agent-written code call your API without ever holding your credential, your
API's address, or open network access.** A *grant* gives one run permission to
call listed routes of one API. The code calls through a small client plimsoll puts in the
sandbox, and the *broker*, the part of plimsoll outside the sandbox that makes
the real call, checks the caller and the exact route, then attaches the credential itself.
The credential is *minted* per run: plimsoll asks for it once per run, so it can
be a fresh short-lived token, and it never enters the sandbox. Code that skips the client
and calls out by hand gets no further, because the broker, not the client, enforces the
rules. See [docs/capability-grants.md](https://github.com/plimsollmark/plimsoll/blob/main/docs/capability-grants.md).

## Use it from an agent framework

These agent frameworks can hand their model's code to plimsoll through a tool or code
executor of their own (*Trigger.dev*, one of them, is a hosted TypeScript job
runner). Each row names what to install, the guide, and a page that replays recorded calls
from that framework's tool to a sandbox and back, refusals included.

| Framework | Package or extra | Guide | See a run |
| --- | --- | --- | --- |
| Vercel AI SDK | `@plimsollmark/client/ai-sdk` | [Vercel AI SDK guide (INTERNAL · documentation →)](https://github.com/plimsollmark/plimsoll/blob/main/docs/ai-sdk.md) | [Vercel AI SDK page (INTERNAL · plimsoll site →)](https://plimsollmark.github.io/plimsoll/integrations/vercel-ai-sdk/index.html) |
| Google ADK | `plimsoll-client[adk]` | [Google ADK guide (INTERNAL · documentation →)](https://github.com/plimsollmark/plimsoll/blob/main/docs/google-adk.md) | [Google ADK page (INTERNAL · plimsoll site →)](https://plimsollmark.github.io/plimsoll/integrations/google-adk/index.html) |
| Agno | `plimsoll-client[agno]` | [Python client guide, Agno and CrewAI tools (INTERNAL · documentation →)](https://github.com/plimsollmark/plimsoll/blob/main/clients/python/README.md#agno-and-crewai-tools) | [Agno page (INTERNAL · plimsoll site →)](https://plimsollmark.github.io/plimsoll/integrations/agno/index.html) |
| CrewAI | `plimsoll-client[crewai]` | [Python client guide, Agno and CrewAI tools (INTERNAL · documentation →)](https://github.com/plimsollmark/plimsoll/blob/main/clients/python/README.md#agno-and-crewai-tools) | [CrewAI page (INTERNAL · plimsoll site →)](https://plimsollmark.github.io/plimsoll/integrations/crewai/index.html) |
| [Trigger.dev](https://github.com/plimsollmark/plimsoll/blob/main/docs/trainers/glossary.html#trigger-dev) | `@plimsollmark/client/trigger` | [Trigger.dev guide (INTERNAL · documentation →)](https://github.com/plimsollmark/plimsoll/blob/main/docs/trigger-dev.md) | [Trigger.dev page (INTERNAL · plimsoll site →)](https://plimsollmark.github.io/plimsoll/integrations/trigger-dev/index.html) |
| Mastra | `@plimsollmark/client/mastra` | [TypeScript client guide, Mastra (INTERNAL · documentation →)](https://github.com/plimsollmark/plimsoll/blob/main/clients/typescript/README.md#mastra) | [Mastra page (INTERNAL · plimsoll site →)](https://plimsollmark.github.io/plimsoll/integrations/mastra/index.html) |

## Give a Trigger.dev agent a code tool

The [TypeScript add-on](https://github.com/plimsollmark/plimsoll/blob/main/clients/typescript/README.md#triggerdev) gives an
`executeCode` tool to a chat agent on Trigger.dev. On a daemon with a *session*, one sandbox kept
for several calls, each call is a *cell*, code run inside the
interpreter kept for that conversation:
variables and files can survive the next call. Each tool result says whether
they can survive, whether this call started fresh, the isolation tier it ran
behind, and the SHA-256 of the *run record*, a receipt for what was
sent and returned that the client checked before returning. The caller sets a
minimum tier, so a weaker provider refuses before running code.

[See the feature and deployment guide](https://github.com/plimsollmark/plimsoll/blob/main/docs/trigger-dev.md) for the exact
guarantees and production floor. The
[deployable Trigger.dev starter](https://github.com/plimsollmark/plimsoll-trigger-starter)
has a chat agent and a task that proves two cells share one interpreter through
a real daemon, without making an AI model call.

## Run something in one minute

The example needs no daemon, no docker, no credentials and no network: it uses the `wasm`
provider, which runs JavaScript on *QuickJS*, a small JavaScript engine
compiled to WebAssembly, inside your own process. Cloning and fetching Go modules do use
the network.

```
git clone https://github.com/plimsollmark/plimsoll && cd plimsoll
go run ./examples/minimal
```

```
provider   wasm
isolation  process
exit code  0
timed out  false
truncated  stdout=false stderr=false
duration   304ms
stdout     {"Engineering":59000000,"Sales":20300000,"Operations":9800000}
```

The `isolation` line comes from the run's result, not from the example's own text.
**`process` means there is no operating-system wall at all: do not use it for hostile
code.** The same snippet runs at the `kernel` tier once *gVisor* is installed.
gVisor is a layer between a container and your machine's kernel that handles the
container's requests to the operating system itself, so the code never talks to your
kernel directly. `sudo ./docker/install-gvisor.sh` installs a *pinned* gVisor
release (one exact version, changed only by editing this repository) and registers its
runtime, *runsc*, with docker. Nothing else about the program changes:

```
make docker-images   # builds the project image (plimsoll/sandbox) the docker provider checks for
SANDBOX_PROVIDER=docker SANDBOX_DOCKER_RUNTIME=runsc go run ./examples/minimal
```

With `SANDBOX_PROVIDER` unset, plimsoll uses the Disabled provider, which runs nothing, so
code execution is never on by accident.

**Next:** [docs/getting-started.md](https://github.com/plimsollmark/plimsoll/blob/main/docs/getting-started.md) walks through the same pieces
on one machine: start the daemon, create a caller credential, write your own client, watch
a floor refuse a run, then move the daemon from `process` to `kernel` without changing the
client. It also covers embedding the Go package instead of running the daemon.

## Where the pieces sit

```
flowchart LR
  A["Agent or MCP gateway (MCP: how an AI app offers tools to a model)"] -->|"Run: one payload, a protocol number, minimum_isolation
cagster163
🟧 hnSandboxing Claude Code on Ubuntugstoychev10

Interpretation history

Decision trace