Kubernetes AI agents strain a platform designed around services, and Agent Substrate is a layer added on top to close four gaps. Containers, popularised by Docker, became the usual way to package microservices, and Kubernetes became the standard tool for running them at scale. Agents act differently from those services.
Think of a coding agent that pauses for approval, executes a script, queries a model and then pushes a change. Every stage places a different demand on the infrastructure underneath.
1. Long stretches of waiting
Agents often sit idle while a person replies, a model answers or a remote tool finishes. Little happens in their local environment during that time, but a dedicated Pod still keeps its memory and reserved capacity. Multiply that by thousands of sessions and the bill grows.
Agent Substrate detaches a session from the Pod serving it. When the application judges a pause safe, Substrate captures the environment as a snapshot and releases the worker. Later the session wakes on whichever worker is free. A smaller pool then serves many agents in turn, an idea called temporal multiplexing that resembles how CPUs share time between processes, applied to whole agent environments.
2. Unpredictable behaviour
With a microservice, engineers write the code and know the paths it can take. An agent with shell access can compose a Python script and run it on the spot. The script might edit files, start processes or attack nearby workloads, so the isolation boundary must hold regardless of what the model chooses.
Substrate places every active agent in its own gVisor or microVM sandbox. Workers are shared across agents, yet each one retains its own execution boundary.
3. Open-ended network reach
Staying in the sandbox doesn’t prevent leaks. Code could still be posted to an outside server. Our coding agent legitimately needs the repository and one approved model API, and nothing justifies sending files to a random address on the internet.
Substrate sends outgoing traffic via an egress gateway and a DNS relay, so policy decides which destinations are allowed and the gateway can add credentials from outside the sandbox. There’s a limit: an approved endpoint can still receive sensitive data. Inspecting payloads takes extra policy, and the API on the other end has to authorise each operation.
4. Acting on someone’s behalf
Suppose two people ask one agent to push a change. Only one of them has write access to the repository, and the second can merely read. The API must know which person is asking.
So a session needs an identity separate from its worker, together with the rights of the person it serves. Substrate issues short-lived identities for agents. User login and the mapping of delegated permissions to backend identity systems remain the application’s job. Native on-behalf-of flows are still being designed.
How responsibilities divide
Why plain Pods struggle here
Each of these four problems is manageable on its own. Teams can add sandboxes, firewall rules or identity tokens to a cluster without new infrastructure. The difficulty is that agents need all four together and at scale, with sessions that start, pause and resume constantly.
A Pod is a good unit for a service that runs steadily and does what its code says. An agent session is closer to a short-lived tenant: it may hold a user’s authority, run code nobody reviewed and spend most of its time doing nothing. Substrate treats that session, not the Pod, as the thing to schedule, isolate and identify.
Kubernetes keeps managing worker Pods. Agent Substrate takes care of the sandboxed environments that rotate through those workers. Teams that adopt the model keep ownership of user authentication and delegation.
The split is sensible. Kubernetes already schedules, scales and restarts Pods well. Substrate contributes suspend and resume, per-agent sandboxes, controlled egress and session identity above the cluster rather than replacing it.
What to watch next
Delegation is the unfinished piece. Until native on-behalf-of flows exist, every team has to connect user permissions to its own backend identity systems by hand. A follow-up piece is planned on combining Agent Substrate with kagent and agentgateway, which should show how the egress gateway, agent identity and agent runtime fit together in a complete stack.
Source: X (formerly Twitter)