Code Finder, a fast and efficient agent optimized specifically for code search, is now available in Beta through the Sourcegraph MCP server.
Code Finder is a tool that helps coding agents quickly locate relevant implementations, configuration, tests, or documentation within a single repository. It returns a concise summary with links and line ranges, giving your agent focused results it can immediately use.
To show the strengths of using an optimized search agent, we assembled a benchmark suite with a variety of search tasks across several repositories, from small to large. The results show clear improvements in speed and cost. In particular, Code Finder is more than twice as fast compared to a coding agent searching with local tools and up to 40% cheaper than a coding agent using our MCP toolset, achieving comparable result quality.
| Variant | Duration | Cost |
|---|---|---|
| Code Finder | 1.00× | 1.00× |
| MCP tools | 1.14× | 1.63× |
| Local search | 2.19× | 1.32× |
Code Finder already powers file discovery within Deep Search, letting Deep Search spend less of its token budget locating files and more on reasoning about the code and producing a thorough final response.
Code Finder is free while in Beta. The feature will become billable with credits once it becomes generally available. For more information on our MCP server and Code Finder usage, see the documentation.