You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export AC_ROO_MEM_PATH="/path/to/downloaded/roo-code-memory-bank"roo () {
emulate -L zsh
setopt null_glob
if [ -z"$AC_ROO_MEM_PATH" ]
thenecho"Error: AC_ROO_MEM_PATH is not set. Please set the AC_ROO_MEM_PATH environment variable."return 1
filocal exists=false
if [ -d".roo" ]
then
exists=true
fiif [ -f".roomodes" ]
then
exists=true
filocal clinerules_files=(.clinerules*)
if [ ${#clinerules_files[@]}-gt 0 ]
then
exists=true
fiif [ "$exists"=true ]
thenread"answer?Reinitialize Roo-Memory from scratch? (y/n) "if [ "$answer"!="y" ]
thenecho"Aborting reinitialization."return 0
fi
rm -i -rf .roo .roomodes .clinerules*fi
cp -i -r "${AC_ROO_MEM_PATH}/.roo".
cp -i "${AC_ROO_MEM_PATH}"/.clinerules*.
cp -i "${AC_ROO_MEM_PATH}/.roomodes".
node "${AC_ROO_MEM_PATH}/scripts/populate-system-vars.js"echo"">> .gitignore
echo".roo/">> .gitignore
echo'.clinerules*'>> .gitignore
echo".roomodes">> .gitignore
echo"memory-bank/">> .gitignore
return 0
}
And this is how I currently can initialize a new project with memory-bank.
However, I propose that instead of using the .clinerules-* files, would it not be a good alternative to just use the globals in (for MacOS) ~/Library/Application Support/Code/Users/globalStorage/rooveterinaryinc.roo-cline/settings/cline_custom_modes.json and set the same default prompts there?
This alleviates the requirement to copy these files to each new repository (yay, reduction in duplicate setup) and additionally easily allows updates to be applied (i.e. just update the global promps, and BOOM updates applied globally.
The text was updated successfully, but these errors were encountered:
Good point about using the global config! I need to think that through. I've been working on the other RooFlow system which uses custom system prompts. I'm integrating the .clinerules-[mode] content into system-prompt-[mode] files which should hopefully streamline everything.
The reason I suggest using the cline-custom-modes.json file is that the system prompt will be dynamically updated based on a TON of other configuration settings within the Roo-Code menu. The MCP server settings I had mentioned in #16 is just one example of that. Using the global overrides for custom prompts while still allowing Roo overall control of the system prompt gets the best of both worlds!
Here's my current custom set up with this tool:
And this is how I currently can initialize a new project with memory-bank.
However, I propose that instead of using the
.clinerules-*
files, would it not be a good alternative to just use the globals in (for MacOS)~/Library/Application Support/Code/Users/globalStorage/rooveterinaryinc.roo-cline/settings/cline_custom_modes.json
and set the same default prompts there?This alleviates the requirement to copy these files to each new repository (yay, reduction in duplicate setup) and additionally easily allows updates to be applied (i.e. just update the global promps, and BOOM updates applied globally.
The text was updated successfully, but these errors were encountered: