# Sourcegraph

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

**Field:** Software Development  
**Category:** Code Intelligence  
**Also known as:** Sourcegraph Code Search, Sourcegraph Cody

## Think of it like

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

## 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.

## 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.

## Common mistake

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

## Three principles

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

## Related terms

- [Code Search](https://learn.benibix.com/term/development/code-search)
- [Code Intelligence](https://learn.benibix.com/term/development/code-intelligence)
- [Go to Definition](https://learn.benibix.com/term/development/go-to-definition)
- [Find All References](https://learn.benibix.com/term/development/find-all-references)
- [ripgrep (rg)](https://learn.benibix.com/term/development/ripgrep)

![Two search boxes side by side. On the left, text search: the command rg parseDate returns three lines that contain that exact word, with file names and line numbers. On the right, semantic code search, lit up: the question where do we check passwords returns a function called verifyLogin, which never uses the word password in its name. Below, a wide bar shows search running across many repositories at once.](https://learn.benibix.com/diagrams/dev4-code-search.svg)

---

Source: https://learn.benibix.com/term/development/sourcegraph
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
