Softwr

Developer Tools · head to head

Sourcegraph vs Trunk Code Quality

Sourcegraph logo

Sourcegraph

Developer Tools

Code search and intelligence platform for large codebases with Cody AI assistant

From
$16000/year
Free plan
No
Trunk Code Quality logo

Trunk Code Quality

Developer Tools

Metalinter that runs and manages linters, formatters and security scanners

From
Free
Free plan
Yes

The short version

  • Sourcegraph is an enterprise code intelligence platform.
  • Trunk Code Quality is free; Sourcegraph starts at $16000/yr.
  • Where Sourcegraph falls short: enterprise pricing starting at $16k annually creates significant barrier for small teams.
  • Where Trunk Code Quality falls short: private repositories with more than five active committers need a paid licence.
  • Prices and features on this page were last checked on 20 November 2026.

How do Sourcegraph and Trunk Code Quality differ?

Sourcegraph and Trunk Code Quality differ on starting price ($16000/year against Free), pricing model (Subscription against Freemium) and free tier (No against Yes). Only the attributes on which Sourcegraph and Trunk Code Quality actually diverge.

Attributes where Sourcegraph and Trunk Code Quality differ
AttributeSourcegraphTrunk Code Quality
Starting price$16000/yearFree
Pricing modelSubscriptionFreemium
Free tierNoYes
PlatformsWeb, Self-hostedmacOS, Linux, Windows
Founded20132021

Identical on both: category (Developer Tools).

Which features does each one have?

They share no listed features; 8 only for Trunk Code Quality. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Sourcegraph

Nothing recorded that Trunk Code Quality does not also cover.

Only in Trunk Code Quality

  • Installs and runs over 100 linters and formatters
  • Version pinning through trunk.yaml
  • Hold the Line checks on new changes only
  • Background daemon that precomputes results
  • VS Code and Neovim editor integration
  • GitHub integration for pull request checks
  • Security scanning tools such as trivy and gitleaks
  • Runs in any CI environment

What is each one used for?

Sourcegraph is most often brought in for large-scale code migrations across hundreds of repositories; Trunk Code Quality for running one lint command across a polyglot repository. The jobs each tool is most often brought in to do.

Sourcegraph

  • Large-scale code migrations across hundreds of repositoriesnot Trunk Code Quality
  • Enterprise governance and code ownership trackingnot Trunk Code Quality
  • AI-assisted bug hunting and security pattern detectionnot Trunk Code Quality
  • Onboarding engineers into large unfamiliar codebasesnot Trunk Code Quality
  • Regulatory compliance and code audit trailsnot Trunk Code Quality

Trunk Code Quality

  • Running one lint command across a polyglot repositorynot Sourcegraph
  • Gradually fixing legacy code with Hold the Linenot Sourcegraph
  • Pinning linter versions across a teamnot Sourcegraph
  • Enforcing the same checks locally and in CInot Sourcegraph
  • Adding security scanners to pull requestsnot Sourcegraph

Where do Sourcegraph and Trunk Code Quality fall short?

Sourcegraph's most cited limit: enterprise pricing starting at $16k annually creates significant barrier for small teams. Trunk Code Quality's: private repositories with more than five active committers need a paid licence. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Sourcegraph

  • Enterprise pricing starting at $16k annually creates significant barrier for small teams
  • No free tier or standard plan published; all options require custom sales engagement
  • Complex enterprise-only positioning limits adoption compared to GitHub Copilot's pervasiveness
  • Requires indexing entire codebase; not suitable for small or ephemeral projects

Trunk Code Quality

  • Private repositories with more than five active committers need a paid licence
  • Paid Team and Enterprise prices are not published; quotes come from sales
  • Core CLI is closed source, with only plugins and the GitHub Action under MIT
  • Results depend on the underlying linters, so rule coverage is not Trunk's own

How much do Sourcegraph and Trunk Code Quality cost?

Sourcegraph starts at $16000/yr; Trunk Code Quality is free to use. Plan by plan below, from each vendor's own pricing page.

Sourcegraph

