There are two primary issues to solve: 1: Protecting against bad things (prompt injections, overeager agents, etc) 2: Containing the blast radius (preventing agents from even reaching sensitive things) The companies building the agents make a best-effort attempt against #1 (guardrails, permissions, etc), and nothing against #2. It's why I use https://github.com/kstenerud/yoloai for everything now.
[flagged]
- yoloai new mybugfix . -a # start a new sandbox using a copy of CWD as its workdir
- # tell the agent to fix the broken thing
- yoloai diff mybugfix # See a unified diff of what it did with its copy of the workdir
- yoloai apply mybugfix # apply specific git commits it made to the real workdir, or the whole diff - your choice
- yoloai destroy mybugfix
The diff/apply makes sure that the agent has NO write access to ANYTHING sensitive, INCLUDING your workdir. You decide what gets applied AFTER you review what crazy shit it did in its sandbox copy of your workdir.
Blast radius = 0