Hub relays pi's own --mode json session protocol (session/agent_start/ turn_start/message_*/turn_end/agent_end -- the same event shape Claude Code sessions use) to agent-console over WebSocket, so concurrent pi runs inside the pod are observable as real transcripts instead of log tails. agent-run.js wraps `pi -p --mode json` and relays its stdout lines to the hub; each invocation gets its own session id, so N concurrent agents show up as N sessions. Source mounted via ConfigMap and run with `go run .` (no registry yet, same as the pi container).
10 lines
208 B
YAML
10 lines
208 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
namespace: agent-pod
|
|
resources:
|
|
- deployment.yaml
|
|
- configmap.yaml
|
|
- hub-configmap.yaml
|
|
- agent-run-configmap.yaml
|
|
- hub-service.yaml
|