← Plugin catalog
Developer Tools

Sourcegraph

Sourcegraph v0.2.0

Search and navigate your code

Create a free account to save this plugin.

From the developer

Cost & access

This plugin searches and analyzes source code; it does not sell products, process payments, or initiate financial transactions.

Declared limitations

  • Prevent financial transactions
  • Prevent source-code deletion
  • Respect repository permissions

Not specified in the available declarations: capabilities.

Onboarding example

Find where transfer validation is implemented in this repository.
Sources & dates

Developer declarations; not independently tested. Listing last checked Nov 30, 2026. Package observed Nov 30, 2026.

View package source →

Description

From the marketplace listing

Connect to your company's Sourcegraph Cloud instance to search code across all of your repositories, jump to definitions and references, explore commit and diff history, and run multi-step Deep Search research. Each workspace connects to its own instance at COMPANY.sourcegraph.com or COMPANY.sourcegraphcloud.com and signs in with OAuth. Results only include repositories the signed-in Sourcegraph user can access.

Language: English · Automatically detected from descriptions.

Changes

No changes recorded yet. Follow this plugin to keep track of future changes.

First seen Nov 25, 2026. Last seen Nov 30, 2026.

Similar plugins

Finding similar plugins… Results will appear here automatically.

Browse plugins →

Keywords

Files & skills

File archives

Plugin package12 files · 22.1 KBBrowse files →
Skill instructions
searching-sourcegraph8.96 KB

View saved version →

---
name: searching-sourcegraph
description: Use when the user needs to search or navigate code with Sourcegraph MCP tools. Provides disciplined search workflows for finding implementations, understanding systems, debugging issues, fixing bugs, and reviewing code.
---

# Searching Sourcegraph

Search before you build. Existing patterns reduce tokens, ensure consistency, and surface tested solutions.

## Tool Selection Logic

**Start here:**

1. **Don't know the exact symbol, file, or even which directory?** → `code_finder`
2. **Know the exact symbol or pattern?** → `keyword_search`
3. **Know the concept, not the code?** → `nls_search`
4. **Need to understand how/why?** → `deepsearch` → `deepsearch_read`
5. **Tracing a symbol's usage?** → `find_references`
6. **Need full implementation?** → `go_to_definition` → `read_file`
7. **Need to know what repos a user has worked on?** → `get_contributor_repos`
8. **Need to tally, cross-reference, or compute over many search results?** → `evaluator`

| Goal | Tool |
|------|------|
| Locate relevant files/lines from a description | `code_finder` |
| Concepts/semantic search | `nls_search` |
| Exact code patterns | `keyword_search` |
| Trace usage | `find_references` |
| See implementation | `go_to_definition` |
| Initiate a deep search | `deepsearch` |
| Read deep search results | `deepsearch_read` |
| Read files | `read_file` |
| Browse structure | `list_files` |
| Find repos | `list_repos` |
| Search commits | `commit_search` |
| Track changes | `diff_search` |
| Compare versions | `compare_revisions` |
| Find repos a user has worked on | `get_contributor_repos` |
| Aggregate/cross-reference results programmatically | `evaluator` |

**About the newer tools:**

- **`code_finder`** — an agentic search tool: give it a natural-language description of what you're looking for and it runs its own search loop over the repo, returning matching file paths and line ranges with a short note on each. It's faster and cheaper than chaining several `keyword_search`/`nls_search` + `read_file` calls, so reach for it first when you don't yet know the exact symbol or file to target. It also powers file discovery inside Deep Search.
- **`evaluator`** — runs a sandboxed Lua script that can itself call `keyword_search`, regex, `commit_search`, or `diff_search` and then aggregate, cross-reference, or compute over the results. Use it instead of manually eyeballing raw output when you need counts, joins, or filters across many results (e.g. "how many files under `src/api/` still call the deprecated helper").
- **`deepsearch`** initiates a multi-step research job over the codebase and returns a URL/token; **`deepsearch_read`** reads back the resulting conversation.

**Endpoint note:** this plugin's MCP server is configured against `/.api/mcp/all`, which exposes the full tool suite above (including `code_finder` and `evaluator`). Sourcegraph's default `/.api/mcp` endpoint only exposes a curated subset (`read_file`, `list_files`, `keyword_search`, `nls_search`, `list_repos`, `commit_search`, `diff_search`, `deepsearch_read`) and won't have code navigation, `code_finder`, or `evaluator` — and notably lacks `deepsearch` itself, so on that endpoint `deepsearch_read` can only fetch results of a job started elsewhere (e.g. the web UI), not run a new one. If any of those tools are missing, check that `mcp.json` points at `/.api/mcp/all`, not `/.api/mcp`.

## Scoping (Always Do This)

```
repo:^github.com/ORG/REPO$           # Exact repo (preferred)
repo:github.com/ORG/                 # All repos in org
file:.*\.ts$                         # TypeScript only
file:src/api/                        # Specific directory
file:.*\.test\.ts$ -file:__mocks__   # Tests, exclude mocks
```

Start narrow. Expand only if results are empty.

Combine filters: `repo:^github.com/myorg/backend$ file:src/handlers lang:typescript`

## Context-Aware Behaviour

**When the user provides a file path or error message:**
- Extract symbols, function

Preview of the first 4,000 characters. Read full instructions →

Referenced files: 7 — file references are metadata, not package contents.

Release notes

Initial public release of the Sourcegraph templated plugin for Sourcegraph Cloud, with code search, navigation, history, and Deep Search workflows.

Declared in the saved package. Remote tools may change independently.

Package details

Publisher declarations from the archived package. These are separate from our research and the live service's terms.

Package license
MIT
Package author
Sourcegraph Community
Keywords
See keywords
Commerce declaration
Does not support commerceThis does not establish whether access is free or paid.
Review scenarios
5 positive · 3 negativeScenario counts, not test results.

Package observed Nov 30, 2026.

Technical details
First seen
Nov 25, 2026 · 12:00 UTC
Last seen
Nov 30, 2026 · 18:00 UTC
Collection status
Collected

plugins_6af72c8fcfac8191b8da9bf7826f2141

Download plugin data (JSON)

Plugin details: freshly prepared. Prepared . Refreshed when plugin data changes or after 6 hours. Your account and Follow status are live.