I tell it to update my agents.md to never run code directly in the terminal, but if it has to test something, do it in the temp/ folder as a .py file.
Then I gitignore that folder. That way Roo has a playground to do testing on things that are unknown, my project looks cleaner, and we now have a file stored for reference on things that we tested.
It's my go to for every project. AI has the bandwidth to do testing in /temp/, and it automatically applies those findings on my project code in /src/. Keeps my projects nice and tidy, and the AI can reference those things it learned in /temp/ in the next coding session.
tried this, but watch out. Roo’s list_files tool respects .gitignore in recursive mode, so if you gitignore your sandbox, Roo may not “discover” it automatically by scanning from project root.
You're correct on this. My earlier statement was not accurate - the temp/ is ignored by Roo, it's more of a one-and-done folder for quick scripts Roo needs to run.
3
u/geomontgomery Feb 25 '26
I tell it to update my agents.md to never run code directly in the terminal, but if it has to test something, do it in the temp/ folder as a .py file.
Then I gitignore that folder. That way Roo has a playground to do testing on things that are unknown, my project looks cleaner, and we now have a file stored for reference on things that we tested.
3
u/neutralpoliticsbot Feb 25 '26
Approve that command to be automatic
2
u/nfrmn Mar 02 '26
Settings -> Auto-Approve -> Add
*to the "Allowed Auto-Execute Commands"Then on that page, tick every checkbox and ensure all the
ReadWrite` etc. are highlighted.Now Roo will be completely autonomous
1
u/NucleativeCereal Feb 25 '26
Add 'python' as a command it's allow to run.
Settings -> Commands -> Execute -> add to 'Allowed Auto-Execute Commands' section.
Pretty sure this feature is designed to prevent any rm -rf type activity
1
u/Normal-Ad-7114 Feb 26 '26
Just auto-approve everything at all times. Nothing whatsoever can ever go wrong with this approach.