Run coding agents in a docker container with limited permissions. FWIW, I run it with
--cap-drop=ALL
--pids-limit=4096
--runtime=runsc --cap-drop=ALL
--pids-limit=4096
--runtime=runschttps://github.com/smol-machines/smolvm#comparison
shows a good comparison table.
Currently a Raspberry Pi 5
I am very pleased with it.
My Idiot Savant Pet