Cody Logo

Code Search

Grok your entire codebase

Code Search makes it easy to find code, make large-scale changes, and track insights across codebases of any scale and with any number of code hosts.

Cody Product logo
slide-0
slide-1
slide-2
slide-3
slide-4
slide-5
slide-6
slide-7
slide-8
slide-9
slide-10
slide-11
slide-12
slide-13
slide-14
slide-15
slide-16
slide-17
slide-18
slide-19
slide-20
slide-21
slide-22
slide-23
slide-24
slide-25
slide-26
slide-27
slide-28
slide-29
slide-30
slide-31
slide-32
slide-33
slide-34
slide-35
slide-36
slide-37
slide-38
slide-39
slide-40
slide-41
slide-42
slide-43
slide-44
slide-45
slide-46
slide-47
slide-48
slide-49
slide-50
slide-51
slide-52
slide-53
slide-54
slide-55
slide-56
slide-57
slide-58
slide-59
slide-60
slide-61
slide-62
slide-63
slide-64
slide-65
slide-66
slide-67
slide-68
slide-69
slide-70
slide-71
slide-72
slide-73
slide-74
slide-75
slide-76
slide-77
slide-78
slide-79
slide-80
slide-81
slide-82
slide-83
slide-84
slide-85
slide-86
slide-87
slide-88
slide-89
slide-90
slide-91
slide-92
slide-93
slide-94
slide-95
slide-96
slide-97
slide-98
slide-99
slide-100
slide-101
slide-102
slide-103
slide-0
slide-1
slide-2
slide-3
slide-4
slide-5
slide-6
slide-7
slide-8
slide-9
slide-10
slide-11
slide-12
slide-13
slide-14
slide-15
slide-16
slide-17
slide-18
slide-19
slide-20
slide-21
slide-22
slide-23
slide-24
slide-25
slide-26
slide-27
slide-28
slide-29
slide-30
slide-31
slide-32
slide-33
slide-34
slide-35
slide-36
slide-37
slide-38
slide-39
slide-40
slide-41
slide-42
slide-43
slide-44
slide-45
slide-46
slide-47
slide-48
slide-49
slide-50
slide-51
slide-52
slide-53
slide-54
slide-55
slide-56
slide-57
slide-58
slide-59
slide-60
slide-61
slide-62
slide-63
slide-64
slide-65
slide-66
slide-67
slide-68
slide-69
slide-70
slide-71
slide-72
slide-73
slide-74
slide-75
slide-76
slide-77
slide-78
slide-79
slide-80
slide-81
slide-82
slide-83
slide-84
slide-85
slide-86
slide-87
slide-88
slide-89
slide-90
slide-91
slide-92
slide-93
slide-94
slide-95
slide-96
slide-97
slide-98
slide-99
slide-100
slide-101
slide-102
slide-103

CODE SEARCH

Find and fix code in any code host, language, or repository

  • Onboard to new repositories and projects more quickly by searching and navigating code from Sourcegraph’s web UI.
  • Resolve vulnerabilities and incidents faster. Locate every instance of bad code using symbol, commit, and diff searches.
  • Efficiently reuse existing code. Find code across thousands of repositories and multiple code hosts in seconds.
Read how Nutanix used Code Search to mitigate Log4j vulnerabilities

CODE NAVIGATION

Understand your code and its dependencies

  • Onboard to codebases faster with cross-repository code navigation features like “Go to definition” and “Find references.”
  • Complete code reviews, get up to speed on unfamiliar code, and determine the impact of code changes with the confidence of compiler-accurate code navigation.
  • Determine root causes quickly with code navigation that tracks dependencies and references across repositories.

BATCH CHANGES

Automate large-scale code changes

  • Find all occurrences of code to change with Code Search and make every change with a single, declarative spec file.
  • Automatically track changeset lifecycle status via the Sourcegraph UI. See check state, reviews, and merge status to follow changesets to completion.
Read how Indeed uses Batch Changes to accelerate development

CODE INSIGHTS

Track meaningful insights across your codebase

  • Make data-driven decisions using visualizations of your entire codebase. Simply write a search query and turn it into a chart.
  • Engineering teams can track migrations and deprecations, ensure removal of security vulnerabilities, and track code smells and health from visual dashboards.
Learn more about Code Insights

Code Search works with:

GitHub

GitHub

GitLab

GitLab

Perforce

Perforce

Bitbucket

Bitbucket

Gerrit

Gerrit

any Git-based code host

any Git-based code host

TT

Todd Turner, Platform Engineer

Platform Engineer, Nine

Sourcegraph helped me answer a question in like 5 seconds flat this afternoon.

Normally I probably would have bugged a bunch of people, but the overview of “here is that snippet, and the list of repos using it” made it self-served.

JB

Joe Bingham

Software Engineer, Workiva

Updating all of our repositories with Batch Changes saves time, is less error-prone, and gives us confidence that everything is going to plan.

CR

Chris Roderick

Applications and Services Section Leader, CERN

Sourcegraph lets us make informed decisions on how to evolve our codebase.

For example, a library owner knows exactly how all other developers use their API, and can therefore make educated decisions on how to evolve it.

Code Search Enterprise

Get Code Search for your team’s entire private codebase. Contact us for a demo or to get started with a free trial.

Try our public Code Search environment

See how Code Search works with our public search environment, offering the same search and navigation features as Code Search Enterprise. Search an index of than 2 million public repositories.