Lurker News
Hey HN, this is Alexander from Hatchet (https://github.com/hatchet-dev/hatchet). We’re releasing a new open-source project today called Brickie. Brickie lets you run sandboxes in your own cloud account, primarily targeting EKS on AWS.

Sandboxes are an incredibly useful primitive for agentic applications. They serve two main functions: (1) a way for the agent to safely execute untrusted code, and (2) a durable filesystem for agents to preserve their state via snapshots.
We decided to start building this after we started on a package called `@hatchet-dev/sandbox` to integrate more directly with various sandbox providers, like E2B, Daytona, Archil, and Modal. We discovered that a lot of users had a requirement to self-host their sandbox infra for part of (or all of) their stack, due to a self-host requirement for enterprises. We searched around for the easiest way for users to self-host a sandbox stack and agent-sandbox (https://agent-sandbox.sigs.k8s.io) was the closest thing to what we had in mind: it’s a kubernetes-sigs project implementing a Kubernetes operator which spawns sandboxes as pods on supported isolation layers like Firecracker, gVisor, and Kata Containers. We learned that many platform teams were adopting this because it's a standard k8s-based deployment model and is pretty easy to customize the isolation layer, network config, etc.
However, it was missing some necessary features. brickie builds on top of the agent-sandbox project and extends it to support proper sandbox (filesystem-based) snapshots, fork, pause, and resume, all while bundling a proper orchestration and observability layer via Hatchet.
Zooming out a bit, Hatchet is an orchestration engine which supports durable execution (https://hatchet.run/blog/durable-execution). Throughout 2026, we saw high adoption from users building agents using durable workflows as the statefulness layer and execution model. But as sandboxes became more popular, something didn’t sit right with us. Sandboxes _also_ provide a durability layer, but at the filesystem level, and it became important to disambiguate what we call session state from filesystem state. I wrote a lot more about this here: https://hatchet.run/blog/agent-statefulness.
The problem with having state in multiple places is that it needs coordination, which adds complexity to your application. This was part of the motivation behind `@hatchet-dev/sandbox`: we wanted to provide an easy way to take coordinated snapshots of agent state, even when using an external sandbox provider.
So when we started looking at self-hosted sandbox options, it was critical that this architecture was supported well. We decided to support this in brickie using a pretty simple snapshotting mechanism which tars and stores snapshots in an object store (S3). This is something we’re actively working to improve and make more performant.
Brickie is early and in beta, we're looking for testers, contributors, and feedback on the deployment model. Thanks in advance!

Comments (8) 8 threads

ShintaroHara#
That sounds good! Should I think of this as the addition of state saving and the ability to retry actions to the agent-sandbox?
christianbasile1 reply#
this is a very interresting concept; the first time i am reading about snapshots and, in brickie's case, persistent filesystem snapshots - very cool.
abelanger#
Thanks! Many sandbox providers support snapshots through various mechanisms: filesystem snapshots and even full memory. The snapshot mechanism here is very simple, it just streams tars to S3, though we've been playing around a lot with OverlayFS which will likely be the next iteration.
vivzkestrel1 reply#
- what is the difference between e2b, daytona, modal, firecracker vm, docker and your sandbox

- i want to run untrusted code inside ec2 submitted by users
- what are my options?

aditi805#
I have found firecracker vms to be the most lightweight generally. e2b provides a good orchestration of these and you dont have to pay for idle sessions.

an untrusted code running on your VPC directly would never be safe anyway, and I'll probably just isolate that environment as the first safety step!

d1algo121 reply#
is this useful to run ai agents in their own sandbox?
abelanger#
You can use it for that, yes. Note this is designed more for people building agent products who want to add a sandbox to their agent, not for developers running coding agents remotely.

Generally the two approaches to agents with sandboxes are to run your agent "inside the sandbox," where the entire agent process runs in the sandbox, or "outside the sandbox" where the agent uses the sandbox as tool calls. We usually recommend the latter though both are possible.

Load more comments