Sourcegraph for AI agents
Agents read Sourcegraph at once. Changes and sends are held for a person's approval by default.
About Sourcegraph
Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.
What an agent can do in Sourcegraph
Every Sourcegraph action is classed by the platform as a read, a change or a send. Reads run at once. Changes and sends are held for a person by default.
Runs at once (reads)
Looks things up in Sourcegraph without asking first. 8 actions.
- Check Site Settings Edit PermissionTool 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 CommitsTool 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 DetailsGet detailed information about a specific commit in a repository.
- Get Current UserTool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.
- Get File ContentsTool 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 RepositoriesTool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.
- List Repository FilesTool to list all files and directories in a repository path. Use when you need to enumerate files in a repository without cloning.
- List repository languagesTool 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.
Held for approval by default (changes and sends)
Held for a person's approval by default. The approval is recorded and the action is sent once, never twice, with 10 seconds to undo. 0 actions.
None in this connector.
Sourcegraph questions
Can an agent change data in Sourcegraph on its own?
Not by default. Changes and sends in Sourcegraph are held for a person's approval. The approval is recorded, and the action is sent once, never twice, with 10 seconds to undo.
What can an agent read in Sourcegraph?
This connector lists 8 read actions. Reads run at once, without waiting for approval.
How does Sourcegraph connect?
It connects with API key. Connectors are built and maintained by third-party developers; availability is confirmed during scoping.