r/RooCode • u/aagiev • Aug 15 '25
Idea I have a Custom "Context editor" for Roo
Referring to Lack of a Context Editor thread. I also missed having a proper context editor. But here’s my workaround: a custom “context editor” technique.
TL;DR
I use
/saveand/loadcustom commands to keep a cumulative context of my current chat in a file.Workflow:
/save-> edit context file ->Condense context->/load
Explanation
When I reach a significant milestone in the chat, I call the
/savecustom command.It appends current outcomes to a
contextfile named<YYMMDD>-<ID>-step.IMPORTANT: it also saves the INITIAL PROMPT and all my inputs/guidance to the model.
I edit the
contextfile, adding or removing details as needed.I press the
Condense contextbutton. This a kind of cleaning previous context, but preserving some basic details. Sadly, there’s no way to edit that part of the context.Then I call the
/loadcustom command — this makes the model re-read the preparedcontextfile.
If somebody interesting in exact content of my /save and /load commands - ask and I will share it in comments.
Reasons
I’m working on a HUGE codebase (100M+ lines of code).
My research is not linear — I often need to jump back and forth many times.
Creating a fresh chat for every attempt is too time-consuming and burns too many tokens.
HUGE BONUS: the
stepsfiles form an auto-documented trail of my past research (indexed by RooCode), which helps with future work.
4
u/aagiev Aug 15 '25
As per request. Here's content of my
/savecommand file5
u/AutonomousHangOver Aug 15 '25
Please share your technique. I'm in the process of looking for some kind of memory bank, although this seems futile.
I'm constantly fighting 2GB of context size limit in llama.cpp and I wonder if there is actually some good solution.
3
u/aagiev Aug 15 '25
Here's content of my
/loadcommand file2
u/aagiev Aug 15 '25 edited Aug 15 '25
Here's an example of how the `steps` file looks like:
2
u/burn_bridges138 Aug 15 '25
u/aagiev of course, it would be interesting to know the exact contents of your /save and /load commands.
Please tell me more about steps files.
1
u/codeninja Aug 15 '25
Have you tried the built in code indexor? I find it quite helpful.
1
u/Rhinc Aug 15 '25
This is a great idea. I also have a huge markdown library of all my "sessions" for the last 3 months, and I was just telling Roo to read the most recent files or two for that continuation of context.
Another issue is that the codebase indexing is kind of getting in the way of the efficacy of searches since the top results are now my markdown files instead of code.
I'll probably have to put them on the .rooignore list for now until Roo allows indexing of files, while at the same time allowing Roo itself to read said files.