Comment by nfw2

10 hours ago

having an index of the code that the agent can use to find what its looking for instead of grep seems to work wonders

That crucially depends on what the index achieves. What do you aim for? Just lookup of symbols? Architectural information? Data flow systems?