Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By elasticv3.0.4Apache-2.0In 1 marketplace
Ask questions about indexed git repositories across versions and get answers cited to the source files. Needs Elasticsearch and Kibana v9.5.0+ with an API key, plus the sourcerer CLI installed via uv.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Elasticsearch API Keyapi_key
Base64-encoded Elasticsearch API key with Agent Builder permissions (get a key at Kibana > Stack Management > API Keys)
SensitivestringRequired
Kibana URLkibana_url
Kibana URL (no trailing slash), e.g. https://sourcerer-abcd123.kb.us-east4.gcp.elastic.cloud
stringRequired
Ask the source. Sourcerer is a code research agent for understanding complex versioned software deployments. It indexes git repos over time, searches them, and grounds its answers in the source, scaling to hundreds of repos and billions of lines of code. See the research blog.
Get trusted answers from the source. Sourcerer indexes snapshots of git repos so that AI agents can search the code, generate authoritative answers, and provide inline citations for verification. It ships with configurations for Elastic Agent Builder, which searches your code in Elasticsearch the way a coding agent would search it on a filesystem. Its value shines for questions that span multiple repos or versions: Sourcerer will find the right snapshot and grep a billion lines of code in seconds.
Search like a coding agent at scale. Sourcerer is statistically tied with frontier coding agents for code retrieval based on its results from SWE-Explore-Bench (see chart below). You can expect Sourcerer to search your code as well as any coding agent, while scaling across many historical repository snapshots as if it was a single repo.

Code is the source of truth for its own behavior. Always authoriative, never outdated. While documentation and tribal knowledge offers context, they can never be the primary source of truth for its implementation.
Go with the grain on how model are trained. LLMs used by coding agents are trained to use terminal commands, and grep has worked exceptionally well. Sourcerer searches code with the same semantics (e.g. grep, ls, cat, head, tail) over multiple code repositories indexed in Elasticsearch for greater speed, scale, relevance, security, collaboration, and customization.
Prerequisites
Setup
sourcerer CLI:
uv tool install "git+https://github.com/elastic/[email protected]"
.env in your working directory, then fill it in:
cat > .env <<'EOF'
ELASTICSEARCH_URL=
KIBANA_URL=
# Authentication (use either API Key or both of Username and Password)
ELASTICSEARCH_API_KEY=
#ELASTICSEARCH_USERNAME=
#ELASTICSEARCH_PASSWORD=
EOF
sourcerer.yml, then edit it according to the sourcerer.yml specification:
cat > sourcerer.yml <<'EOF'
sources:
# Example: Index and retain only the latest snapshot of the "main" branch
- git: { host: "github", org: "elastic", repo: "docs-content", ref_type: "branch" }
match: "main"
retain.count: 1
# Example: Index and retain only the latest patch release snapshot of every minor release for the last two major releases
- git: { host: "github", org: "elastic", repo: "elasticsearch", ref_type: "tag" }
match: "v{major}.{minor}.{patch}"
since.ref: "v8.17.0"
retain.version: { majors: 2, patches: 1 }
EOF
Each source is scoped to a git.host, git.org, git.repo, and git.ref_type (can be tag, branch, or commit). match defines the names of tags, branches, or commit hashes to index based on a pattern like v{major}.{minor}.{patch} or a fixed string like main. since defines where to begin indexing in the commit history. retain defines how long to keep indexed refs before they qualify for pruning.sourcerer setup --config sourcerer.ymlsourcerer index --config sourcerer.ymlThe sourcerer.yml specification has the full reference of fields supported by the configuration file.
mode)7-day copy clicks
npx claudepluginhub elastic/sourcerer --plugin sourcererBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground