Session recording becomes essential when an AI coding agent drives kubectl commands without visibility, because a single stray kubectl delete can wipe a production namespace and the incident leaves no forensic trail. The cost is not only the lost workload but also the time spent investigating who issued the command, whether the change was intentional, and how to prevent recurrence.
Many teams hand the agent a static kubeconfig file that embeds a cluster‑admin token. The token is stored in a secret store, checked into CI pipelines, and shared across dozens of bots. Because the connection goes straight from the agent to the Kubernetes API server, there is no central point that can observe, record, or intervene in the request. The result is blind, standing access: every command executes unchecked, and no replay exists for post‑mortem analysis.
What organizations often need is a way to capture every interaction – a full session recording – while still allowing the AI agent to reach the cluster. The requirement fixes the lack of visibility, but the request still travels directly to the API server, meaning the cluster itself remains the only authority and no audit data is collected. Without an intervening control plane, the session cannot be logged, replayed, or reviewed.
hoop.dev provides the missing control plane. It sits in the data path between the AI agent and the Kubernetes API server, acting as an identity‑aware proxy that inspects each wire‑protocol message. Because hoop.dev is the only component that sees the traffic, it can record the entire session, store the log for later replay, and make the recording available on demand. The gateway captures every request and response, preserving command arguments, timestamps, and the resulting API objects.
In practice, the AI agent authenticates to hoop.dev using an OIDC token issued by the organization’s identity provider. hoop.dev validates the token, extracts group membership, and applies just‑in‑time policies that determine whether the agent may proceed. Once authorized, the request is forwarded to the Kubernetes API server through a network‑resident agent that holds the cluster credential. The forwarder never exposes the credential to the AI agent, and hoop.dev remains the sole point where the session is observed.
Because hoop.dev is the active subject of the enforcement, it guarantees that session recording occurs for every connection. If the gateway were removed, the AI agent would again talk directly to the API server and no recording would happen. This makes hoop.dev the essential component for achieving audit‑ready, replayable sessions.
The recorded sessions are stored in a backend that can be queried later. Security teams can replay a session to see exactly which resources were created, modified, or deleted, and developers can use the replay to debug unexpected cluster state. The logs also satisfy compliance requirements that demand evidence of who performed which action and when.
