8 available actions

What your AI agent can do in Sourcegraph

Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases. This page lists every available action. Your agent only receives the actions and permissions required for the role you approve.

Common starting points

  • Check Site Settings Edit PermissionTool to check whether site settings can be edited through the API.
  • Get Commit DetailsGet detailed information about a specific commit in a repository.
  • Compare CommitsTool to compare two commits in a repository and retrieve their file diffs.

Browse all 8 actions by capability

Open a capability to see every supported action and its description.

Find & reviewLook up and review existing recordsView 7 actionsHide actions
  • Check Site Settings Edit PermissionTool to check whether site settings can be edited through the API.
  • Get Commit DetailsGet detailed information about a specific commit in a repository.
  • Get Current UserTool to retrieve information about the currently authenticated user.
  • Get File ContentsTool to fetch the contents of a specified file on the default branch.
  • List RepositoriesTool to list repositories on the Sourcegraph instance.
  • List Repository FilesTool to list all files and directories in a repository path.
  • List repository languagesTool to list languages used in a repository.
Other actionsSpecialist and administrative actions.View 1 actionHide actions
  • Compare CommitsTool to compare two commits in a repository and retrieve their file diffs.

Connection record

A connection you can control.

Sign-in
Customer-managed key
Setup
Use a key you create and control. It is stored securely and limited to the work agreed for the role.
Boundaries
Only the approved role and actions.
Off switch
Revoke the connection from your account.

FAQ

Before you connect Sourcegraph

How does the agent connect to Sourcegraph?
With a key you create and control. It is stored securely, permissions are limited to what the agent needs, and you can revoke it at any time.
What can the agent actually do in Sourcegraph?
The page above lists the 8 actions currently available through the Sourcegraph connection. The role determines which of those actions the agent may use, and write access is only enabled when the workflow needs it.
Is Sourcegraph included in my plan?
Connections are priced per tool on top of the base plan. Some are included and some are premium. See pricing for how connection charges work.
How long until Sourcegraph is ready?
Timing depends on the sign-in method, permissions and workflow being connected. We confirm the scope and setup plan before enabling the connection.

Bring the workflow together

Ready to put Sourcegraph to work?

Start with the responsibility you want off your plate. We’ll map the connection and the boundaries around it.

All product names, logos, and brands are property of their respective owners and are used for identification only. ZeroToClaw is not affiliated with or endorsed by Sourcegraph.