Documentation

Sourcegraph allows developers to rapidly search, write, and understand code by bringing insights from their entire codebase right into the editor.

Sourcegraph is a Code Intelligence platform that deeply understands your code, no matter how large or where it's hosted, to power modern developer experiences.

  • Code Search: Search through all of your repositories across all branches and all code hosts
  • Deep Search: Ask natural language questions and get detailed answers from our AI agent
  • Code Intelligence: Navigate code, find references, see code owners, trace history, and more
  • Fix and Refactor: Roll out and track large-scale changes and migrations across repos at once
  • AI Assistant: Use Cody, our AI code assistant to read, write, and understand your entire codebase faster

Quickstart

Code Search

Search all of your repositories across all branches and all code hosts.

Cody

Write, fix, and maintain code with Sourcegraph's AI coding assistant, Cody.

Deep Search

Get comprehensive answers to complex code questions using an AI agent that explores your codebase.

Sourcegraph 101

Learn how to use Sourcegraph.

Sourcegraph Tour

Take a tour of Sourcegraph's features using real-world examples and use cases.

Main Features

Some of the main Sourcegraph features include:

Feature Description
Deep Search Natural language code search with a dedicated AI agent that explores your codebase
Cody Cody is an AI coding assistant that writes, fixes, and maintains your code
Code Navigation Jump-to-definition, find references, and other IDE-like code browsing features on any branch, commit, or PR/code review
Code Insights Reveal high-level information about your codebase at its current state and over time, to track migrations, version usage, vulnerability remediation, ownership, and more
Batch Changes Make large-scale code changes across many repositories and codehosts
Integrations With code hosts, code review tools, editors, web browsers, etc.

What's New

Stay in sync and get the latest news on Sourcegraph products, technologies, and culture.

Join our Community

If you have questions about anything related to Sourcegraph, you're always welcome to ask in our Discord, and X.