What I've been doing is running an agent inside a locked down k8s environment. Agents are spun up by operator, and have access to a single namespace.
It's not perfect, as container escape is not entirely unlikely.
I am working in a future version where all agents run inside firecracker VMs, log all actions logged externally.
With Kubernetes it's like having a bunch of virtual employees making git commits, firing up name-spaced ephemeral resources and collaborating like "remote" employees. It's certainly fun, but I haven't quite polished it to the point where I recommend this architecture to anyone.