Agent substrate overview

From vinnie357/claude-skills · View interactive version

Agent substrate overview is an AI agent skill from the GitHub repository vinnie357/claude-skills. Reference for the alpha agent-substrate/substrate project as an alternative ultra-scale control plane that shares snapshot and runtime primitives with kubernetes-sigs/agent-sandbox. Use when comparing agent-sandbox vs Substrate, evaluating the WorkerPool + ActorTemplate multiplexing model, reviewing

How to use this skill

Skill file

agent-substrate-overview

Agent Substrate is an Apache-2.0 Kubernetes runtime for agent-like workloads that multiplexes many stateful actors onto fewer worker pods, preserving in-memory + disk state via gVisor checkpoint/restore. It is explicitly alpha (v0.0.0, README quote: "VERY early development… APIs are almost guaranteed to change"). This skill is a short reference so you can evaluate it against k8s-agent-sandbox, not an operational guide.

If the operational decision is already "use Substrate," read the upstream README directly — this skill is intentionally not a step-by-step install guide because Substrate is at v0.0.0 with API churn between commits, so pinning a recipe here would go stale.

What Substrate is

From the upstream README: "Agent substrate is a system built on top of Kubernetes which manages agent-like workloads to achieve higher scale and efficiency than Kubernetes alone can offer, with lower latency."

Architectural diff vs kubernetes-sigs/agent-sandbox:

| | agent-sandbox (kubernetes-sigs) | agent-substrate |

|---|---|---|

| Maturity | v0.4.6 (released) | v0.0.0 (alpha) |

| Control plane | k8s controller + CRDs only | k8s controller + dedicated gRPC ateapi |

| Workload model | One sandbox per claim | Many actors multiplexed onto fewer pods |

| Suspend/resume | Pod snapshots (GKE feature) | gVisor runsc checkpoint/restore first-class |

| CLI | kubectl + Python SDK | kubectl-ate plugin |

| Use case | per-session ephemeral agents | high-density actor swarms |

Per Google's 2026-05-20 blog: "Substrate is the open-source ultra-scale tier sharing Sandbox's core secure runtime and snapshotting capabilities with a minimal control plane designed to bypass some of the limitations of Kubernetes for millions of sub-second tool calls."

Components

External deps: gVisor, Valkey (Redis-compatible), RustFS.

CRDs

SessionIdentity (not a CRD; a service exposed by ateapi) exchanges ephemeral kubelet credentials for stable JWT/cert identities that persist across worker migrations.

Claude Code on Substrate

Substrate's demos/claude-code-multiplex/ ships a working example:

Example: WorkerPool + ActorTemplate field semantics

Trimmed from demos/claude-code-multiplex/claude-code-multiplex.yaml.tmpl upstream (Apache-2.0) — the WorkerPool plus one of its three ActorTemplates (mars and orion are structurally identical to luna, differing only in metadata.name and the ACTOR_NAME/TASK env values):

# 2 worker replicas for 3 actors — the multiplex pressure that makes the
# substrate suspend/resume behavior visible.
apiVersion: ate.dev/v1alpha1
kind: WorkerPool
metadata:
  name: claude-workerpool
  namespace: claude-multiplex-demo
  labels:
    workload: claude-multiplex
spec:
  replicas: 2
  ateomImage: ko://github.com/agent-substrate/substrate/cmd/ateom-gvisor

---

apiVersion: ate.dev/v1alpha1
kind: ActorTemplate
metadata:
  name: agent-luna
  namespace: claude-multiplex-demo
spec:
  pauseImage: "registry.k8s.io/pause:3.10.2@sha256:f548e0e8e3dc1896ca956272154dde3314e8cc4fde0a57577ee9fa1c63f5baf4"
  containers:
  - name: claude
    image: ${WORKLOAD_IMAGE}
    env:
    - name: ACTOR_NAME
      value: "luna"
    - name: TASK
      value: "Tell me one short, surprising fact about the Moon. One sentence."
    - name: ANTHROPIC_API_KEY
      valueFrom:
        secretKeyRef:
          name: anthropic-api-key
          key: api-key
  workerSelector:
    matchLabels:
      workload: claude-multiplex
  snapshotsConfig:
    location: gs://${BUCKET_NAME}/claude-multiplex-demo/

Field semantics not obvious from the names alone:

Substrate is not an MCP server — it's a workload host. Claude Code packaged as an OCI container becomes an actor like any other Substrate workload.

Install summary (do not paste verbatim — read upstream first)

The upstream uses shell scripts under hack/, not Helm or Kustomize. Examples:

The exact scripts change frequently in alpha. Read the README at https://github.com/agent-substrate/substrate before running any of them.

Which to pick

For this plugin's Claude Code-on-sandbox use case (one operator, one session at a time, microVM isolation): stick with k8s-agent-sandbox. Substrate's multiplexing is overkill and its alpha status means upgrade churn.

See also

Anti-fabrication

<!-- vale Flavored.Superlatives = NO -->

<!-- vale Flavored.Superlatives = YES -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.