kubectl is lying to you on Agent Substrate because kubectl get pods shows worker pods, not agents. Under load you will see two calm workers while actors restore from snapshots, wait for a slot, run a turn, and checkpoint back out to object storage. None of that is a pod, so none of it shows up: watch the workers list instead.
I already wrote the Monday teaser for the talk. This is the how-to behind it, the version I want people to land on when they search the phrase. What is Agent Substrate is the runtime. This page is what to watch once it is running.
Why is kubectl lying to you on Agent Substrate?
Kubernetes only sees WorkerPool and ActorTemplate. A Deployment for the pool. Node agents. That is it. The runtime itself is Agent Substrate. The interesting live state lives in ateapi: which actor is on which worker, who is Resuming or Suspended, how many snapshots sit in object storage. I pulled that split out in Agent Substrate dataplane.
kubectl get pods is not broken. It is answering a question the runtime moved. Always-on agents were pods, so the pod list was the fleet. Substrate parks the fleet on a snapshot shelf and keeps a small row of bays warm. Looking at the bays and concluding nothing is happening is the same mistake as looking at a quiet CPU graph and concluding the reservation is free.
Compare reservation, not usage. Idle always-on pods barely use CPU and still reserve it. Each of kagent’s default always-on agents held about 204 MiB and requested 50m CPU while doing nothing. Nine of those is roughly 1.8 GiB resident and 450m CPU reserved around the clock. Two worker pods look like nothing. They held the live work. The other agents were on the shelf. That is the lie inside the “pods vs substrate” chart, not only the lie inside kubectl.
What should I watch instead of kubectl get pods?
I built Substrate Scope because I got tired of explaining this with a whiteboard. Worker bays across the top, a restore queue under them, the snapshot shelf at the bottom. Agents move between those three. The buttons are real on a live cluster: they scale the WorkerPool, run a demand-driven autoscaler, fire surge traffic, and reset a wedged pool. Simulated mode runs in a browser with no cluster, which is useful for talks. Live mode polls the kagent controller. The code is Apache-2.0 at themsquared/substrate-scope.
If you do not want my UI, read the same data:
kubectl port-forward -n kagent svc/kagent-controller 8083:8083
curl -s http://127.0.0.1:8083/api/substrate/status
Four lists: worker pools, actor templates, actors, workers. Use the workers list. Each row is a bay. It names the actor assigned to it. It is never larger than the pool.
On a cluster without kagent, Scope falls back to kubectl CRDs: WorkerPools, live worker pods, ActorTemplates. Scaling still works. Which actor is on which worker does not, because that state lives in ateapi behind gRPC. Closing that gap is issue #1 on the repo: a direct ListWorkers / ListActors adapter.
The restore queue you see on the board is not in the runtime. Substrate rejects when the pool is full (substrate worker pool has no free workers). The queue lives in callers’ retry loops. The board renders it from client reports. If you only watch pods, you will miss the line.
What did the laptop cluster actually run?
On my laptop cluster: 18 agents on two worker pods, over a thousand real sessions, minimum reserved capacity about 4.5x lower than the same agents as always-on pods. The first lab ran nine on those two workers. This setup doubles it. All open source: themsquared/substrate-scope and themsquared/kagent-substrate-demo.
Those numbers are a density story, not a scheduler story. Simultaneous sessions equal workers. Total agents equal snapshots. How many agents per Kubernetes pod is the sizing post. If every agent is busy, the ratio collapses to 1:1 and you should have used a pod per agent.
I would not infer 18,000 agents on 2,000 workers from 18:2. Restore, the model queue, and ghost slots all change the shape. My sessions were chat turns against a local or API model. That is the cluster behind these dashboards. It is not a universal constant.
What lessons should I not skip?
1. The actors list lies. Every finished session leaves a Suspended actor behind. Mine passed through thousands of entries in a day on this later setup, and passed 900 in a day in the first lab. Under load the list started returning partial results. Running sessions dropped off my board because I joined through the actors list. The workers list is never larger than the pool and it names the assigned agent. The actors list lies. Trust the workers list.
2. CPU and memory are the wrong autoscaling signals. Workers are slot-bound. Active sessions idle at single-digit mCPU. Substrate rejects when the pool is full instead of queueing, so the real demand signal is in your callers’ retry loops. A CPU HPA looks at a full, quiet pool and sleeps. CPU is the wrong signal to autoscale agents.
3. The autoscaler can make it worse. On a serial model backend, more workers just piled more requests onto one generation queue. Everything timed out. Know the model concurrency before you scale the pool in front of it. The autoscaler made it worse. Scale the bottleneck, not the thing in front of it.
4. Killed sessions leave ghost actors. They pin workers while the pool looks idle. New sessions fail with substrate worker pool has no free workers while kubectl get pods looks fine. Reset is cheap because state lives in object storage. Ghost actors pin your workers. On a two-worker pool, one ghost is half your capacity.
5. DNS is part of the runtime. Actor egress in my lab died when substrate’s CoreDNS reload failed. Agents could not reach the model until I restarted deploy/dns in ate-system. A pod list will not tell you that. A workers list that looks idle plus a pile of tool-call errors might.
What would I instrument on Monday morning?
- Occupancy: busy workers / total workers, from the workers list. Not from pod CPU.
- Rejections:
substrate worker pool has no free workers, counted at the caller until the runtime exports it. Sustained rejections are unmet demand. - Restore time, checkpoint time, queue wait. If you only have pod CPU, you have the wrong dashboard.
- Ghost-slot check: a worker assigned longer than your longest plausible session, with no turn activity.
- A reset runbook. Scope’s RESET POOL is one implementation. In the lab, restarting
deploy/kagent-default-deployment -n kagentcleared a wedged pool. Snapshots survived. - Model concurrency as a cap on useful worker count. Extra bays in front of a serial generator are an expensive waiting room.
A Monday checklist, in order:
- Port-forward the kagent controller and curl
/api/substrate/status. Confirm you can see workers, not only pods. - Join assignments from the workers list. Do not join from actors.
- Send one chat. Watch restore, turn, checkpoint on Scope or in the status payload.
- Fill the pool. Confirm the next request is a rejection you can count.
- Kill a session mid-flight. Confirm you can see the pinned bay. Reset. Confirm snapshots survived.
- Do not install a CPU HPA on the WorkerPool.
The Monday teaser is the short version I posted the day before. This page is the how-to I want people to land on when they search the phrase. If you still need to choose a runtime, agent-sandbox vs Agent Substrate is the fork. The rest of the runtime sits in the Agent Substrate field guide.