BeClaude

sourcegraph

Official PluginDevelopmentby Anthropic

Code search and understanding across codebases. Search, read, and trace references across repositories; analyze refactor impact; investigate incidents via commit and diff search; run targeted security sweeps.

First seen 4/17/2026

Summary

The Sourcegraph skill enables Claude Code to search, read, and trace code across repositories, making it easy to understand codebases, analyze refactor impact, investigate incidents, and run security sweeps.

  • It connects Claude to Sourcegraph's code intelligence, so you can find definitions, references, and commit history without leaving your chat.

Install & Usage

1
Add a marketplace
/plugin marketplace add <org/repo>
2
Install the plugin

Add the configuration to /plugin install sourcegraph@<marketplace>

3
Manage with /plugin
/plugin

Use Cases

Find all usages of a deprecated API across multiple repositories to plan a migration.
Trace the call chain of a function to understand how a bug propagates through the system.
Search for recent commits and diffs related to a security vulnerability to investigate an incident.
Identify all files containing hardcoded secrets or credentials for a security sweep.
Analyze the impact of renaming a shared utility function before making the change.
Locate all test files that import a specific module to ensure coverage after a refactor.

Usage Examples

1

/sourcegraph find all references to the function `validateUser` across the org's repositories

2

/sourcegraph search for recent commits containing 'password' in diff content

3

/sourcegraph trace the callers of `sendEmail` in the monorepo and show their file paths

View source on GitHub
securityrefactoring

Security Audits

LicenseUnknownSourcePassRepositoryPass

Frequently Asked Questions

What is sourcegraph?

The Sourcegraph skill enables Claude Code to search, read, and trace code across repositories, making it easy to understand codebases, analyze refactor impact, investigate incidents, and run security sweeps. It connects Claude to Sourcegraph's code intelligence, so you can find definitions, references, and commit history without leaving your chat.

How to install sourcegraph?

To install sourcegraph: add a marketplace (/plugin marketplace add <org/repo>), then add the config to /plugin install sourcegraph@<marketplace>. Finally, /plugin in Claude Code.

What is sourcegraph best for?

sourcegraph is a plugin categorized under Development. It is designed for: security, refactoring. Created by Anthropic.

What can I use sourcegraph for?

sourcegraph is useful for: Find all usages of a deprecated API across multiple repositories to plan a migration.; Trace the call chain of a function to understand how a bug propagates through the system.; Search for recent commits and diffs related to a security vulnerability to investigate an incident.; Identify all files containing hardcoded secrets or credentials for a security sweep.; Analyze the impact of renaming a shared utility function before making the change.; Locate all test files that import a specific module to ensure coverage after a refactor..