gitwtfhub

wtf is pssourcegraph?

sourcegraph/pssourcegraph — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2026-07-12

10PowerShellAudience · developerComplexity · 2/5ActiveSetup · moderate

TL;DR

A PowerShell plugin that lets you search your code on Sourcegraph from the command line. You can find definitions, references, and docs without leaving the terminal.

Mindmap

mindmap
  root((repo))
    What it does
      Search code from terminal
      Find definitions and references
      View code documentation
    Tech stack
      PowerShell
      Sourcegraph API
    Use cases
      Find deprecated function calls
      Search private company code
      Jump to symbol definitions
    Audience
      Developers in terminal
      IT teams using Sourcegraph

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Find every place a deprecated function is called across your company's codebase from the terminal.

REASON 2

Search for a specific function or class name across all your repositories without opening a browser.

REASON 3

Jump to a symbol definition or list all its references while debugging in PowerShell.

REASON 4

Set up a default private Sourcegraph endpoint and API token for team-wide terminal searches.

What's in the stack?

PowerShellSourcegraph API

How it stacks up

sourcegraph/pssourcegraphchawyehsu/base16-concfgwoodfishhhh/ez_math_model
Stars101011
LanguagePowerShellPowerShellPowerShell
Last pushed2026-07-122026-06-17
MaintenanceActiveMaintained
Setup difficultymoderateeasymoderate
Complexity2/51/53/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 5min

Requires a Sourcegraph instance URL and API token, token storage on macOS/Linux needs manual handling via keychain or plain text.

The license terms are not specified in the repository explanation, so check the repo for details before using it.

Wtf does this do

PSSourcegraph is a plugin for PowerShell that lets you search across all your code using Sourcegraph directly from the command line. Instead of opening a browser to look up a function, find where something is defined, or see who references a particular piece of code, you can run a command and get nicely formatted results right in your terminal. The tool works by connecting to Sourcegraph (either the public version or your company's private instance) and running searches through its API. You can search for plain text, specific files, or symbols like function and class names. Beyond just searching, it also supports "code intelligence" features, you can hover over code to see documentation, jump to a definition, or list all references to a symbol. Results are formatted to be readable in the terminal, and you can pipe output from one command into another, which is a common PowerShell pattern for chaining tasks together. This is built for developers or IT teams who already use Sourcegraph and spend a lot of time in PowerShell on Windows, macOS, or Linux. For example, if you're debugging an issue and need to quickly find every place a deprecated function is called across your company's codebase, you could run a single command to get that list without leaving your terminal. Teams running a private Sourcegraph instance can configure a default endpoint and API token so the commands always point at the right place. One notable tradeoff is around token security. On Windows, your API token can be encrypted using built-in OS-level protection. On macOS and Linux, that same encryption isn't available, so the README recommends either storing the token in plain text (if you're not worried about that) or pulling it from a password manager or system keychain at startup. It's a reasonable but slightly clunky experience for non-Windows users.

Yoink these prompts

Prompt 1
Install the PSSourcegraph PowerShell module and configure it to connect to my company's private Sourcegraph instance with an API token.
Prompt 2
Using PSSourcegraph, show me how to search for all references to a function named 'ProcessOrder' across all repositories and pipe the results to another command.
Prompt 3
Set up PSSourcegraph on macOS, pulling my Sourcegraph API token from the macOS keychain instead of storing it in plain text.
Prompt 4
Use PSSourcegraph to find the definition of a class called 'UserManager' and display its documentation in the terminal.

Frequently asked questions

wtf is pssourcegraph?

A PowerShell plugin that lets you search your code on Sourcegraph from the command line. You can find definitions, references, and docs without leaving the terminal.

What language is pssourcegraph written in?

Mainly PowerShell. The stack also includes PowerShell, Sourcegraph API.

Is pssourcegraph actively maintained?

Active — commit in last 30 days (last push 2026-07-12).

What license does pssourcegraph use?

The license terms are not specified in the repository explanation, so check the repo for details before using it.

How hard is pssourcegraph to set up?

Setup difficulty is rated moderate, with roughly 5min to a first successful run.

Who is pssourcegraph for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.