There's a couple options out theresimply and easily run agents in an isolated environment with or without containerization.
I build a technology geared for that usecase with smol machines if you ever feel like not maintaining your claude-code-container: https://github.com/smol-machines/smolvm/tree/main/docs/codin...