Brickie is an open-source system for running persistent, isolated workspaces in your own cloud or Kubernetes cluster, especially for AI-agent workflows. Each sandbox is a container with a shell and working directory, and can use isolation runtimes such as Kata, gVisor, or AWS Nitro. It integrates with Hatchet’s durable task engine, so sandbox operations can be retried, observed, and replayed. A TypeScript example creates a sandbox, writes and reads a file, then reconnects to the same session later using its ID.
The central design choice is to save an immutable snapshot to object storage after every operation that changes the workspace. Snapshots can resume a session or fork a new sandbox; if a task is retried, Brickie can reuse its existing snapshot rather than rerun a successful command. This differs from agent-sandbox’s per-sandbox persistent volumes and GKE-specific point-in-time snapshots. Brickie also offers warm pools for faster starts, configurable resource and network limits, mutual TLS between provider and sandboxes, and support for S3-compatible storage, GCS, and Azure. The same code path can run on Docker for local development without Kubernetes. The project is in beta, so its configuration and interface may change before version 1.0; it is MIT-licensed and includes documentation on architecture, security, and extending its drivers.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.