Use Sourcegraph with AI, safely and precisely
Guides an AI assistant through searching a Sourcegraph instance: it confirms the instance, repository and revision first, picks the right search or navigation tool, and reads the actual code before claiming anything. It stays read-only.
Use it when
- You connect Sourcegraph to an AI assistant and want it to search correctly
- You ask where a function is used across many repositories
- Searches return nothing or too much and you need a narrower approach
Tools it uses
list_reposkeyword_searchnls_searchread_filego_to_definitionfind_referencescommit_searchdiff_searchcompare_revisionsget_contributor_reposdeepsearchdeepsearch_readlist_files
Where is the retry helper defined in our payments repository on the release tag, and who calls it?
Scope: sourcegraph.example.com, github.com/acme/payments at tag v2.4.0. The helper is defined in internal/retry/backoff.go at line 18 and is called from 4 places: charge.go:41, refund.go:77, webhook.go:103 and sync.go:29. I read each call site before listing it.