Skip to content

Compared with other code search tools

GitHub code search, Sourcegraph and searchcode find code. Engineering Corpus finds code for an agent that is about to build something: examples from public projects you chose, each with its license and a source you can check.

Every fact about the other three comes from their own documentation, read on 2026-11-13. The Sources section lists the pages. If one has changed since, theirs is right and ours is out of date.

  • GitHub code search, to search with regular expressions and symbols across all of GitHub, or across your own and your team’s private code.
  • Sourcegraph, for any code host, and for a branch or a commit.
  • searchcode, for a hosted MCP server that reads and searches any public repository, free during its beta.
  • Engineering Corpus, when you want an agent to bring back how real projects solved a problem, from repositories you chose, with a license verdict and a pinned source on every file it quotes. Getting started runs it on a demo set.

You can use more than one.

Words in quotation marks are the tool’s own.

Tool What it is for Where it searches Access and cost
Engineering Corpus Agents and developers who want working examples from public projects: how others solved a problem, with the license and the source of each file. The public GitHub repositories you index, on your machine, each at one commit. It does not check visibility on GitHub, so list public repositories only. MIT license, no account. You run it. The first run downloads a model of about 600 MB and indexes each repository.
GitHub code search “rapidly search, navigate and understand your code, your team’s code, and the code of the open source community” The default branch only. Empty files and files over 350 KiB are left out, and “very large repositories may not be indexed”. People with access can search private repositories. A GitHub account is required, for public repositories too. The page we read states no price.
Sourcegraph “find, fix, and navigate code with any code host or language across multiple repositories” “any branch and commit, with no indexing required”, and commit diffs and commit messages. The page we read lists the Enterprise Starter and Enterprise plans, with a “30 day free trial for your team”. The benchmark used its anonymous streaming search API on public repositories (how the benchmark works).
searchcode “Code intelligence for LLMs” Any public git repository you point it at. Its tools search code, read files, list a file tree and find usages. “Free during beta. No signup. No API key.” Its page says paid tiers are planned and that a free tier “will likely always be available”.
  • GitHub code search covers “the code of the open source community” and, for people with access, private code. Sourcegraph works across “any code host”. Engineering Corpus searches only the public GitHub repositories you indexed.
  • The other three take richer queries. GitHub documents regular expressions, boolean operations, qualifiers and symbol search. Sourcegraph documents regular expressions, boolean operations, search over commit diffs and query assist in natural language. searchcode documents boolean queries, regular expressions and filters for declarations, usages, strings and comments. Engineering Corpus has corpus_search, which finds code by meaning, and corpus_grep, which takes a regular expression inside one repository.
  • With the other three you search without indexing anything yourself. Engineering Corpus indexes first. On one Apple M2 laptop, CPU only, indexing the fmt repository took 915 seconds for 1,122 chunks, and the results page calculates 13 minutes for 1,000 chunks and 2.2 hours for 10,000 (2026-11-13).
  • GitHub code search, searchcode.com and the Sourcegraph search API that the benchmark called are services you call over a network, and searchcode.com is free during its beta. Engineering Corpus runs on your machine and has no hosted version yet.
  • The others use fewer tokens per relevant file. An agent reads 941 tokens per relevant file from the answers of GitHub code search and 1,351 from searchcode’s. From ours it reads 1,806 (the tokens of every answer divided by the relevant files in its first ten results, recorded on the release build; lower is better). Our answers carry a license class and an automated license verdict for each hit, which the others do not, and they hold more files: 19.3 on average, against 7.3 for GitHub code search and 7.5 for searchcode in keyword form.
  • Engineering Corpus is English only, so an agent translates a question into English before it searches.

What every Engineering Corpus result carries

Section titled “What every Engineering Corpus result carries”
  • Every hit has a license class (P, B, W, C, R or U), the SPDX name the engine read and a one-sentence verdict. You get the lines for P, B, W and C. For R and U you get the location and a permalink. Verdicts are automated and are not legal advice. The license policy says how the engine chooses a class.
  • The permalink of a hit is pinned to the commit the engine indexed, so it keeps showing the lines the engine read after the repository moves on (pin in the glossary).
  • Every agent report ends with a receipt, one line for each source: repository and commit, path and lines, license class, what you may do with it (pattern only or copied with notice) and the notice. Receipts reads a line, and the agent pack lists the seven agents.
  • The engine masks a secret it finds before it embeds or serves the file, and treats corpus text as evidence, never as instructions (security model).
  • A search or a read sends your query to nobody (FAQ).

