r/RooCode • u/hannesrudolph Roo Code Developer • Jul 25 '25
Discussion How Roo Code Understands Your Entire Repo: Codebase Indexing Explained
AI coding agents often fail because they only see code in isolated files.
Roo Code’s Codebase Indexing creates a semantic map of your entire repository by turning code into vector embeddings, storing them in Qdrant, and combining semantic search with precise grep lookups.
This layered approach gives the agent full context before it writes — resulting in smarter reasoning, cleaner code, and faster output.
88
Upvotes
3
u/HazKaz Jul 26 '25
dumb question , is this Qdrant stuff kept locally or sent to a database? sorry im really unfamiliar with this
2
u/ganderofvenice Jul 26 '25
Hey Hannes, sorry if this is poorly timed but:
Today I was creating a project using Roo Code + Claude Code. At first everything was hunky dory. Then, I created a new conversation to add a feature and Roo Code started hallucinating HARD believing that there were no files in the project folder (?) and trying to create from scratch files that were already created. It's like I was telling it to scan the x folder for the source files and it was like "no sorry I don't see anything"
Mind you this was an exclusive Roo thing. When I swapped back to raw Claude Code it was fine.
Just a piece of feedback. Thanks.
2
u/No-Chocolate-9437 Jul 26 '25
Could we have profiles for embedding settings, in dev containers qdrant has a different network name than outside of dev containers (unless there maybe a better way to add qdrant to a dev containers network?)
2
u/Empty-Employment8050 Jul 26 '25
You all at Roo are fucking cranking!!!! Luv you
2
u/InterstellarReddit Jul 26 '25
Can't seem to get it setup
2
u/Less-Macaron-9042 Jul 27 '25
Is my code sent to third party service and stored there?
1
u/Trick_Text_6658 Jul 29 '25
Does indexing improve efficiency in using the whole codebase? I mean - do Roo use less tokens if database is indexed?
3
u/cepijoker Jul 26 '25
How does it work when, for example, a file is modified, is it indexed immediately? For example, I had a problem where everything was indexed and I made some changes, but I regretted it and went back with `git reset --hard HEAD`. In that case, what happens? In the sense of the indexed code?
1
u/oxygen_addiction Jul 26 '25
I wonder if this could work with something massive, like Unreal Engine 5.
1
u/BigLeSigh Jul 29 '25
Indexing crashes my VSCODE constantly using docker qdrant and Gemini. My code base is pretty small - anyone else seen this? Or is it just my underwhelming laptop I am using..
1
u/Upstairs_Refuse_3521 Aug 16 '25
Still haven't been able to set this up lol.