Code intelligence

Use Sourcegraph to find answers faster, with inline contextual information around code.

Explore definitions & references, across all projects

Find the definition, function calls and anything else in code, across packages, dependencies, and repositories.

Explore code in your web browser in any repository on any branch, instantly and without losing local context.

All programming languages are supported. 32 programming languages have additional code intelligence support.

[Sourcegraph] improves my productivity and ability to write clean code by 2-3x.

Uber senior engineer

See Sourcegraph code intelligence in action

Better code reviews with Sourcegraph's code intelligence

Sourcegraph integrates with your existing code review tool and lets you:

Grok the change with documentation hovers & "Go to definition"

See a call to a function you don't recognize? With Sourcegraph, you can see its documentation and type signature by hovering over it—and go to its definition in a single click. Even if your IDE supports this, being able to do it in your web browser instantly without losing context saves tons of time—and helps you do more thorough reviews. Works for 32 programming languages.

Assess the impact of the change with "Find references"

What might break when this change is merged? Who else is relying on the API that will be changed? As a reviewer, you need to understand the impact of a change to review it correctly. With Sourcegraph in 32 programming languages, you can find callers and references in all of your repositories. Never have an "oops" again.

See test coverage and runtime logs, traces, and errors

When changing code that's performance-sensitive or causing errors, it helps to see live information from runtime to ensure the fix is correct. When using supported services to collect this information, Sourcegraph makes it easy to see this extra context when reviewing.

Open source, self-managed, & privacy-respectful

Sourcegraph is self-hosted, so your code never leaves your network. And it's open source (Apache 2.0), so you can verify this. (If you prefer not to self-manage your instance, we offer cloud-managed deployment too.)

Sourcegraph integrates with your existing tools and workflow

Code hosting & review
Other services in your workflow
Browser & editor integrations
Programming languages
All programming languages are supported. 32 programming languages have additional code intelligence support.

Better code reviews with the Sourcegraph browser extension

Try Sourcegraph now

Explore, navigate, and better understand all code, everywhere, faster, with Universal Code Search