Skip to content
BENIBIX Learn

Sourcegraph

Development🕸️ Code IntelligenceCode Search

Also known as Sourcegraph Code Search, Sourcegraph Cody

A tool that searches and maps the code in all of a team's projects at once.

Think of it like

It is like a search engine that only knows your team's code. It knows all of it.

Example

A bank's team searches Sourcegraph for an old library. It looks in 2,000 projects and finds each one that still uses it.

Why it matters

Big teams split code across many projects. A search that sees all of them finds what a local search misses.

Definition

Sourcegraph is a product for searching and making sense of code across many projects at once. One search box looks in every project, branch and code host. It also lets you jump to definitions and find references across projects, not just in one. Teams use it to find each use of an old API before they change it. Its AI helper is called Cody.
Sourcegraph is the wide bar at the bottom. It searches lots of projects at once.

Common mistake

Expecting it to know code it has not been given. It can only search the code hosts it is connected to.

Key takeaways

  1. 1
    Many repos. Search them all at once.
  2. 2
    Navigation. Definitions and references across projects.
  3. 3
    Find then fix. See every use before a change.