Adding repository retrieval to a coding agent sounds like a straightforward way to improve code understanding and cut down on aimless exploration. JioHotstar’s comparison of six approaches suggests a more qualified answer: retrieval helps when it matches the task, but it can also introduce extra calls and costs.
The evaluation was presented by Abhishek Bansal, a senior staff engineer at JioHotstar. The team compared filesystem tools, Sourcebot, Graphify, CocoIndex Code, Repowise, and an internally built retrieval-augmented generation pipeline. Claude Sonnet served as the solving model. Tests drew on subsets of SWE-bench and CodeScaleBench, as well as a custom question-answering framework built around JioHotstar’s codebase. The team tracked task accuracy, token consumption, agent interaction rounds, and tool usability.
The main finding: match retrieval to the task
- Basic search still works for specific requests. The filesystem baseline uses a local checkout and familiar operations such as searching and reading files. It remained competitive when the engineering task was clearly scoped, and its conventional tools were easy for agents to use.
- Structured retrieval can help on harder tasks. Sourcebot offers indexed text search, symbol-definition and reference queries, and file reading. It performed better than the baseline at lower cost on the SWE-bench Verified evaluation. On the simpler SWE-bench Lite tasks, however, retrieval generally added overhead without reliably improving results.
- Semantic retrieval is useful when the request is imprecise. CodeScaleBench showed a different pattern. Semantic search was more helpful when an agent had to connect a vague description to implementation details that exact text or symbol searches would not readily reveal, particularly when understanding involved multiple modules.
These results do not establish a universally best tool. The evaluation used only portions of the benchmark datasets, and agent outcomes can vary between runs. A discussion of the study also raised the question of how accuracy and cost change when the same setup is run repeatedly. A single result is therefore not enough to justify a definitive ranking.
Evaluate the trail, not only the answer
JioHotstar’s recommendation is to keep filesystem tools as a baseline. For precise, code-focused tasks, start with text search, file reading, and symbol lookup; consider semantic indexing when the request is vague or spans multiple modules. The team also recommends inspecting tool-use traces: did retrieval help the agent find relevant context, or did it simply add more exploration?
There is a broader architectural question, too: a repository is not the same as an organization’s knowledge. The constraints behind design choices, the reasoning behind decisions, and lessons from incidents may not be apparent from source code or documentation alone. Extending an agent’s context to include that history could help it make more informed suggestions, but this is a broader proposal—not a result established by the comparison.
For engineering teams, the practical lesson is not to replace file search automatically. Choose tools according to the task, and measure both answer quality and the cost of getting there. A retrieval layer earns its place when it helps an agent find the right context efficiently, not simply because it offers a more elaborate knowledge base.
Comments
Checking sign-in status...
Loading comments...