Agent Runtimes and kagent

How an agent runtime starts, stops, and isolates work on Kubernetes, including kagent and Agent Substrate.

An agent runtime is the thing that starts, stops, and isolates an agent while it works. kagent puts that on Kubernetes.

These posts cover the harness, the substrate that packs many agents onto few nodes, and what breaks when isolation is shared. Identity for those agents is in Agent Identity .

Start here

  1. What AI Agent Harness Is Kubernetes-Native? kagent kagent is a Kubernetes-native AI agent harness. What a cloud-native harness is, and how kagent splits harness, template, instance and sandbox.
  2. kagent Agent Substrate: Thousands of Agents kagent Agent Substrate is built to run thousands of AI agents on tens of pods. I stood it up on kind: snapshot restores, autoscaling, and every gotcha I hit.
  3. Agent Runtimes Have an Autoscaler, Not a Scheduler Agent runtimes optimize for density and reject when full. That is not scheduling. Three failure modes at capacity, and who gets to call an agent critical.

Every post in this hub

  1. kubectl Is Lying to You
    kubectl is lying to you on Agent Substrate: get pods shows quiet workers while agents restore, queue, and checkpoint. Watch the workers list instead.
  2. Running Agent Substrate in Production
    Running Agent Substrate in production means real snapshot storage, a durable control plane, a secrets path, and a sandbox class you can defend.
  3. Agent Sandbox vs Agent Substrate
    Agent sandbox vs Agent Substrate: run agents as pods, isolate each one in a sandbox, or multiplex snapshot-backed actors onto a worker pool. How I choose.
  4. What Is Agent Substrate?
    What is Agent Substrate: a Kubernetes runtime that runs AI agents as snapshot-backed actors on a small worker pool instead of one always-on pod per agent.
  5. Agent Substrate: the Field Guide
    Agent Substrate field guide: how the runtime packs AI agents onto Kubernetes, what to scale on, and the isolation, identity, and scheduling it leaves to you.
  6. The kagent Harness: Declarative Agents, Memory and Compaction
    kagent's built-in harness runs a Go engine that reads your AgentTemplate: why it's the default, how memory and compaction work, and what you get that Claude Code, Codex and BYO don't.
  7. kagent BYO Harness: Running Factory Droid as an A2A Agent
    What kagent's byo harness requires, and how kagent-droid runs Factory Droid behind it: a Go A2A front, one droid exec per turn, session continuity on /data, and read-only k8s-tools.
  8. Does Agent Substrate's Checkpoint Survive a Held File Lock?
    I tried to break Agent Substrate's checkpoint with a held file lock. It survived: gVisor virtualizes flock() inside its own sentry, not the host kernel.
  9. kagent Harnesses Compared: kagent vs Claude Code vs Codex vs BYO
    The four kagent 1.0 harnesses side by side: what each runs, which model providers it takes, what it drops from an AgentTemplate, and how to pick one.
  10. kagent Codex Harness: Run OpenAI Codex on Kubernetes
    How to run OpenAI Codex as a kagent 1.0 harness: the four resources, the ModelConfig rules, MCP and env restrictions, and how to debug a Compatible=False agent.
  11. How AI Agents Sharing a Sandbox Leak Each Other's Data
    A finance AI agent leaked bank balances into company Slack by sharing compute with another agent. Reproduced in Docker, then fixed with separate sandboxes.
  12. What AI Agent Harness Is Kubernetes-Native? kagent
    kagent is a Kubernetes-native AI agent harness. What a cloud-native harness is, and how kagent splits harness, template, instance and sandbox.
  13. Agent Runtimes Have an Autoscaler, Not a Scheduler
    Agent runtimes optimize for density and reject when full. That is not scheduling. Three failure modes at capacity, and who gets to call an agent critical.
  14. Regression Tests for kagent Agents with agentevals
    kagent records agent sessions as ADK events. agentevals scores chat-message trajectories. I built the bridge, and a suite that catches an ungrounded agent.
  15. kagent Claude Code Harness on Kubernetes (Updated for v1alpha3)
    Run Claude Code as a kagent harness: current Harness + AgentTemplate + Agent YAML, the MCP all-tools gotcha, plus the v1.0.0-alpha1 history (AgentInstance, checkpoints, golden snapshots).
  16. Substrate Scope: a Live Visualizer for Agent Substrate
    Substrate Scope is an open source live visualizer for Agent Substrate: worker bays, restore queues, snapshot storage, telemetry, and per-agent activity.
  17. Revenant: A Gateway-Native, Always-On Agent Runtime
    Revenant is an always-on agent runtime in Rust where an AI gateway owns every key, budget, and failover, and a hard liveness rule means no turn goes silent.
  18. kagent Agent Substrate: Thousands of Agents
    kagent Agent Substrate is built to run thousands of AI agents on tens of pods. I stood it up on kind: snapshot restores, autoscaling, and every gotcha I hit.

Frequently asked questions

What is an agent runtime?

An agent runtime is the thing that starts, stops, and isolates an agent while it works. On Kubernetes that includes the harness, the sandbox, and the pool of workers that actually run the loop.

What is kagent Agent Substrate?

Agent Substrate is kagent’s way of packing many agents onto fewer nodes. It snapshots a warm worker, parks idle agents, and brings them back without paying the full cold-start cost each time.