Posts: agents

Clear filter

Posts tagged agents.

November 24, 2026

Local agent sandboxes with docker

Docker Sandboxes (sbx) are primarily a developer tool for your laptop: an agent execution layer you can trust by design when coding agents install packages, edit files, and run Compose on a machine you care about. Cloud sandboxes exist too, but the job I care about here is local — several repos, multiple agents, one developer machine.

I expect that pattern to get denser, not rarer. If each agent sat in a full traditional VM, a swarm on a laptop gets expensive fast, so the microVM bet makes sense: a separate kernel with less traditional VM overhead. The private Docker Engine is the other half — you cannot realistically audit that none of those agents reaches for the host Docker socket, and that socket is effectively control of the host’s containers (and, in practice, a path to the host). A container alone is the wrong default for this threat model: agents run untrusted dependencies and generated scripts; shared-kernel isolation is a weaker story for “I’ll let this run while I look away.” Even aside from malice, separate kernels and Engines are good hygiene — cleanup with sbx rm, less collision with your real local Docker state, a clear place for network policy.

Below is a thin walkthrough of that surface: install the CLI, define a sandbox and mount a project, start it with a baked-in Claude agent, and fix a small broken FastAPI + Postgres app. Repo: github.com/mkarots/dbox.

[... 1,382 words]