$16000/year
  • Enterprise$16,000/yr
    • Scales with team size
    • Credits for AI features per user
    • Deep Search

Trunk Code Quality

Free
  • Free (up to 5 active committers on private repos)Free
  • Team (per seat)On request
  • Enterprise (annual site licence)On request

Which should you pick?

Choose Sourcegraph if

  • You work on Web, Self-hosted.

Choose Trunk Code Quality if

  • You need installs and runs over 100 linters and formatters.
  • You want to start without paying.
  • You work on macOS, Linux, Windows.
  • You also want version pinning through trunk.yaml.

Questions people ask

Is Sourcegraph or Trunk Code Quality better?
Neither clearly leads. Sourcegraph starts at $16000/year and Trunk Code Quality at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
Which is cheaper, Sourcegraph or Trunk Code Quality?
Trunk Code Quality has a free tier; the other does not. Paid plans start at $16000/year for Sourcegraph and Free for Trunk Code Quality.
Does Sourcegraph or Trunk Code Quality run on more platforms?
Sourcegraph runs on Web, Self-hosted. Trunk Code Quality runs on macOS, Linux, Windows.
Can I use Trunk Code Quality for free?
Yes. Trunk Code Quality has a free tier, so you can try it without paying. Sourcegraph starts at $16000/year.
What is Sourcegraph best used for?
Sourcegraph is most often used for large-scale code migrations across hundreds of repositories, enterprise governance and code ownership tracking, ai-assisted bug hunting and security pattern detection, onboarding engineers into large unfamiliar codebases. Of those, large-scale code migrations across hundreds of repositories and enterprise governance and code ownership tracking are not what Trunk Code Quality is typically brought in for.
What can Sourcegraph do that Trunk Code Quality cannot?
Trunk Code Quality covers Installs and runs over 100 linters and formatters, Version pinning through trunk.yaml, Hold the Line checks on new changes only, Background daemon that precomputes results.

Answered from the vendors’ own pages

Sourcegraph: How much does Sourcegraph cost?

Sourcegraph's pricing page lists a single Enterprise plan starting at $16K, which it describes as a minimum annual contract. The price includes credits for AI features and scales with team size. Volume pricing is available through sales.

Source
Trunk Code Quality: What does Trunk Code Quality do?

It is a metalinter that installs, pins and runs third party linters, formatters and security scanners from one CLI. A background daemon precomputes results for editor annotations.

Source
Sourcegraph: Does Sourcegraph have a free plan?

The pricing page lists only the Enterprise plan and a Contact sales button, with no free or self-serve tier shown. Its FAQ includes a question about a free trial, but the answer was not visible in the page text. Sourcegraph does offer a public code search across more than 1M public repositories.

Source
Trunk Code Quality: Is Trunk Code Quality free?

Public and open source repositories have no stated usage limit, and private repositories with five or fewer active committers can use the CLI at no cost. Larger private teams need a paid licence.

Source
Sourcegraph: Can Sourcegraph be self-hosted?

Yes. The Enterprise plan includes single-tenant cloud, and the page also lists self-hosted as a deployment option. Enterprise admin and security controls are part of the plan.

Source
Trunk Code Quality: Which operating systems are supported?

The launcher supports macOS and Linux. Windows is supported from CLI version 1.13.0, using git-bash, msys2 or a PowerShell launcher.

Source
Sourcegraph: How do Sourcegraph AI credits work?

Credits for AI features are included per user and can be pooled across the organisation. The pricing page states there is no monthly credit expiry, that purchased credit buckets roll over on renewal, and that larger volume credit buckets are an add-on.

Source
Trunk Code Quality: How many linters does it support?

The supported linters page claims over 100 linters and formatters. They cover many languages plus infrastructure, security, SQL and Markdown tooling.

Source
Sourcegraph: Does Sourcegraph work with AI coding agents?

Sourcegraph offers a full MCP server, plus GraphQL and REST APIs and a CLI. The pricing page says it works with Claude Code, Cursor, Codex, Amp and more, giving agents context from the indexed codebase.

Source
Share

Related pages

Other head to heads