← 전체 글

CLOUD & DEVOPS

출처를 묻다: Elasticsearch 및 Elastic Agent Builder로 10억 줄 코드 검색 확장

2026년 8월 13일 · Elastic Search Labs · 1분 읽기

Code is the source of truth for its own behavior; it’s always authoritative and never outdated. Definitive answers live at a specific commit in a particular repository, but enterprise deployments depend on many versioned projects working together. Understanding how it all works is a major code search effort. Is it compatible with App B v9. 7 when running on Kubernetes? Will I need more JVM heap space? These are the kinds of questions that our field teams handle constantly. Answering them is harder than it looks. Documentation offers context, but it's an abstraction that can't anticipate every possible question.

When we hit one it doesn't cover, our options are to interrupt an engineer who should be developing code or to hunt through that code ourselves. Often we don't have the time or expertise to navigate that much of it. Coding agents do this well for a single repository on your laptop. Wouldn't it be great if we could scale that to our entire code estate? As a field engineer, I wanted that capability to serve my customers: agentic code intelligence across every project, dependency, platform, and version that we support. And I wanted it grounded in linked citations and always available to everyone as a service.

So I built it with Elasticsearch and Elastic Agent Builder and packaged it into a command line interface (CLI). I released it under an Apache 2. 0 license and called it Sourcerer . This blog post reports multiple performance benchmarks of Sourcerer as a code research agent and walks through the design and rationale of its implementation. A set of configuration files for tools, skills, and agents in Agent Builder. A set of index templates to store and search code from Git commit snapshots. A CLI to install those assets and index and prune commit snapshots from remote Git repositories.

At Elastic, we're using Sourcerer to support our customers with verifiable information about our software directly from the source. Our internal deployment has indexed over a billion lines of code from our own public and private repositories. It also includes our core dependencies, such as Apache Lucene and OpenJDK, along with our common integrations, like Kubernetes and OpenTelemetry. Our solution architects, customer architects, consulting architects, and support engineers no longer have to hunt for answers in documentation or reac