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