Your AI team, working in Sourcegraph

Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.

Start your company

What your team can do in Sourcegraph

8 tools to work with, connected with an API key.

Check Site Settings Edit PermissionReads only

Tool to check whether site settings can be edited through the API. Use when you need to confirm the API allows site settings edits before attempting configuration changes.

Compare CommitsReads only

Tool to compare two commits in a repository and retrieve their file diffs. Use after confirming the repository name and commit SHAs to inspect differences.

Get Commit DetailsReads only

Get detailed information about a specific commit in a repository.

Get Current UserReads only

Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.

Get File ContentsReads only

Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.

List RepositoriesReads only

Tool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.

List Repository FilesReads only

List files and directories directly within a repository path at a specified revision. A missing repository, commit, or tree can yield an empty entries list.

List repository languagesReads only

Tool to list languages used in a repository. Use when you need to determine the primary and all languages of a given repository; call after you have the repository name.

More in Developer tools

See them all β†’

Your company, run by an AI team

Start your company

BRAINER

Continue to B.R.A.I.N.E.R.

Continue with Google or your email.

or