Agent Substrate: idle agents give their Pod back

A Nov 26 explainer and a hands-on test show how Agent Substrate suspends idle agents, sandboxes their code and keeps API keys out of reach on Kubernetes.

Give every agent session its own Kubernetes Pod and you reserve memory for thousands of agents while only a handful are working. Agent Substrate separates a session's lifetime from its worker Pod: when the application decides a session can sleep, Substrate snapshots it, frees the worker and later resumes it on any free one. That is the argument of a Nov 26, 2026 piece in The Generative Programmer, which names four ways agents differ from microservices: long idle stretches, model-written code, model-chosen network calls, and acting on a user's behalf.

Three get a matching mechanism now, and the fourth only in part. Every active agent runs in its own gVisor or microVM sandbox. An egress gateway checks destinations and adds the API key to approved requests, so the credential never sits inside the sandbox. Each agent also gets a short-lived SPIFFE certificate. The article is clear about the gaps: payload inspection needs an extra policy, and native on-behalf-of flows are "still under design", so your app still authenticates users and maps their permissions.

Geert Baeke's Nov 19 hands-on run adds the field notes. He describes Substrate as version 1.0, maintained by Google and Solo.io. His LangGraph agent remembered a name held only in process memory after a suspend, with the round trip taking 0.93 seconds on his laptop, Claude call included. His agent sent the string placeholder as its Anthropic key, and the gateway swapped in the real one. But in his tests Substrate never suspended an idle actor on its own; one stayed running for more than 8 hours. He also says a plain chatbot that keeps state in a database is better off as a normal Deployment, and that it's "a bit early" for most of his customers, who would rather use a managed service in Azure.

Baeke's bottom line: it only pays off when sessions need their own machine, meaning agents that run code, use a shell or keep files. The README calls the project "VERY young", and Baeke notes the docs cover GKE and kind, and he hasn't tried AKS yet.

Try it: Run the README's kind quickstart and counter demo, send a request with curl -X POST -i http://localhost:8000/, then suspend the actor with kubectl ate suspend actor as Baeke does and send another. If the count carries on instead of resetting, the snapshot held your state.

Sources