# Sourcegraph

5 Hacker News commenters recommended Sourcegraph and 4 criticized it, November 2025 to November 2026. It was recommended in 5 of 13 months.

**Verdict:** People recommend it for code search across large codebases and for giving AI coding tools better context on their own code.

## Why people recommend it

- Better results and accepted code (3 comments): "we have gotten much better results and less token usage after we hooked up our codebase" ([source](https://news.ycombinator.com/item?id=49672703)) "Sourcegraph produces the most accepted code" ([source](https://news.ycombinator.com/item?id=45919293)) "Of course, Sourcegraph is better." ([source](https://news.ycombinator.com/item?id=45919196))
- Large index, close to Google's tool (2 comments): "the closest external thing I've found to Google's internal web tool for viewing code" ([source](https://news.ycombinator.com/item?id=48128210)) "SourceGraph has a larger index" ([source](https://news.ycombinator.com/item?id=48990546))

## Alternatives hackers recommend

- [ripgrep](https://hackerapproved.com/p/ripgrep.md): 122 recommend
- [ast-grep](https://hackerapproved.com/p/ast-grep.md): 21 recommend
- [Semble](https://hackerapproved.com/p/semble.md): 20 recommend
- [Graft (Claude Code hooks)](https://hackerapproved.com/p/graft.md): 13 recommend
- [Lat.md](https://hackerapproved.com/p/lat-md.md): 11 recommend

## Where to get it

- [Visit the official site](https://sourcegraph.com/)

## Cite as

Hacker Approved, "Sourcegraph", https://hackerapproved.com/p/sourcegraph/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
