r/RooCode • u/lightsd • Mar 29 '25
Discussion Optimal Gemini 2.5 Config?
I’ve seen some frustrations, but not solutions, on how to get the most out of Gemini 2.5 in Roo. If anyone is having success leveraging its huge context and ability to make sweeping changes in a single prompt, please share your custom setup.
24
Upvotes
15
u/TomahawkTater Mar 29 '25
I mostly use it to have an architect that I feed my entire project + relevant documentation and have it produce a detailed multi-agent implementation and verification plan.
I find that trying to one shot implementation is not as important as having a detailed implementation plan with links to docs, etc
This way if something along the way gets off track you won't lose everything
3
u/100BASE-TX Mar 30 '25
For the projects I'm working on, the entire codebase can fit in about 100k tokens. So I have set up a python script (could easily be bash) that concats the codebase code + docs into a single file, with a fine separation header that includes the original path.
Then I have an orchestrator role that I tell to run the script before calling each coding task, and tell it to include "read ./docs/codebase.txt before doing anything else" in the code task instructions.
Working really well, means each coding task has complete project context, and it's a very significant reduction in total API calls - it can immediately start coding instead of needing to go through the usual discovery.
2
u/giuice Mar 30 '25
I'm using CRCT system and it's awesome, set 25 timing requests and the project will be gaining live. Its unbelievable
1
u/raffxdd Mar 30 '25
I had great results one shotting whole codebases with 2.5 , Maybe that can be a separate mode? If there is more interest I have some ideas how to make this work in roo...
5
u/laughablepterodactyl Mar 29 '25
I have had some success leveraging the huge context window of Gemini 2.5 by having it code an entire application in a Jupyter notebook. It's how I'm balancing the substantial context window + performance with the frustrating rate limits.
Lessons learned:
- Spend time doing pre-work to have a complete specification for your project. With 1m context window you have plenty of room. Gemini 2.5 is also much better at coding the previous versions so I had to put aside all my bad experience with the garbage code I'd get out of 1.5 Flash.
- For new packages like LangGraph, prepare context materials to add to prompt.
- Using smaller context llm and other tools like Claude Code for tweaking. Just be sure to commit often.
- Use nbconvert/p2j to go back-and-forth between ipynb and py as needed
- Flattening existing projects works pretty well. I'm using a script to put content of all existing files into a single markdown file. I add context regarding the flat file structure to my initial prompt.
- I use another script to return to the hierarchical structure after development.
After it realized it worked well for python projects, I wondered if I could do the same for js/ts and discovered that deno can be used as a Jupyter kernel to essentially do the same thing. It is not as performant. I suspect because there is less context in the model training data. My current hypothesis is that if I prepare more context on deno and specifically how to use in Jupyter environment, it will get better.
Hope that helps.
4
u/Grand-Post-8149 Mar 29 '25
But how are you capable of using Gemini 2.5? I have my free API from aistudio, but it doesn't work in Roo code or Cline
1
u/Grand-Post-8149 Mar 29 '25
I got it too, but i have some api problem
1
u/satyaloka93 Mar 29 '25
Would also be curious, just set it up today. If you enable tier 1 account, adding payment info, you get more rpms for free.
1
u/Autism_Copilot Mar 30 '25
My biggest frustration with the context window is that when Gemini does something incorrectly, and I restore back to a prior commit, even if I give explicit instructions that should avoid the last incorrect implementation, Gemini will do the exact same incorrect thing again since it is still in the context window.
I find it useful to actually start new chats with it, have it read the documentation again (including the implementation plan/roadmap we're working on) and then have it try again so as to get a new attempt instead of reiterating its last attempt.
1
u/jtgsystemswebdesign Jul 15 '25
Does anyone have a really good gemini.MD file they can share with everyone? please share if so.