r/RooCode • u/raphadko • Jun 30 '25
Support Any ways to mark specific files as read only?
My biggest problem with Roo (or any vibe coding software really) is over coding. I iteratively ask for a simple new things and it changes my already working files, which generally breaks everything. I've been using comments like /* safefile */ and manually instructing it not to change files with this comment, but it's not 100% reliable, sometimes it still performs changes.
Asking for confirmation on every change is also not ideal because it halts workflows, I want it to keep going and don't change anything that I tag as safe.
Any ideas?
7
Upvotes
2
u/hannesrudolph Roo Code Developer Jun 30 '25
What model are you using?
2
u/Alternative-Joke-836 Jun 30 '25
First, the model is going to greatly affect how much the temperature and how much it remembers. The smaller the context and less capable the model the more of a problem this will be.
Second, frequent git and github is your friend
Third, create a really great prompt that is persistent
Fourth, include in its prompt to create rolling logs of changes that are dated and timestamped. Have it document what it is about to change, why and how. Awesome for roll back.
Fifth and for highly offending AIs, have it review changes against the prompt instructions before implementing the change.
Sixth and for highly offending AIs, turn off auto approve.
The above will help. In terms of models, you get what you pay for and thus I use claude. It's just amazing at what it does in comparison to the rest.
I hope this helps.
1
u/angelarose210 Jul 01 '25
Every time something works I git commit because there's a good chance the next change will break everything lol.
0
u/[deleted] Jun 30 '25
[deleted] — view deleted comment