Trending
#AI Engineering

agent-substrate/substrate

A Kubernetes runtime for running untrusted AI agents in isolated, snapshot-resumable sandboxes at high density.

5,766
624
Go
Apache-2.0
5 months old

The problem

Running AI agents safely at scale means two demands that pull against each other: each agent executes untrusted, potentially prompt-injected code and needs strong isolation, yet agents sit idle most of the time waiting on models and tools, so keeping a full sandbox per agent burns money. Teams typically end up with either one container per agent and a large bill, or shared infrastructure where a compromised agent can reach credentials and neighbors. Agent Substrate treats every actor as untrusted and maps many stateful actors onto a small pool of warm workers, suspending idle actors and restoring them on demand.

What's different

Compared with plain Kubernetes pods or a container-per-agent service, Substrate refuses ordinary Linux containers: every actor runs in gVisor or a Cloud Hypervisor microVM, and the project claims 10x-30x oversubscription by snapshotting idle actors out of memory. Compared with gVisor or Firecracker used directly, you get an opinionated lifecycle layer: actor teleport across workers, full RAM plus filesystem persistence, SPIFFE identity per actor, and an egress gateway that injects credentials outside the sandbox so the workload never holds a usable secret. The interesting design choice is that policy is enforced at a replaceable edge proxy, not inside the sandbox, which is the opposite of in-agent guardrails. The README is explicit that this is a runtime, not an agent SDK, and that the numbers quoted (>1500 activations/sec, <400ms resume) are the project's own claims.

Who it's for

Platform and infrastructure teams who already run Kubernetes and need to host many concurrent, mostly-idle, mutually hostile agents or MCP servers on shared nodes, especially where compliance forbids agents touching real credentials. It makes sense for teams using frameworks like ADK, LangChain, kagent or agent executors that want a drop-in sandbox. Individual developers building one agent, or teams without Kubernetes skills, should stay with ordinary containers or a hosted agent runtime; this adds a control plane and new failure modes for little benefit at small scale.

Cost of adoption

Go, kubectl and Docker are required for the dev quickstart, which builds a kind cluster plus PostgreSQL and storage. Production means a supported Kubernetes release (latest and previous minor) with gVisor or microVM capable nodes, and hosts running over ~1000 sandboxes need larger kernel neighbor tables. It is pre-1.0 with no backward-compatibility guarantees, APIs may change, and the contributing guide says the team is focused on core work, so outside PRs may wait. Apache-2.0 license, no install command beyond the repo's hack scripts.

Verdict

This is a young project (created mid-2026, roughly 160 days old) that already has 5.7k stars and gained about 2.4k in a single month, landing on the Go trending board at #19. That pattern suggests a strong launch, but Hacker News discussion is thin (3 threads, top one with 2 points and no comments), so external scrutiny is not yet meaningful. The Google-adjacent ecosystem links and CNCF Slack presence are real signals of intent, not proof of production use. It is worth a serious evaluation if you run untrusted agents on Kubernetes; otherwise wait for the 1.0 API to settle.

Hacker News

Agent Substrate: The Core System
▲ 2 · 0 comments · August 6, 2026
Agent Substrate
▲ 2 · 0 comments · May 23, 2026

Written by AI from the project's README, updated October 24, 2026. The project's own docs are the source of truth.