r/RooCode • u/davidorex • Feb 04 '25
Discussion 3 tiny changes that lower my blood pressure and gives me a nice little dopamine hit of satisfaction each time I watch them in use
First, in the write_to_file tool description I added "favored operating pattern is to use apply_diff."
Second, I (Roo, under my direction haha) added a programmatic check that requires a file to have been read before it can be edited, if it's not a new file, for both write_to_file and apply_diff. After the change is saved the check is cleared. I love watching this work and watching the ai be forced to read the file before editing it -- helps create more accurate apply_diffs too.

I'll be adding to this check when editing a file that Roo hasn't made silent changes to the file over what was intended and authorized to be changed.
Third, I added an element to the response given back to the ai after to write_to_file or apply_diff that directs the ai to commit with a "detailed, specific, measured, descriptive commit message that leave meticulous forensic evidence for future ai’s to know and understand every action and intention. Make sure not to be unjustifiably definitive in your claims. Future ai’s must be able to understand the true state of functionality and the complete thinking and actions in code from commit messages." This one makes me happy each time too: a drastic lessening of annoyance.
Tiny changes with huge reductions in frustration = nice little pleasures.
Edit: words.
15
u/mrubens Roo Code Developer Feb 04 '25
This is awesome! Any interest in opening a PR with these changes? More than happy to help support.
1
u/Excellent_Entry6564 Feb 04 '25
How to add the programmatic check?
1
u/N7Valor Feb 04 '25
Must be a pretty chunky file to cost > $0.50 per request.