The pages of the other three that we read describe no license verdict on each result. GitHub documents a license: qualifier that filters repositories by license. Sourcegraph’s query syntax page does not mention licenses, and searchcode’s page says nothing about the license of the code it returns. This covers only the pages we read on 2026-11-13, and each product may do more.

The benchmark sends the same questions to each tool and scores the files it returns. Each question is asked inside the one repository that holds its answer, so no tool has to find the repository. Real questions often do not name one. The pages of GitHub code search and Sourcegraph describe searching across many repositories, and the benchmark does not test that. How the benchmark works gives the queries, the calls and the scoring, and the results page gives every score with its caveats.

58 queries on 13 repositories outside the 12 on which ranking settings were chosen, written from each project’s issues, documentation index and file layout. The answers were recorded on 2026-11-12 and graded on 2026-11-13, before any change made from these queries. Their misses have fed ranking work since, so this set is spent for tuning, and a later set is the check on that work. Claude Sonnet graded every file that ours, GitHub code search or searchcode returned in its first ten. GitHub code search and searchcode were asked in keyword form. Sourcegraph was not measured on this set. The run is dated 2026-11-13 and its result is frozen, so a later run is never called held-out.

Held-out: 58 queries, answers recorded before any change made from them

The share of the relevant files that appear in a tool’s first 20 results. It is the number that says whether the tool finds the file at all.

  1. Engineering Corpus0.893
  2. GitHub code searchUpper bound 0.4870.402
  3. searchcodeUpper bound 0.4470.369
Tool Recall@20 nDCG@10 MRR
Engineering Corpus 0.893 0.800 0.870
GitHub code search 0.402 0.305 0.408
searchcode 0.369 0.282 0.402
  • Files no judge graded count as not relevant. In the first ten results, 0.0% of ours, 11.7% of GitHub code search’s and 8.9% of searchcode’s were never graded; in the first twenty, which Recall@20 reads, 43.3% of ours, 36.4% of GitHub code search’s and 33.1% of searchcode’s. Grading them could move any tool’s score either way.
  • GitHub code search and searchcode search the default branch, and ours searches the pinned commit. Their scores count a file that did not exist at our pinned commit as not relevant. If every such file counted as relevant, GitHub code search’s Recall@20 would be 0.487 and searchcode’s 0.447, and ours stays ahead of both on Recall@20, nDCG@10 and MRR. If every ungraded file in a tool’s top 20 counted as relevant instead (all of one tool’s files or none, 8 combinations), Recall@20 would run from 0.631 to 0.963 for ours, 0.175 to 0.561 for GitHub code search and 0.153 to 0.535 for searchcode, and ours is first in 8 of 8.

124 queries, drawn from the 133 on which we chose some of our ranking settings. All four tools answered, each in its better form (keywords for GitHub code search, searchcode and Sourcegraph). The report is dated 2026-11-19.

Tool Recall@20 nDCG@10 MRR
Engineering Corpus 0.953 0.871 0.995
GitHub code search 0.445 0.431 0.656
searchcode 0.433 0.417 0.629
Sourcegraph 0.446 0.434 0.661

Ours is lower on the held-out set than on the tuned set (Recall@20 0.893 against 0.953). Read the held-out numbers first. On this set, 9.1% of ours, 13.3% of GitHub code search’s, 15.1% of searchcode’s and 13.4% of Sourcegraph’s first ten results were never graded.

Median and 95th percentile response time on the tuned set, in milliseconds (report of 2026-11-19): ours 56 and 131, GitHub 1,295 and 1,556, searchcode 158 and 1,794, Sourcegraph 7,779 and 27,330. Ours runs on the same machine over stdio and the others answer over a network, so the times are not like for like.

One of the four tools is the project’s own, and the project chose the repositories and the queries. Beyond the proofs, which are patterns each relevant file’s text must match, language models graded the files, never people: Claude Sonnet for the held-out set, and Claude Sonnet and Claude Haiku for the tuned set.

Read on 2026-11-13.