I’ve spent a few hours trying out using YOLO mode and not using YOLO mode but, one thing I realized is the agent will some times ignore asking to remove files and instead shell out for an “rm” this happens both on windows and on linux.
This is using claude 3.7 thinking agent.
I tried adding a rule to avoid this but it also doesn’t always consider the rule as a hard stop and shells out for an rm anyway.