{{Notability|Companies|date=January 2023}} {{Short description|Code intelligence platform}} {{Infobox company | name = Sourcegraph | logo = Sourcegraph_Logo_Sept_2025.svg | logo_upright = <!-- default: 1 --> | logo_alt = | logo_caption = | type = Private | industry = Information technology | predecessor = <!-- or: predecessors = --> | founded = <!-- if known: {{Start date and age|YYYY|MM|DD}} in city, country -->2013 | founder = <!-- or: founders = -->Quinn Slack and Beyang Liu | defunct = <!-- {{End date|YYYY|MM|DD}} --> | fate = | successor = <!-- or: successors = --> | hq_location_city = | hq_location_country = | area_served = <!-- or: areas_served = --> | key_people = | products = Code Search, Amp, Cody (Legacy) | owner = <!-- or: owners = --> | num_employees = | num_employees_year = <!-- Year of num_employees data (if known) --> | parent = | website = {{URL|https://about.sourcegraph.com}} }} '''Sourcegraph Inc.''' is a company developing code search and code intelligence tools that semantically index and analyze large codebases so that they can be searched across commercial, open-source, local, and cloud-based repositories.<ref name="lwn">{{Cite web |last=Hoyt |first=Ben |date=2020-08-17 |title=Searching code with Sourcegraph |url=https://lwn.net/Articles/828748/ |access-date=2022-10-03 |website=LWN.net}}</ref>

The company has two core products: Code Search and Amp. A previous core product, Cody, retains limited legacy support for existing customers. Code Search was initially released in 2013 under the name Sourcegraph, but was rebranded to Code Search when the company unveiled Cody in 2023.<ref>{{Cite web |url=https://about.sourcegraph.com/blog/sourcegraph-3.0 |title=Announcing Sourcegraph 3.0 |last=Slack |first=Quinn |date=2019-02-08 |website=Sourcegraph official website |access-date=2022-11-18}}</ref> As of 2021, the platform has around 800,000 developers and has indexed around 54 billion lines of code.<ref name="tc2">{{Cite web |last=Miller |first=Ron |date=2021-07-13 |title=Sourcegraph raises $125M Series D on $2.6B valuation for universal code search tool |url=https://techcrunch.com/2021/07/13/sourcegraph-raises-125m-series-d-on-2-6b-valuation-for-universal-code-search-tool/ |access-date=2022-10-03 |website=TechCrunch |language=en-US}}</ref> In July 2025, new accounts for Cody were discontinued, and a new AI coding project, Amp, was released. In December 2025, Amp was spun-off to become a separate company.

== History == Sourcegraph Inc. was founded by Stanford graduates Quinn Slack and Beyang Liu to drive the development of a code search and code intelligence tool, formerly called Sourcegraph. It was first released in 2013<ref name="at">{{Cite web |last=Salter |first=Jim |date=2020-10-01 |title=Sourcegraph: Devs are managing 100x more code now than they did in 2010 |url=https://arstechnica.com/gadgets/2020/10/sourcegraph-devs-are-managing-100x-more-code-now-than-they-did-in-2010/ |access-date=2022-11-18 |website=Ars Technica}}</ref> but was rebranded to Code Search in 2023. It was partly inspired by Liu's experience using Google Code Search while he was a Google intern,<ref name="cl">{{Cite podcast |url=https://changelog.com/podcast/217 |title=Sourcegraph the 'Google for Code' |website=Changelog |host=Adam Stacoviak |date=2016-08-16 |access-date=2022-11-21 }}</ref> It was designed to "tackle the big code problem" by enabling developers to manage large codebases that span multiple repositories, programming languages, file formats, and projects.

Code Search was initially self-hosted by each customer on their own infrastructure. Early customers included Uber, Dropbox, and Lyft.<ref>{{Cite web |url=https://about.sourcegraph.com/blog/enterprise-cloud |title=Sourcegraph Cloud: secure, scalable, dedicated instances for enterprises |last=Slack |first=Quinn |date=2022-09-27 |access-date=2022-11-21 |website=Sourcegraph Blog}}</ref> In 2016, Code Search was criticized<ref>{{Cite web |url=https://www.techrepublic.com/article/fair-source-licensing-is-the-worst-thing-to-happen-to-open-source-definitely-maybe/ |title=Fair Source licensing is the worst thing to happen to open source-definitely maybe |last=Asay |first=Matt |date=2016-04-01 |access-date=2022-11-21 |website=TechRepublic|archive-url=https://web.archive.org/web/20211107170119/https://www.techrepublic.com/article/fair-source-licensing-is-the-worst-thing-to-happen-to-open-source-definitely-maybe/ |archive-date=2021-11-07 }}</ref> for being provided with a Fair Source License with the developers explaining<ref>{{cite report |first=Nadia |last=Eghbal |date=2016 |title=Roads and bridges. The Unseen labor behind our digital infrastructure |url=http://brochures.sisalp.fr/roads-and-bridges-the-unseen-labor-behind-our-digital-infrastructure.pdf |pages=94–95 |access-date=2022-12-14}}</ref><ref>{{Cite web |title=Fair Source License |url=https://fair.io/?a |access-date=2022-11-21 |website=Fair Source License official website}}</ref><ref name="cl" /> that "all of Sourcegraph's source code is publicly available and hackable"<ref>{{Cite web |title=The Sourcegraph developer release: A better way to discover and understand code |url=https://about.sourcegraph.com/blog/the-sourcegraph-developer-release-a-better-way-to-discover-and-understand-code |date=2016-05-30 |access-date=2022-11-21 |website=Sourcegraph Blog |language=en}}</ref> and was intended to "help open sourcers strike a balance between getting paid and preserving their values".<ref>{{Cite magazine |url=https://www.wired.com/2016/03/former-open-sourcers-ask-companies-pay-fair-share/ |title=One Startup's Heretical Plan to Turn Open Source Code Into Cash |last=Finley |first=Klint |date=2016-03-29 |access-date=2022-11-21 |magazine=Wired}}</ref> In 2018, Code Search was licensed under the Apache License 2.0,<ref name="dc">{{Cite web |last=Schmidt |first=Julia |date=2018-10-02 |title=Sourcegraph pulls back the curtain, becomes open source project |url=https://devclass.com/2018/10/02/sourcegraph-becomes-open-source-project/ |access-date=2022-11-21 |website=DevClass}}</ref><ref>{{Cite podcast |url=https://futureofcoding.org/episodes/032.html |title=Basic Developer Human Rights: Quinn Slack |website=Future of Coding |host=Steve Krouse |date=2019-10-24 |access-date=2022-11-21}}</ref> and Sourcegraph OSS has since been released under the Apache License 2.0. The commercial version, Code Search Enterprise, has been released under its own license.<ref>{{Cite web |title=Licensing |url=https://handbook.sourcegraph.com/departments/engineering/product/process/gtm/licensing/#sts=Talking%20about%20license,%20plans,%20users |access-date=2022-11-21 |website=Sourcegraph Handbook}}</ref> In 2023, Code Search was criticized<ref>{{Cite web |title=Seriously, don't sign a CLA |url=https://drewdevault.com/2023/07/04/Dont-sign-a-CLA-2.html |access-date=2023-07-05 |website=drewdevault.com}}</ref> for dropping the Apache license for most of its code, leaving it public but only available under its Enterprise license.<ref>{{Cite web |title=relicense all paths other than MIT licensed code, client/cody*, jetbr… · sourcegraph/sourcegraph@3cd931e |url=https://github.com/sourcegraph/sourcegraph/commit/3cd931ef54407c966fc3a5940a06f0b95a7aadd0 |access-date=2023-07-05 |website=GitHub |language=en}}</ref> In 2024, the main repository was made completely private.<ref name="devclass-private">{{Cite web |title=Sourcegraph makes core repository private, co-founder complains open source means 'extra work and risk' |url=https://devclass.com/2024/08/21/sourcegraph-makes-core-repository-private-co-founder-complains-open-source-means-extra-work-and-risk/ |date=2024-08-21 |access-date=2025-09-05 |website=DevClass}}</ref>

In 2019, Code Search was integrated into the GitLab codebase, giving GitLab users access to a browser-based developer platform.<ref>{{Cite web |title=Native code intelligence is coming to GitLab |url=https://about.gitlab.com/blog/2019/11/12/sourcegraph-code-intelligence-integration-for-gitlab/ |access-date=2022-10-03 |website=GitLab |language=en}}</ref> In 2021, a browser-based portal became available, allowing users to browse open-source projects and personal private code for free. In 2022, Sourcegraph Cloud, a commercial single-tenant cloud solution for organizations with more than 100 developers, was launched.<ref>{{cite web |last=Slack |first=Quinn |date=2022-08-27 |title=Sourcegraph Cloud: secure, scalable, dedicated instances for enterprises |url=https://about.sourcegraph.com/blog/enterprise-cloud |access-date=2022-12-05 |website=Sourcegraph}}</ref>

Sourcegraph has raised a total of $223 million in financing to date.<ref name="tracxn-funding">{{Cite web |title=Sourcegraph - 2025 Funding Rounds & List of Investors |url=https://tracxn.com/d/companies/sourcegraph/__VKOX0-AKdgV8MrEkAWvpxYcwQPfPjxyEjHJQ8TbiBCU/funding-and-investors |date=2025-06-16 |access-date=2025-09-05 |website=Tracxn}}</ref> Its most recent $125 million Series D investment in 2021 valued the company at $2.625 billion, a 300% growth from its previous valuation in 2020.<ref name="tc2" /> {| class="wikitable" ! Date ! Funding Type ! Money Raised (USD) ! No. of Investors ! Lead Investor |- | July 2021 | Series D round | 125,000,000<ref name="tc2" /> | 4 | Andreessen Horowitz |- | December 2020 | Series C round | 50,000,000 | 1 | Sequoia Capital |- | July 2020 | Series B round | 5,000,000<ref>{{Cite web |date=2020-07-15 |title=Sourcegraph Raises Additional $5M in Series B Funding |url=https://www.finsmes.com/2020/07/sourcegraph-raises-additional-5m-in-series-b-funding.html |access-date=2022-10-03 |website=FINSMES}}</ref> | 1 | Felicis Ventures |- | March 2020 | Series B round | 23,000,000 | 3 | Craft Ventures |- | October 2017 | Series A round | 20,000,000<ref>{{Cite web |date=2017-10-06 |title=Sourcegraph Raises $20M in Series A Funding |url=https://www.finsmes.com/2017/10/sourcegraph-raises-20m-in-series-a-funding.html |access-date=2022-12-05 |website=FINSMES}}</ref> | 3 | Goldcrest Capital, Redpoint |}

In 2023 Sourcegraph Inc. unveiled their new product Cody, and rebranded Sourcegraph to Code Search. In 2025, Sourcegraph announced the discontinuation of Cody Free, Pro, and Enterprise Starter plans, effective July 23, 2025, and launched Amp, a new AI coding agent.<ref name="cody-changes">{{Cite web |title=Changes to Cody Free, Pro, and Enterprise Starter plans |url=https://sourcegraph.com/blog/changes-to-cody-free-pro-and-enterprise-starter-plans |date=2025-06-25 |access-date=2025-09-05 |website=Sourcegraph Blog}}</ref>

== Products == The company has three major products: Code Search, Amp, and Cody.

=== Sourcegraph Code Search ===

Code Search tool is used to search and summarize code.<ref name="lwn" /><ref>{{Cite web |last=Liu |first=Beyang |date=2020-01-15 |title=Sourcegraph: Universal code search and intelligence |url=https://www.infoworld.com/article/3514213/sourcegraph-universal-code-search-and-intelligence.html |website=InfoWorld |access-date=2022-12-05}}</ref> It supports over 30 programming languages and integrates with GitHub and GitLab for code hosting, Codecov for code coverage, and Jira Software for project management.<ref name="auto5">{{Cite web |date=2020-04-03 |title=Q&A: Sourcegraph's Universal Code Search Tool |url=https://spectrum.ieee.org/sourcegraph-universal-code-search-tool |access-date=2022-10-03 |website=IEEE Spectrum |language=en}}</ref> Sourcegraph's Code Search uses a variant of Google's PageRank algorithm to rank results by relevance.<ref>{{Cite web |last=Yegge |first=Steve |date=2022-11-08 |title=Rethinking search results ranking on Sourcegraph.com |url=https://about.sourcegraph.com/blog/new-search-ranking |website=Sourcegraph |access-date=2022-12-06}}</ref>{{primary inline|date=September 2025}} While it was originally launched under the Apache License, on June 13, 2023, it was relicensed to the non-open-source "Sourcegraph Enterprise" license. Then, on August 22, 2024, the source code was moved to a private repository, and thus no longer source-available.<ref name="ghrm">{{cite web |title=Add a visible notice in the README |url=https://github.com/sourcegraph/sourcegraph-public-snapshot/commit/c864f15af264f0f456a6d8a83290b5c940715349 |website=GitHub |access-date=3 November 2025}}</ref>

=== Sourcegraph Amp ===

Launched in 2025, Amp can generate code, generate documentation, write tests, and perform refactoring operations on projects. The tool operates on a credit-based pricing model and is available through web interfaces, command-line tools, and IDE extensions.<ref name="amp-manual">{{Cite web |title=Owner's Manual - Amp |url=https://ampcode.com/manual |access-date=2025-09-05 |website=Amp Documentation}}</ref>{{primary inline|date=September 2025}}

In December 2025, Sourcegraph announced that Amp would be spun-off to become a separate company.<ref>{{cite press release |last1=Slack |first1=Quinn |last2=Adler |first2=Dan |title=Why Sourcegraph and Amp are becoming independent companies |url=https://sourcegraph.com/blog/why-sourcegraph-and-amp-are-becoming-independent-companies |access-date=31 May 2026 |work=Sourcegraph |date=2 December 2025 |language=en}}</ref>{{primary inline|date=May 2026}}

=== Sourcegraph Cody === Cody is an AI coding application for writing and maintaining code. Cody was released in December 2023 and was available for Microsoft Visual Studio Code and most JetBrains IDEs.<ref name="sourcegraph-siliconangle">{{cite news |last1=Dotson |first1=Kyt |title=Sourcegraph launches AI coding assistant Cody into general availability |url=https://siliconangle.com/2023/12/14/sourcegraph-launches-ai-coding-assistant-cody-general-availability/ |access-date=May 28, 2026 |work=SiliconANGLE |date=December 14, 2023}}</ref> As of July 2025, Cody Free, Pro, and Enterprise Starter plans have been discontinued, with only Cody Enterprise remaining available for existing enterprise customers.<ref name="cody-changes" />

== See also == {{Div col|colwidth=30em|content= * SaaS * Code reviewing software * Intelligent code completion * Generative AI * Model Context Protocol }}

== References == {{Reflist}}

Category:Database management systems Category:Code search engines Category:Applications of artificial intelligence Category:Formerly open-source or free software