<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/searching-code-with-sourcegraph-hjlvddupx" -->

---
title: Searching code with Sourcegraph | daily.dev
description: Sourcegraph is an open-core code search and navigation tool designed for large codebases and teams. It supports literal, regex, and structural search (via the...
canonical: https://daily.dev/posts/searching-code-with-sourcegraph-hjlvddupx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Searching code with Sourcegraph | daily.dev
og:description: Sourcegraph is an open-core code search and navigation tool designed for large codebases and teams. It supports literal, regex, and structural search (via the...
og:url: https://daily.dev/posts/searching-code-with-sourcegraph-hjlvddupx
og:image: https://api.daily.dev/og/posts/HjlvdDUPX.png
og:image:alt: Searching code with Sourcegraph
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Searching code with Sourcegraph

**[Ben Hoyt](https://daily.dev/sources/ben-hoyt)** · 11 min read · 0 upvotes · 0 comments

## Summary

Sourcegraph is an open-core code search and navigation tool designed for large codebases and teams. It supports literal, regex, and structural search (via the Comby library) across multiple repositories, with results typically returning in seconds. Code intelligence features include go-to-definition and find-references, using either search-based heuristics or precise LSIF-based indexing. The server is written in Go and uses zoekt (trigram-based) for indexed search. Setup via Docker Compose is straightforward, though the open-source build is poorly documented. Browser extensions for Chrome and Firefox integrate Sourcegraph features into GitHub and GitLab. Notable caveats include mandatory phone-home telemetry that can only be disabled by modifying source code, and an enterprise license restricting features like multi-repository refactoring (Campaigns) and multi-code-host support. The tool is best suited for teams of 15+ developers.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://lwn.net/Articles/828748>

---

Tags: [#golang](https://daily.dev/tags/golang)

[View this post on daily.dev](https://daily.dev/posts/searching-code-with-sourcegraph-hjlvddupx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Searching code with Sourcegraph","url":"https://daily.dev/posts/searching-code-with-sourcegraph-hjlvddupx","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/searching-code-with-sourcegraph-hjlvddupx"},"datePublished":"2026-05-31T07:55:10.082Z","dateModified":"2026-05-31T09:24:46.778Z","description":"Sourcegraph is an open-core code search and navigation tool designed for large codebases and teams. It supports literal, regex, and structural search (via the...","image":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","thumbnailUrl":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","isAccessibleForFree":true,"articleSection":"Ben Hoyt","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Ben Hoyt","logo":"https://media.daily.dev/image/upload/s--qTmxVTGZ--/f_auto,q_auto/v1780213726/logos/ben-hoyt?_a=BAMAMiWQ0","url":"https://daily.dev/sources/ben-hoyt"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/searching-code-with-sourcegraph-hjlvddupx","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"golang","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ben Hoyt","item":"https://daily.dev/sources/ben-hoyt"},{"@type":"ListItem","position":3,"name":"Searching code with Sourcegraph"}]}
```

