Code Search, Deep Search, or MCP: When to Use Each
Blog post from Sourcegraph
AI integration in code search introduces three distinct tools offered by Sourcegraph: Code Search, Deep Search, and Sourcegraph MCP, each catering to different developer needs. Code Search is ideal for quickly locating specific elements within a codebase, providing direct and fast results without AI complexity. Deep Search combines AI agents with Sourcegraph's capabilities to facilitate understanding of complex or evolving codebases, offering comprehensive answers and visual system designs. Sourcegraph MCP extends beyond mere searching and understanding, enabling AI agents to perform tasks by providing them with programmatic access to extensive codebase navigation and analysis tools. The challenge lies in discerning which tool to utilize based on the problem at hand, emphasizing the importance of judgment over mere access to advanced tools. Jon, an experienced engineer at Sourcegraph, highlights this approach through his work with major tech companies, focusing on implementing these advanced search tools and AI into effective workflows.